Go Down

Topic: Why does this program have flashing red LED ?? (Read 582 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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy