MBEDテスト

Dependencies:   Motor PID mbed

Revision:
0:5af71b978fb7
Child:
2:1194c29429bf
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Registar.h	Fri Jun 19 06:36:41 2015 +0000
@@ -0,0 +1,40 @@
+#include "mbed.h"
+#include "Defines.h"
+#define Red 0x01
+#define Green 0x02
+#define Blue 0x04
+SPISlave *spi;
+I2CSlave *i2c;
+DigitalIn *Mode;
+BusIn *Address;
+BusOut LED(Red_Pin,Green_Pin,Blue_Pin);
+
+
+
+
+#define MotorMode        0x04
+#define MotorState        0x0e
+#define Who_am_I          0x0
+#define MotorPWM          0x0f
+#define MotorPWM2          0x10
+#define MoterRevolutionL   0x11
+#define MoterRevolutionH   0x12
+#define MoterPulseL 0x13
+#define MoterPulseH 0x14
+#define MoterSpeedL 0x15
+#define MoterSpeedH 0x16
+#define Automatic   0x0
+#define MotorP 0x23
+#define MotorI 0x24
+#define MotorD 0x25
+#define FinishAuto 0x00
+#define TargetSpeed 0x00
+#define TargetAngle2 0x22
+#define TargetAngle 0x21
+#define TargetSpeed2 0x00
+#define PulsePerRev 0x18
+#define PulsePerRev2 0x19
+#define RotateMode  0x17
+
+
+