Kiko Ishimoto / Mbed 2 deprecated MotorDrive

Dependencies:   Motor PID mbed

Fork of Nucleo_spi by Kiko Ishimoto

Files at this revision

API Documentation at this revision

Comitter:
kikoaac
Date:
Sat Aug 08 02:11:59 2015 +0000
Parent:
2:1194c29429bf
Commit message:
PWM???????????????

Changed in this revision

Registar.h Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Registar.h	Tue Jul 21 08:13:33 2015 +0000
+++ b/Registar.h	Sat Aug 08 02:11:59 2015 +0000
@@ -14,8 +14,8 @@
 #define MotorMode        0x04
 #define MotorState        0x0e
 #define Who_am_I          0x2
-#define MotorPWM          0x10
-#define MotorPWM2          0xf
+#define MotorPWM          0xf
+#define MotorPWM2          0x10
 #define MoterRevolutionL   0x11
 #define MoterRevolutionH   0x12
 #define MoterPulseL 0x13
@@ -42,3 +42,4 @@
 
 
 
+
--- a/main.cpp	Tue Jul 21 08:13:33 2015 +0000
+++ b/main.cpp	Sat Aug 08 02:11:59 2015 +0000
@@ -281,7 +281,8 @@
 {
      Motor_mode();
      Rotate();
-     //printf("Tic\n");
+     
+     //printf("Tic %d\n");
 }
 //void timer(){
 extern "C"  void execute_spi_slave_hw( void )
@@ -458,3 +459,4 @@
 
 
 
+