DMX Library for STM devices

Dependents:   DISCO-F746NG_DMX-Test

Fork of DMX by Suga koubou

Revision:
18:e5e5eca21b4a
Parent:
17:b87addd12d20
diff -r b87addd12d20 -r e5e5eca21b4a DMX.h
--- a/DMX.h	Sat Dec 12 13:16:07 2015 +0000
+++ b/DMX.h	Sat Dec 12 13:57:52 2015 +0000
@@ -49,17 +49,17 @@
      * @param addr DMX data address (0-511)
      * @param data DMX data (0-255)
      */
-    void put(int addr, int data);
+    void put(int addr, char data);
     /** Send the data
      * @param buf DMX data buffer
      * @param addr DMX data address
      * @param len data length
      */
-    void put(unsigned char *buf, int addr = 0, int len = 0);
+    void put(char *buf, int addr = 0, int len = 0);
 
     /** Send the data
      * @param addr DMX data address (0-511)
-     * @return DMX data (0-255)
+     * @return DMX data (0-255) or -1 on error
      */
     int get(int addr);
     /** Send the data
@@ -67,7 +67,7 @@
      * @param addr DMX data address
      * @param len data length
      */
-    void get(unsigned char *buf, int addr = 0, int len = 0);
+    void get(char *buf, int addr = 0, int len = 0);
 
     /** Start DMX send operation
      */