/DMXBasic_Send.ino Secret
Created
June 28, 2020 22:18
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Conceptinetics.h> | |
#define dmxMaster_CHANNELS 512 | |
#define RXEN_PIN 2 | |
DMX_Master dmxMaster ( dmxMaster_CHANNELS, RXEN_PIN ); | |
const int LEDPIN = 11; | |
const int valueSlot = 1; | |
int value = 0; | |
// the setup routine runs once when you press reset: | |
void setup() { | |
dmxMaster.enable (); | |
} | |
void loop() | |
{ | |
value = (value + 4) % 255; | |
analogWrite(LEDPIN, value); | |
dmxMaster.setChannelValue (valueSlot, value); | |
delay(25); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment