Hello
I had a few questions about the CircularLEDtest code.
I’m trying to understand how to control the CircularLED
#include <CircularLED.h>
CircularLED circularLED1(10,9); //What is happening here ?
CircularLED circularLED2(16,15);
//CircularLED circularLED;
unsigned int LED[24];
int k=0;
void setup()
{
Serial.begin(9600);
//circularLED1.init(); What is happening here ?
}
void loop()
{
for (int i =0;i<24;i++)
{
LED[i]=0;
}
LED[k]= 0xff; //what is this ?
k++;
if (k==24)
k=0;
circularLED1.CircularLEDWrite(LED); // what is this and why are there 2 of them ?
circularLED2.CircularLEDWrite(LED);
delay(40);
}
When I upload this sketch I get an error like this. When I move around the LED disk, it just flashes randomly. What is causing this ?
In file included from /Users/josephkoon/Documents/Arduino/CircularLED/examples/CircularLEDtest/CircularLEDtest.ino:1:0:
/Users/josephkoon/Documents/Arduino/libraries/CircularLED/CircularLED.h:53:7: warning: extra tokens at end of #endif directive [enabled by default]
#endif;
^