MDX-15,20の制御用library

Files at this revision

API Documentation at this revision

Comitter:
suupen
Date:
Wed Nov 23 09:12:01 2016 +0000
Parent:
3:3bf2936b8d9b
Child:
5:bd414d8e483f
Commit message:
motorOff???;

Changed in this revision

MDX20.cpp Show annotated file Show diff for this revision Revisions of this file
MDX20.h Show annotated file Show diff for this revision Revisions of this file
--- a/MDX20.cpp	Sat Nov 19 11:10:48 2016 +0000
+++ b/MDX20.cpp	Wed Nov 23 09:12:01 2016 +0000
@@ -149,6 +149,13 @@
     return (ans);
 }
 
+uint8_t MDX20::motorOff(void)
+{
+    uint8_t ans;
+    ans &= sendData("!MC0");
+    return (ans);
+}
+
 uint8_t MDX20::userOriginInitial(void)
 {
     char buffer[100];
--- a/MDX20.h	Sat Nov 19 11:10:48 2016 +0000
+++ b/MDX20.h	Wed Nov 23 09:12:01 2016 +0000
@@ -24,6 +24,8 @@
 
     int putc(int c);
     uint8_t initial(void);
+    uint8_t motorOff(void);
+
     uint8_t userOriginInitial(void);
 
     uint8_t final(void);