Happy Gay Pride Month

It’s almost the end of Gay Pride Month so I programmed a message from Sparki:

#include // include the sparki library
void setup() {
}
void message()
{
sparki.clearLCD();
sparki.drawString(10, 1, "Love is love!");
sparki.updateLCD();
delay(1000);
sparki.drawString(10, 3, "Happy Gay Pride");
sparki.drawString(10, 5, " Month");
sparki.updateLCD();
delay(1000);
}
void heart() {
sparki.clearLCD();
sparki.drawLine(64, 54, 36, 20);
sparki.drawLine(64, 54, 37, 20);
sparki.drawLine(64, 54, 38, 20);
sparki.drawLine(64, 54, 39, 20);
sparki.drawLine(64, 54, 41, 20);
sparki.drawLine(64, 54, 42, 20);
sparki.drawLine(64, 54, 43, 20);
sparki.drawLine(64, 54, 44, 20);
sparki.drawLine(64, 54, 45, 20);
sparki.drawLine(64, 54, 46, 20);
sparki.drawLine(64, 54, 47, 20);
sparki.drawLine(64, 54, 48, 20);
sparki.drawLine(64, 54, 49, 20);
sparki.drawLine(64, 54, 50, 20);
sparki.drawLine(64, 54, 51, 20);
sparki.drawLine(64, 54, 52, 20);
sparki.drawLine(64, 54, 53, 20);
sparki.drawLine(64, 54, 54, 20);
sparki.drawLine(64, 54, 55, 20);
sparki.drawLine(64, 54, 56, 20);
sparki.drawLine(64, 54, 57, 20);
sparki.drawLine(64, 54, 58, 20);
sparki.drawLine(64, 54, 59, 20);
sparki.drawLine(64, 54, 60, 20);
sparki.drawLine(64, 54, 61, 20);
sparki.drawLine(64, 54, 62, 20);
sparki.drawLine(64, 54, 63, 20);
sparki.drawLine(64, 54, 64, 20);
sparki.drawLine(64, 54, 65, 20);
sparki.drawLine(64, 54, 66, 20);
sparki.drawLine(64, 54, 67, 20);
sparki.drawLine(64, 54, 68, 20);
sparki.drawLine(64, 54, 69, 20);
sparki.drawLine(64, 54, 70, 20);
sparki.drawLine(64, 54, 71, 20);
sparki.drawLine(64, 54, 71, 20);
sparki.drawLine(64, 54, 73, 20);
sparki.drawLine(64, 54, 74, 20);
sparki.drawLine(64, 54, 75, 20);
sparki.drawLine(64, 54, 76, 20);
sparki.drawLine(64, 54, 77, 20);
sparki.drawLine(64, 54, 78, 20);
sparki.drawLine(64, 54, 79, 20);
sparki.drawLine(64, 54, 80, 20);
sparki.drawLine(64, 54, 81, 20);
sparki.drawLine(64, 54, 82, 20);
sparki.drawLine(64, 54, 83, 20);
sparki.drawLine(64, 54, 84, 20);
sparki.drawLine(64, 54, 85, 20);
sparki.drawLine(64, 54, 86, 21);
sparki.drawLine(64, 54, 87, 21);
sparki.drawLine(64, 54, 88, 21);
sparki.drawCircleFilled(50, 20, 13);
sparki.drawCircleFilled(75, 20, 13);
sparki.drawCircleFilled(64, 30, 6);
sparki.updateLCD();
}
void loop() {
while (sparki.ping() < 10) {
heart();
}
message();
sparki.RGB(RGB_RED);
delay(500);
sparki.RGB(RGB_ORANGE);
delay(500);
sparki.RGB(RGB_YELLOW);
delay(500);
sparki.RGB(RGB_GREEN);
delay(500);
sparki.RGB(RGB_BLUE);
delay(500);
sparki.RGB(RGB_INDIGO);
delay(500);
sparki.RGB(RGB_VIOLET);
delay(500);
}

2 comments

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s