LOLshield V2 0 SMD Leds Make Your Own LOLSHIELD Effects!
by vandenbrande in Circuits > Arduino
252 Views, 0 Favorites, 0 Comments
LOLshield V2 0 SMD Leds Make Your Own LOLSHIELD Effects!
Hello world! A friend of mine gave me this little NEW version of the LOL shield which has SMD leds. So i tested it and it doesn't work any different then normal LOLshields. LOL shield stands for LOTS OF LEDS!, as you can see. They are pretty cool and can be used for many things! I will use it to display my house number :)
Checkout: http://lolshield.falldeaf.com/create.php
Create your own effects for LOLSHIELD. The ones in the video are made on that website! It is easy to do and you can download the pde file after designing your Effect!
Check out the following step for the code, and parts list.
Library can be found here! (Lol shield uses charlieplexing) https://github.com/vandenbrande/LoLshield
Example Codes, Parts List and Library
To add the LOLSHIELD to the arduino is very easy. Just plug it on top of the arduino, there is not much you can
do wrong about that, except bending the pins by accident.
Parts list:
- Arduino uno or mega.
- LOLSHIELD v.2.0 SMD or just the regular one.
- LIBRARY https://github.com/vandenbrande/LoLshield (also includes example games and effects)
Good luck!
Don't forget to make your own EFFECTS on http://lolshield.falldeaf.com/create.php
SUBSCRIBE to my youtube channel!
Check out our website: http://www.arduinosensors.nl for arduino sensors and more!
Downloads
Example Code.
First we include the library.
There are 9 rows and 14 columns.
#include "Charliplexing.h"
Then we add the row counter
byte line = 0; //Row counter
char buffer[10]; int value;
at void setup() we initialize the screen.
void setup()
{ LedSign::Init(); //Initializes the screen }
at void loop() we display the number 16 in this case. You can play with the bytes to see what happens.
void loop()
{delay(100); DisplayBitMap(0); DisplayBitMap(1936); DisplayBitMap(152); DisplayBitMap(144); DisplayBitMap(1936); DisplayBitMap(1168); DisplayBitMap(1168); DisplayBitMap(1976); DisplayBitMap(0);
}
at void DisplayBitMap(int lineint)
The LOLShield has 9 rows and 14 colums.
void DisplayBitMap(int lineint)
{ //int data[9] = {95, 247, 123, 511, 255, 1, 5, 31, 15}; //for(line = 0; line < 9; line++) { for (byte led=0; led<14; ++led) { //increment 0 by one and returns the new value of 0 if (lineint & (1<= 9) line = 0; }