Simple program giving me flashing red LED and fading Green.. All i want is fading green

272 views
Skip to first unread message

Ultra

unread,
Dec 13, 2009, 12:28:25 PM12/13/09
to DmxSimple
#include <DmxSimple.h>
int brightness;

void setup()
{
}

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

Peter Knight

unread,
Dec 14, 2009, 5:25:05 AM12/14/09
to DmxSimple
We need much more information that you have provided.

What DMX device are you driving?
Have you read and understood the lamp manual?
Are the red and green lamps flickering quickly and erratically, or in
a slow measured way?
Do you know your Arduino to DMX circuit works?


On Dec 13, 5:28 pm, Ultra <boby_boby_2...@hotmail.co.uk> wrote:
[[SUBJECT: Simple program giving me flashing red LED and fading
Green.. All i want is fading green]]

Ultra

unread,
Dec 14, 2009, 4:48:46 PM12/14/09
to DmxSimple
Hi Peter

I got it fixed now, the can was faulty
Reply all
Reply to author
Forward
0 new messages