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:
0:8690adb11199
Child:
1:a885240933b7

File content as of revision 0:8690adb11199:

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

DigitalOut myled(LED1);

int main() 
{
  //      Tx,   Rx
  // Arduino Header
  DMX dmx(D3, D4);  //(PC_2, PA_2)
    
  while(1)
  {
    myled = 1; // LED is ON
    wait(0.2); // 200 ms
    myled = 0; // LED is OFF
    wait(1.0); // 1 sec
  }
}