Get Help
Updating to a new Sparki LCD
We like to update Sparki with better parts when we find them, and this LCD was one of them!
It’s larger and brighter than the previous version:
However, the settings are slightly different. We’ve already included these settings in SparkiDuino and the Sparki Library, but Sparkis that used to have the old LCDs need to be ‘told’ that to remember they’re using the new LCD, otherwise they look funky:
You can do that by uploading this piece of code to them:
1 2 3 4 5 6 7 8 9 10 |
#include <Sparki.h> // include the robot library #include <EEPROM.h> void setup() { //EEPROM.write(1, 00); // tells the Sparki its using the old LCD EEPROM.write(1, 88); // tells the Sparki its using the new LCD } void loop() { } |
After uploading this code, you can upload any code to use the LCD. By default, any example that doesn’t explicitly use the LCD just displays the logo – which is fine for testing! Here’s the Red-Green-Blue LED example, which should load the logo:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
#include <Sparki.h> // include the sparki library void setup() { } void loop() { sparki.RGB(100,0,0); // Make the LED maximum Red delay(500); // wait 0.5 seconds (500 milliseconds) sparki.RGB(0,100,0); // Make the LED maximum Green delay(500); sparki.RGB(0,0,100); // Make the LED maximum Blue delay(500); sparki.RGB(RGB_WHITE); // Make the LED white (all colors) delay(500); sparki.RGB(RGB_OFF); // Make the LED off (all colors) delay(500); } |
It should look like this afterwards:
Not sure how to upload? Check out the Sparki Upload Tutorial