hidaka sato
/
WRS2019_SteppingDriver
this receive i2cmaster 's data(reg, int) it move Stepping Motor. for WRS2019
Diff: define.h
- Revision:
- 0:831a6764c8cf
diff -r 000000000000 -r 831a6764c8cf define.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/define.h Tue Dec 17 07:16:39 2019 +0000 @@ -0,0 +1,23 @@ + +// Motor Position +typedef enum +{ + RightForward = 1, + LeftForward = 2, + RightBack = 3, + LeftBack = 4, +}; + +// Motor +typedef enum +{ + COAST = 0, + BRAKE = 1, + CW = 2, + CCW = 3, +}; + +#define WHO_AM_I 0x00 +#define MY_IIC_ADDR 0x01 +#define MOTOR_DIR 0x04 +#define PWM_FREQUENCY 0x05 \ No newline at end of file