Remote controlled robot with LEDs and Wemos motor shield

Dependencies:   RF24 mbed

Committer:
Makodan
Date:
Wed Sep 27 16:03:48 2017 +0000
Revision:
0:51c02b15eb70
Remote controlled robot with LEDs and Wemos motor shield

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Makodan 0:51c02b15eb70 1 #ifndef __WEMOS_MC_H
Makodan 0:51c02b15eb70 2 #define __WEMOS_MC_H
Makodan 0:51c02b15eb70 3
Makodan 0:51c02b15eb70 4 #include "mbed.h"
Makodan 0:51c02b15eb70 5 #define _MOTOR_L 0
Makodan 0:51c02b15eb70 6 #define _MOTOR_R 1
Makodan 0:51c02b15eb70 7
Makodan 0:51c02b15eb70 8 #define _ADDRESS 0x60
Makodan 0:51c02b15eb70 9
Makodan 0:51c02b15eb70 10 #define _SHORT_BRAKE 0
Makodan 0:51c02b15eb70 11 #define _CCW 1
Makodan 0:51c02b15eb70 12 #define _CW 2
Makodan 0:51c02b15eb70 13 #define _STOP 3
Makodan 0:51c02b15eb70 14 #define _STANDBY 4
Makodan 0:51c02b15eb70 15
Makodan 0:51c02b15eb70 16
Makodan 0:51c02b15eb70 17
Makodan 0:51c02b15eb70 18 void setfreq(I2C& i2c, uint32_t freq);
Makodan 0:51c02b15eb70 19 void setmotor(I2C& i2c, uint8_t motor, uint8_t dir, float pwm_val);
Makodan 0:51c02b15eb70 20 void setmotor(I2C& i2c, uint8_t motor, uint8_t dir);
Makodan 0:51c02b15eb70 21
Makodan 0:51c02b15eb70 22
Makodan 0:51c02b15eb70 23
Makodan 0:51c02b15eb70 24
Makodan 0:51c02b15eb70 25
Makodan 0:51c02b15eb70 26 #endif