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

main.cpp

Committer:
Gottfried
Date:
2015-12-12
Revision:
1:a885240933b7
Parent:
0:8690adb11199

File content as of revision 1:a885240933b7:

#include "mbed.h"
#include "DMX.h"

DigitalOut myled(LED1);

int main() 
{
  //      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);
  }
}