“MotorPlus()”的版本间的差异
1196357542(讨论 | 贡献) |
1196357542(讨论 | 贡献) |
||
| (未显示同一用户的2个中间版本) | |||
| 第1行: | 第1行: | ||
| − | |||
| + | <p style="color: #666666;font-size:220%">'''MotorPlus(address)'''</p> | ||
| + | <br> | ||
| − | + | <p style="color: #E87E05;font-size:135%">'''作用'''</p> | |
将MotorPlus类实例化,并设置电机IIC地址 | 将MotorPlus类实例化,并设置电机IIC地址 | ||
| − | + | <p style="color: #E87E05;font-size:135%">'''参数'''</p> | |
address:MotorPlus电机的IIC地址(uint8_t) | address:MotorPlus电机的IIC地址(uint8_t) | ||
| − | + | <p style="color: #E87E05;font-size:135%">'''示例'''</p> | |
| − | < | + | <source lang="cpp"> |
#include <Microduino_MotorPlus.h> | #include <Microduino_MotorPlus.h> | ||
| 第20行: | 第21行: | ||
MotorPlus moto1(MOTO_ADDR1); | MotorPlus moto1(MOTO_ADDR1); | ||
| − | </ | + | </source> |
| − | [[ | + | |
| + | |||
| + | [[MCookie-MotorPlus_Reference |返回MCookie-MotorPlus_Reference页面]] | ||
2017年7月14日 (五) 08:45的最新版本
MotorPlus(address)
作用
将MotorPlus类实例化,并设置电机IIC地址
参数
address:MotorPlus电机的IIC地址(uint8_t)
示例
#include <Microduino_MotorPlus.h>
#define MOTO_ADDR1 0x73 //电机1地址
MotorPlus moto1(MOTO_ADDR1);