1 Star 0 Fork 0

DFRobot/DFRobotRomeoBLEMini

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
DFRobotRomeoBLEMini.h 1.47 KB
一键复制 编辑 原始数据 按行查看 历史
jimaobian 提交于 2016-02-18 10:48 +08:00 . Init which meets the DFRobot code standard
/*!
* @file DFRobotRomeoBLEMini.h
* @brief DFRobot's Romeo BLE mini - Arduino with Motor Driver and Bluetooth 4.0 (SKU:DFR0351)
* @n Header file for DFRobot's Romeo BLE mini
* @n [Schematics](https://raw.githubusercontent.com/CainZ/Romeo-BLE-mini/master/Romeo%20BLE%20mini%20V1.1%20Schematics%20.pdf)
*
* @copyright [DFRobot](http://www.dfrobot.com), 2016
* @copyright GNU Lesser General Public License
*
* @author [Angelo](Angelo.qiao@dfrobot.com)
* @version V1.0
* @date 2016-01-27
*/
#include "Arduino.h"
#ifndef DFRobotRomeoBLEMini_cpp
#define DFRobotRomeoBLEMini_cpp
class DFRobotRomeoBLEMini {
int pinMA1;
int pinMA2;
int pinMB1;
int pinMB2;
bool reverseMA;
bool reverseMB;
public:
/*!
* @brief DFRobotRomeoBLEMini Constractor
*
* @param theReverseMA If set true, the direction of MA motor will be reverse.
* @param theReverseMB If set true, the direction of MB motor will be reverse.
* @param thePinMA1 MA1 pin number
* @param thePinMA2 MA2 pin number
* @param thePinMB1 MB1 pin number
* @param thePinMB2 MB2 pin number
*/
DFRobotRomeoBLEMini(bool theReverseMA = false, bool theReverseMB = false, int thePinMA1=3, int thePinMA2=5, int thePinMB1=9, int thePinMB2=6);
/*!
* @brief set the speed and dirction of the motors, from -255 to 255.
*
* @param motorMA speed and dirction of motorMA
* @param motorMB speed and dirction of motorMB
*/
void speed(int motorMA, int motorMB);
};
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/dfrobot/DFRobotRomeoBLEMini.git
git@gitee.com:dfrobot/DFRobotRomeoBLEMini.git
dfrobot
DFRobotRomeoBLEMini
DFRobotRomeoBLEMini
master

搜索帮助