**这是本文档旧的修订版!**
9g舵机
1. 舵机概述
2. 电机参数
3. 编程指南
3.1. 模块功能及图形化编程指南
图形化编程示例:
3.2. 文本代码编程指南
Arduino编程示例:
#include "WeELF328P.h" Servo weservo; void setup() { weservo.attach(PORT_1); } void loop() { weservo.write(0); // sets the servo position according to the scaled value 0-180 delay(2000); // waits for the servo to get there weservo.write(180); delay(2000); }
4. 注意事项