SE1

Dependencies:   i2cslave mbed

Revision:
0:51438a7d7c37
Child:
1:9c35cd14067d
diff -r 000000000000 -r 51438a7d7c37 define.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/define.h	Sat Sep 10 08:03:25 2016 +0000
@@ -0,0 +1,41 @@
+/*Registar group*************************************/
+
+#define motor1_state    0x01
+#define motor2_state    0x02
+#define motor1_pwm      0x03
+#define motor2_pwm      0x04
+#define check_reg       0x05
+#define PM_target_reg   0x10
+#define RE_target_reg   0x20
+#define Kp              0x30
+#define pid_start       0x40
+#define machine_state   0x45
+#define PM_ofset_reg    0x50
+
+/*Address group*************************************/
+//MD : MotorDriver
+#define MD1_addr 0x12
+#define MD2_addr 0x14
+#define MD3_addr 0x16
+#define MD4_addr 0x18
+#define MD5_addr 0x20
+#define MD6_addr 0x22
+#define MD7_addr 0x24
+#define MD8_addr 0x26
+#define MD9_addr 0x28
+#define MD10_addr 0x30
+#define MD11_addr 0x32
+#define MD12_addr 0x34
+#define MD13_addr 0x36
+#define MD14_addr 0x38
+#define MD15_addr 0x340
+
+//SE : Sensor
+#define SE1_addr 0x90
+#define SE2_addr 0xA0
+
+/*Motor movement***********************************/
+
+#define Nomal 5
+#define Reverse 10
+#define Stop 3
\ No newline at end of file