DMX-Test for DMX-ST

Dependencies:   DMX-ST mbed-src

This library does'nt work as I have no DMX board for my STM-DISCO

Files at this revision

API Documentation at this revision

Comitter:
Gottfried
Date:
Sat Dec 12 13:58:02 2015 +0000
Parent:
0:8690adb11199
Commit message:
some changes

Changed in this revision

DMX.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
diff -r 8690adb11199 -r a885240933b7 DMX.lib
--- a/DMX.lib	Sat Dec 12 13:36:32 2015 +0000
+++ b/DMX.lib	Sat Dec 12 13:58:02 2015 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/users/Gottfried/code/DMX-ST/#b87addd12d20
+https://developer.mbed.org/users/Gottfried/code/DMX-ST/#e5e5eca21b4a
diff -r 8690adb11199 -r a885240933b7 main.cpp
--- a/main.cpp	Sat Dec 12 13:36:32 2015 +0000
+++ b/main.cpp	Sat Dec 12 13:58:02 2015 +0000
@@ -8,12 +8,16 @@
   //      Tx,   Rx
   // Arduino Header
   DMX dmx(D3, D4);  //(PC_2, PA_2)
-    
+  
+  dmx.start();
+
   while(1)
   {
     myled = 1; // LED is ON
     wait(0.2); // 200 ms
     myled = 0; // LED is OFF
     wait(1.0); // 1 sec
+    dmx.put(0, (char)255);
+    int i = dmx.get(0);
   }
 }