Go Down

Topic: Why does this program have flashing red LED ?? (Read 522 times) previous topic - next topic

Ultra

All i want is to make the thing fade the brightness of the green LED up.

I am getting that plus rapid flashing red LED.

Why?

>:(


#include <DmxSimple.h>
int brightness;

void setup()
{
}

void loop()
{
for (brightness = 0; brightness <= 255; brightness++)
{
  DmxSimple.write(1, 0);
  DmxSimple.write(3,brightness);
  delay(10); // Wait 10ms
}
}

PaulS

What happens if you remove the "  DmxSimple.write(1, 0);" statement?

Ultra

Nothing

Still flashes red and fades up the green

If i change the channel to 4, it fades blue and flashes green


the switches at teh back of my can are set to 1.....

Go Up