![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Remote controlled robot with LEDs and Wemos motor shield
Diff: wemos_mc.h
- Revision:
- 0:51c02b15eb70
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wemos_mc.h Wed Sep 27 16:03:48 2017 +0000 @@ -0,0 +1,26 @@ +#ifndef __WEMOS_MC_H +#define __WEMOS_MC_H + +#include "mbed.h" +#define _MOTOR_L 0 +#define _MOTOR_R 1 + +#define _ADDRESS 0x60 + +#define _SHORT_BRAKE 0 +#define _CCW 1 +#define _CW 2 +#define _STOP 3 +#define _STANDBY 4 + + + + void setfreq(I2C& i2c, uint32_t freq); + void setmotor(I2C& i2c, uint8_t motor, uint8_t dir, float pwm_val); + void setmotor(I2C& i2c, uint8_t motor, uint8_t dir); + + + + + +#endif \ No newline at end of file