代码拉取完成,页面将自动刷新
/**************************************************************************/
/*!
@file DFRobotCar.h
@author lisper (lisper.li@dfrobot.com)
@license LGPLv3 (see license.txt)
provide some useful function make it easy to control two DC car
Copyright (C) 2014 DFRobot
*/
#include <Arduino.h>
class DFRobotCar {
private:
bool _left_advance;// = LOW;
bool _left_back;// = HIGH;
bool _right_advance;// = HIGH;
bool _right_back;// = LOW;
uint8_t _left_en;// = 4;
uint8_t _left_pwm;// = 5;
uint8_t _right_en;// = 7;
uint8_t _right_pwm;// = 6;
public:
DFRobotCar (uint8_t left_en, uint8_t left_pwm, uint8_t right_en, uint8_t right_pwm);
void changeDir (bool left, bool right);
void control (int16_t left, int16_t right);
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。