More LOL Shield examples and Arduino

Switch LEDS off and on by column

#include <Charliplexing.h>

void setup()
{
LedSign::Init(); // initializes the screen
}

void loop()
{
for (int x=0; x<14; x++)
{
for (int y=0; y<9; y++)
{
LedSign::Set(x,y,1); // turns on LED at x,y
delay(50);
}
}
delay(500);
for (int x=0; x<14; x++)
{
for (int y=0; y<9; y++)
{
LedSign::Set(x,y,0); // turns on LED at x,y
delay(50);
}
}
delay(500);

}

 

Now switch the LEDS on and off by rows

 

#include <Charliplexing.h>

void setup()
{
LedSign::Init(); // initializes the screen
}

void loop()
{
for (int y=0; y<9; y++)
{
for (int x=0; x<14; x++)
{
LedSign::Set(x,y,1); // turns on LED at x,y
delay(50);
}
}
delay(500);
for (int y=0; y<9; y++)
{
for (int x=0; x<14; x++)
{
LedSign::Set(x,y,0); // turns on LED at x,y
delay(50);
}
}
delay(500);

}

Related posts

Arduino and GY-21P readings on a web page

MPL3115A2 sensor readings displayed on a web page

Adafruit Neopixel shield examples