Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <DMXSerial.h>
- int DMX_Outputpin = 18; //Serial Port 1 TX (DMX Outputpin)
- void setup()
- {
- Serial.begin(9600);
- pinMode (DMX_Outputpin, OUTPUT);
- DMXSerial.maxChannel(512); // // danmit alle 512 Kanäle ausgegeben werden
- DMXSerial.init(DMXController,DMX_Outputpin); // Funktioniert als Controller (Pult)
- }
- void loop()
- {
- DMXSerial.write(1, 64); // Kanal 1 Automatikprogramm Wert 64
- DMXSerial.write(2, 245); // Kanal 2 Geschwindigkeit 0-255 ab Geschwindigkeitswert 245 funktioniert es wie es soll
- delay (1000000000); // Nur zum Test damit erneutes Senden des DMX-Codes unterbunden wird
- }
Advertisement
Add Comment
Please, Sign In to add comment