Hi there
I'm wondering if anyone can help me with colorduino programming. Its for a feedback display for a musical instrument interface for the severely disabled.
I've got the colorduino, hooked up, managed to (finally) run Lincomatic's Plasma demo.
I've also managed to program my own (very simple) solid color sequence with delays.
void loop()
{
ColorFill(valr,valg,valb);
valr=valr+1;
valg=valg+2;
valb=valb+10;
delay(100);
}
But now i'm totally stuck as there isn't a simpletons guide to Lincomatic's colorduino library.
I have read these two resources pretty thoroughly and am a bit lost:
http://blog.lincomatic.com/?p=148http://www.instructables.com/id/Lampduino-an-8x8-RGB-Floor-Lamp/?ALLSTEPSI'd like to be able to address separate pixels. Make pixels move about and change colour according to values from potentiometers and other input sensors.
I've tried to get a handle around these code parts:
Colorduino.SetPixel(x,y,r,g,b);
but am getting these errors:
sketch_feb20a.cpp: In function 'void loop()':
sketch_feb20a:19: error: 'x' was not declared in this scope
sketch_feb20a:19: error: 'y' was not declared in this scope
sketch_feb20a:19: error: 'r' was not declared in this scope
sketch_feb20a:19: error: 'g' was not declared in this scope
sketch_feb20a:19: error: 'b' was not declared in this scope
PixelRGB *p = GetPixel(0,1);
for (int x=0;x < ColorduinoScreenWidth;x++) {
p->r = red;
p->g = green;
p->b = blue;
p++;
}
Essentially I'm not sure how to use the code properly.
If anyone could post some example code and maybe a brief explanation on the basics of how to implement it I'd be super grateful.
Its for a musical instrument interface for the severely disabled.
thanks
Vahakn