Pages: [1]   Go Down
Author Topic: Why does this program have flashing red LED ??  (Read 462 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?

 >smiley-sad


#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
 }
}
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.....
Logged

Pages: [1]   Go Up
Jump to: