LV8548 Motor Driver Stepper Motor Dc MOtor

Dependencies:   LV8548 mbed

Files at this revision

API Documentation at this revision

Comitter:
yamasho
Date:
Sat Nov 17 05:11:50 2018 +0000
Parent:
0:82bafa3985c2
Child:
2:77d8b59fa58c
Commit message:
DC /Step select can able

Changed in this revision

LV8548.lib 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/LV8548.lib	Fri Nov 16 16:49:36 2018 +0000
+++ b/LV8548.lib	Sat Nov 17 05:11:50 2018 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/users/yamasho/code/LV8548/#04db82da014d
+https://os.mbed.com/users/yamasho/code/LV8548/#e60c7c42e6fc
--- a/Main.cpp	Fri Nov 16 16:49:36 2018 +0000
+++ b/Main.cpp	Sat Nov 17 05:11:50 2018 +0000
@@ -8,6 +8,9 @@
 #define DEFAULT_BAUDRATE  (19200) 
 //#define DEFAULT_BAUDRATE  (115200) 
 
+#define USE_DC_MOTOR      (false)
+#define USE_STEP_MOTOR    (true)
+
 
 #define _USE_DEBUG_     (0)
 enum DCSerialCommandType {
@@ -99,14 +102,14 @@
 
 
 /* pc の仮想ポートをwindows softで開ける */
-Serial pc(USBTX, USBRX); // tx, rx
+//Serial pc(USBTX, USBRX); // tx, rx
+//#if _USE_DEBUG_
+//Serial uart(D1, D0); // tx, rx
+//#endif
 #if _USE_DEBUG_
-Serial uart(D1, D0); // tx, rx
+Serial uart(USBTX, USBRX); // tx, rx
 #endif
-//#if _USE_DEBUG_
-//Serial uart(USBTX, USBRX); // tx, rx
-//#endif
-//Serial pc(D1, D0); // tx, rx
+Serial pc(D1, D0); // tx, rx
 
 DigitalOut myled(LED1);
 #if USE_DC_MOTOR