For example, if I want to send on channel 1 (red) there is a red light with a green dimmed light.
why no idea
Here is de the code:
/* Welcome to DmxSimple. This library allows you to control DMX stage and
** architectural lighting and visual effects easily from Arduino. DmxSimple
** is compatible with the Tinker.it! DMX shield and all known DIY Arduino
** DMX control circuits.
**
** DmxSimple is available from: Google Code Archive - Long-term storage for Google Code Project Hosting.
** Help and support: http://groups.google.com/group/dmxsimple */
/* To use DmxSimple, you will need the following line. Arduino will
** auto-insert it if you select Sketch > Import Library > DmxSimple. */
#include <DmxSimple.h>
void setup() {
/* The most common pin for DMX output is pin 3, which DmxSimple
** uses by default. If you need to change that, do it here. */
DmxSimple.usePin(2);
/* DMX devices typically need to receive a complete set of channels
** even if you only need to adjust the first channel. You can
** easily change the number of channels sent here. If you don't
** do this, DmxSimple will set the maximum channel number to the
** highest channel you DmxSimple.write() to. */
DmxSimple.maxChannel(512);
}
void loop() {
int red;
/* Simple loop to ramp up brightness */
for (red = 0; red <= 255; red++) {
/* Update DMX channel 1 to new brightness */
DmxSimple.write(1, red);
/* Small delay to slow down the ramping */
delay(10);
}
}
I hope someone can help me