#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define WIDTH 64 // OLED display width, in pixels
#define HEIGHT 128 // OLED display height, in pixels
Adafruit_SSD1306 display(128, 64, &Wire, -1);
#define UP_BUTTON_PIN 12
#define DOWN_BUTTON_PIN 10
#define SELECT_BUTTON_PIN 9
#define left 11
#define BUZZER_PIN 2
byte selectedItem = 0;
byte selectedFunction = 254;
unsigned int nothingClicked = 0;
byte rpsSelect = 0;
//const byte arraySize = 50; // adjust as needed
//byte colors[arraySize]; // the array
//byte colorIndex = 0; // the next index of the array to be filled
static const unsigned char PROGMEM no_brian_logo [] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x03, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xce, 0x67, 0x10, 0x00, 0x00, 0x00,
0x00, 0x06, 0x79, 0xfb, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x04, 0x21, 0x04, 0x24, 0x00, 0x00, 0x00,
0x00, 0x08, 0x02, 0xff, 0xf4, 0x00, 0x00, 0x00, 0x00, 0x08, 0x03, 0xc1, 0x12, 0x00, 0x00, 0x00,
0x00, 0x18, 0x02, 0x06, 0x12, 0x00, 0x00, 0x00, 0x00, 0x10, 0x32, 0x05, 0x92, 0x00, 0x00, 0x00,
0x00, 0x10, 0x11, 0x08, 0x7f, 0xff, 0xc0, 0x00, 0x00, 0x10, 0x10, 0xf0, 0x00, 0x00, 0x30, 0x00,
0x00, 0x10, 0x10, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x10, 0x10, 0x00, 0x00, 0x00, 0x0c, 0x00,
0x00, 0x10, 0x10, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x10, 0x10, 0x00, 0x00, 0x00, 0x7e, 0x00,
0x00, 0x0c, 0x10, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x07, 0xe0, 0x00, 0x00, 0x00, 0xff, 0x80,
0x00, 0x04, 0x00, 0x00, 0x00, 0x01, 0xff, 0x80, 0x00, 0x08, 0x00, 0x00, 0x00, 0x01, 0xff, 0x80,
0x00, 0x08, 0x00, 0x00, 0x00, 0x01, 0xff, 0xc0, 0x00, 0x08, 0x00, 0x00, 0x00, 0x01, 0xff, 0xc0,
0x00, 0x08, 0x00, 0x00, 0x00, 0x01, 0xff, 0xc0, 0x00, 0x08, 0x00, 0x00, 0x00, 0x01, 0xff, 0xc0,
0x00, 0x08, 0x00, 0x00, 0x00, 0x01, 0xff, 0x80, 0x00, 0x08, 0x00, 0x00, 0x00, 0x01, 0xff, 0x80,
0x00, 0x0c, 0x00, 0x00, 0x00, 0x01, 0xff, 0x80, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0xff, 0x80,
0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x7e, 0x00,
0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00,
0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x04, 0x00, 0x1e, 0x00, 0x00, 0x60, 0x00,
0x00, 0x06, 0x00, 0x3b, 0xff, 0x8f, 0x83, 0x80, 0x00, 0x07, 0x00, 0x38, 0x07, 0xfc, 0x02, 0x40,
0x00, 0x07, 0x80, 0x18, 0x1e, 0x00, 0x02, 0x40, 0x00, 0x07, 0xe0, 0x0f, 0xf3, 0x00, 0x02, 0xf8,
0x00, 0x0f, 0xfc, 0x00, 0x02, 0x00, 0x07, 0x8c, 0x00, 0x1b, 0xff, 0xf9, 0x0e, 0x00, 0x0d, 0x04,
0x00, 0x31, 0xff, 0xff, 0xfe, 0x00, 0x78, 0xfc, 0x00, 0x20, 0x7f, 0xff, 0xff, 0xff, 0xe1, 0x84,
0x00, 0x40, 0x1f, 0xff, 0xfd, 0x00, 0x01, 0xb2, 0x00, 0x40, 0x03, 0xff, 0xf0, 0x80, 0x00, 0xcc,
0x00, 0x80, 0x00, 0x3f, 0x80, 0x40, 0x00, 0x86, 0x00, 0x80, 0x00, 0x00, 0x70, 0x40, 0x00, 0xf2,
0x01, 0x80, 0x00, 0x00, 0xf8, 0x20, 0x00, 0x06, 0x01, 0x00, 0x00, 0x00, 0xf8, 0x20, 0x00, 0x04,
0x01, 0x00, 0x00, 0x00, 0xf8, 0x20, 0x01, 0xf8, 0x01, 0x00, 0x00, 0x00, 0xf8, 0x20, 0x0e, 0x00,
0x01, 0x00, 0x20, 0x00, 0x70, 0x11, 0xf0, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x1e, 0x00, 0x00,
0x01, 0x00, 0x40, 0x00, 0x00, 0x10, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x00, 0x10, 0x00, 0x00,
0x01, 0x00, 0x40, 0x00, 0x00, 0x10, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x00, 0x10, 0x00, 0x00,
0x01, 0x00, 0x40, 0x00, 0x00, 0x10, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00,
0x01, 0x00, 0x20, 0x00, 0x00, 0x20, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x20, 0x00, 0x00,
0x01, 0x00, 0x20, 0x00, 0x00, 0x20, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x00, 0x20, 0x00, 0x00,
0x01, 0x00, 0x20, 0x00, 0x00, 0x20, 0x00, 0x00, 0x01, 0x02, 0x20, 0x00, 0x00, 0x40, 0x00, 0x00,
0x03, 0x12, 0x20, 0x00, 0x00, 0x40, 0x00, 0x00, 0x02, 0x22, 0x40, 0x00, 0x00, 0x40, 0x00, 0x00,
0x03, 0x66, 0x40, 0x00, 0x00, 0x80, 0x00, 0x00, 0x01, 0xff, 0x80, 0x00, 0x00, 0x80, 0x00, 0x00,
0x01, 0xc0, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x03, 0x40, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00,
0x06, 0x20, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x38, 0x30, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00,
0x30, 0x78, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x1f, 0x88, 0x00, 0x03, 0x00, 0x80, 0x00, 0x00,
0x00, 0x08, 0x00, 0x0e, 0x00, 0x80, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x80, 0x00, 0x00,
0x00, 0x08, 0x00, 0x08, 0x00, 0x80, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08, 0x00, 0x80, 0x00, 0x00,
0x00, 0x08, 0x00, 0x08, 0x00, 0x80, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x08, 0x00, 0x80, 0x00, 0x00,
0x00, 0x04, 0x00, 0x08, 0x00, 0x80, 0x00, 0x00, 0x00, 0x04, 0x00, 0x08, 0x00, 0xc0, 0x00, 0x00,
0x00, 0x04, 0x00, 0x08, 0x00, 0x60, 0x00, 0x00, 0x00, 0x04, 0x00, 0x0c, 0x00, 0x10, 0x00, 0x00,
0x00, 0x04, 0x00, 0x06, 0x00, 0x08, 0x00, 0x00, 0x00, 0x04, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00,
0x00, 0x0c, 0x00, 0x00, 0x80, 0x14, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x80, 0x94, 0x00, 0x00,
0x00, 0x08, 0x00, 0x04, 0x80, 0x8c, 0x00, 0x00, 0x00, 0x08, 0x00, 0x40, 0x80, 0x98, 0x00, 0x00,
0x00, 0x04, 0x00, 0x23, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x03, 0x00, 0x27, 0x07, 0x00, 0x00, 0x00,
0x00, 0x00, 0xff, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x10, 0x00, 0xe0, 0x00, 0x00, 0x3f, 0xe0,
0x0e, 0x18, 0x01, 0xf0, 0x0c, 0x00, 0x0d, 0xe0, 0x0e, 0x18, 0x01, 0x98, 0x00, 0x00, 0x0d, 0xf0,
0x0f, 0x19, 0xc1, 0x9a, 0xe8, 0xe7, 0x8f, 0xf0, 0x0d, 0x9b, 0xc1, 0xf3, 0xed, 0xb7, 0xc0, 0x00,
0x0c, 0xde, 0x61, 0xfb, 0x2f, 0x36, 0xc0, 0x00, 0x0c, 0xfe, 0x61, 0x9a, 0x0b, 0x34, 0xc0, 0x00,
0x0c, 0x7e, 0x41, 0x9a, 0x0f, 0x3c, 0xc0, 0x00, 0x0c, 0x3b, 0xc1, 0xf2, 0x0d, 0xf4, 0xc0, 0x00,
0x04, 0x01, 0x80, 0xc2, 0x00, 0xd4, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
static const unsigned char PROGMEM no_brian_logo_two [] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x1c, 0x3e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x23, 0xe3, 0xc0, 0x00, 0x00,
0x00, 0x07, 0xd8, 0x40, 0x1f, 0x30, 0x00, 0x00, 0x00, 0x1c, 0x88, 0x80, 0x21, 0x9c, 0x00, 0x00,
0x00, 0x24, 0x98, 0x80, 0x40, 0xe3, 0x00, 0x00, 0x00, 0x2d, 0xf9, 0x00, 0x48, 0x41, 0x40, 0x00,
0x00, 0x2d, 0x05, 0x00, 0x4c, 0x41, 0x20, 0x00, 0x00, 0x2f, 0x06, 0x00, 0x40, 0x8d, 0x20, 0x00,
0x00, 0x3b, 0xc6, 0x02, 0x20, 0xc1, 0x20, 0x00, 0x00, 0x20, 0x86, 0x02, 0x1b, 0x31, 0x20, 0x00,
0x00, 0x20, 0x8c, 0x00, 0x00, 0x0f, 0x20, 0x00, 0x00, 0x20, 0x0c, 0x00, 0x00, 0x00, 0x7c, 0x00,
0x00, 0x30, 0x0a, 0x04, 0x00, 0x00, 0x03, 0x00, 0x00, 0x30, 0x09, 0x84, 0x00, 0x00, 0x00, 0x80,
0x00, 0x20, 0x08, 0xf8, 0x00, 0x00, 0x00, 0x40, 0x00, 0x20, 0x08, 0x80, 0x00, 0x00, 0xf8, 0x20,
0x00, 0x20, 0x08, 0x00, 0x00, 0x01, 0xfc, 0x20, 0x00, 0x20, 0x01, 0x00, 0x00, 0x03, 0xfe, 0x10,
0x00, 0x20, 0x05, 0x00, 0x00, 0x07, 0xff, 0x10, 0x00, 0x20, 0x05, 0x00, 0x00, 0x0f, 0xff, 0x90,
0x00, 0x20, 0x04, 0x00, 0x00, 0x0f, 0xff, 0x98, 0x00, 0x20, 0x06, 0x00, 0x00, 0x0f, 0xff, 0x88,
0x00, 0x20, 0x06, 0x00, 0x00, 0x1f, 0xff, 0x88, 0x00, 0x20, 0x06, 0x00, 0x00, 0x1f, 0xff, 0x88,
0x00, 0x20, 0x02, 0x00, 0x00, 0x1f, 0xff, 0x98, 0x00, 0x20, 0x02, 0x00, 0x00, 0x1f, 0xff, 0x90,
0x00, 0x20, 0x02, 0x00, 0x00, 0x0f, 0xff, 0x90, 0x00, 0x20, 0x02, 0x00, 0x00, 0x0f, 0xff, 0x10,
0x00, 0x20, 0x02, 0x00, 0x00, 0x0f, 0xff, 0x30, 0x00, 0x20, 0x02, 0x00, 0x00, 0x07, 0xfe, 0x20,
0x00, 0x30, 0x02, 0x00, 0x00, 0x07, 0xfe, 0x20, 0x00, 0x10, 0x03, 0x00, 0x00, 0x03, 0xf8, 0x40,
0x00, 0x10, 0x01, 0x00, 0x60, 0x00, 0xe0, 0x40, 0x00, 0x10, 0x01, 0x80, 0xf8, 0x00, 0x00, 0x80,
0x00, 0x10, 0x01, 0xc0, 0xff, 0x00, 0x01, 0x00, 0x00, 0x10, 0x01, 0xf0, 0xff, 0xf8, 0x06, 0x00,
0x00, 0x10, 0x01, 0xf8, 0x7f, 0xc7, 0xfc, 0x00, 0x00, 0x18, 0x01, 0xff, 0x7f, 0xc4, 0x00, 0x00,
0x00, 0x08, 0x00, 0x7f, 0xff, 0xdc, 0x00, 0x00, 0x00, 0x08, 0x00, 0x3f, 0xdf, 0xfc, 0x00, 0x00,
0x00, 0x08, 0x00, 0x1f, 0xe3, 0xfc, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x07, 0xf0, 0x0c, 0x00, 0x00,
0x00, 0x04, 0x00, 0x01, 0xfc, 0x3c, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x3f, 0xe2, 0x00, 0x00,
0x00, 0x04, 0x00, 0x00, 0x04, 0x02, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x1e, 0x01, 0x00, 0x00,
0x00, 0x04, 0x00, 0x00, 0x3e, 0x09, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x3f, 0x09, 0x00, 0x00,
0x00, 0x08, 0x00, 0x00, 0x3e, 0x09, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x3e, 0x09, 0x00, 0x00,
0x00, 0x18, 0x00, 0x00, 0x08, 0x09, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x09, 0x80, 0x00,
0x00, 0x10, 0x00, 0x00, 0x00, 0x08, 0x80, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x08, 0xc0, 0x00,
0x00, 0x20, 0x00, 0x00, 0x00, 0x08, 0x60, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x08, 0x30, 0x00,
0x00, 0x40, 0x00, 0x00, 0x00, 0x08, 0x0c, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x08, 0x0e, 0x00,
0x00, 0x40, 0x00, 0x00, 0x00, 0x08, 0x03, 0x80, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x08, 0x13, 0x80,
0x00, 0x80, 0x00, 0x00, 0x00, 0x18, 0x72, 0x80, 0x00, 0x80, 0x00, 0x00, 0x00, 0x10, 0x35, 0x80,
0x00, 0x80, 0x00, 0x00, 0x00, 0x18, 0x3f, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x26, 0x72, 0x00,
0x00, 0x80, 0x00, 0x00, 0x00, 0x21, 0xcc, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x40, 0x64, 0x00,
0x07, 0xc0, 0x00, 0x00, 0x00, 0x40, 0x38, 0x00, 0x02, 0xc0, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00,
0x01, 0xc0, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00,
0x00, 0x20, 0x00, 0x02, 0x00, 0x80, 0x00, 0x00, 0x00, 0x20, 0x00, 0x3c, 0x00, 0x80, 0x00, 0x00,
0x00, 0x10, 0x00, 0x20, 0x00, 0x80, 0x00, 0x00, 0x00, 0x10, 0x00, 0x20, 0x00, 0x80, 0x00, 0x00,
0x00, 0x10, 0x00, 0x20, 0x00, 0x80, 0x00, 0x00, 0x00, 0x10, 0x00, 0x20, 0x00, 0x80, 0x00, 0x00,
0x00, 0x10, 0x00, 0x20, 0x00, 0x80, 0x00, 0x00, 0x00, 0x10, 0x00, 0x20, 0x00, 0x80, 0x00, 0x00,
0x00, 0x30, 0x00, 0x20, 0x00, 0x80, 0x00, 0x00, 0x00, 0x20, 0x00, 0x20, 0x00, 0x80, 0x00, 0x00,
0x00, 0x20, 0x00, 0x20, 0x00, 0x80, 0x00, 0x00, 0x00, 0x20, 0x00, 0x20, 0x00, 0x80, 0x00, 0x00,
0x00, 0x20, 0x00, 0x20, 0x00, 0x40, 0x00, 0x00, 0x00, 0x60, 0x00, 0x10, 0x00, 0x20, 0x00, 0x00,
0x00, 0x40, 0x00, 0x08, 0x02, 0x3c, 0x00, 0x00, 0x03, 0xc0, 0x00, 0x88, 0x11, 0x3f, 0xe0, 0x00,
0x0f, 0xc0, 0x08, 0x80, 0x11, 0x3f, 0xf8, 0x00, 0x0f, 0xe0, 0x08, 0x04, 0x11, 0x7f, 0xfc, 0x00,
0x03, 0xf8, 0x08, 0x0f, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x3f, 0x88, 0x1f, 0xff, 0xfe, 0x00, 0x00,
0x00, 0x00, 0xff, 0xff, 0xfc, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x10, 0x00, 0xe0, 0x00, 0x00, 0x3f, 0xe0,
0x0e, 0x18, 0x01, 0xf0, 0x0c, 0x00, 0x09, 0xe0, 0x0e, 0x18, 0x01, 0x98, 0x00, 0x00, 0x0d, 0xf0,
0x0f, 0x19, 0xc1, 0x9a, 0xe8, 0xe7, 0x8f, 0xf0, 0x0d, 0x9b, 0xc1, 0xf3, 0xe9, 0xb7, 0xc0, 0x00,
0x0c, 0xde, 0x61, 0xfb, 0x2b, 0x36, 0xc0, 0x00, 0x0c, 0x7e, 0x61, 0x9a, 0x0b, 0x34, 0xc0, 0x00,
0x0c, 0x7e, 0x41, 0x9a, 0x0b, 0x34, 0xc0, 0x00, 0x0c, 0x3b, 0xc1, 0xf2, 0x09, 0xf4, 0xc0, 0x00,
0x04, 0x01, 0x80, 0xc2, 0x00, 0xd4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
static const unsigned char PROGMEM rps_ROCK [] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xff, 0xff, 0xf8, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x1f, 0xff, 0xff,
0xff, 0xff, 0xfe, 0x00, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x00, 0x7f, 0xff, 0xff,
0xff, 0xff, 0xff, 0x00, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x00, 0x7f, 0xff, 0xff,
0x00, 0x00, 0x07, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0xe0, 0x00, 0x00,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0xe0, 0x00, 0x00,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0xc0, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x0f, 0xe0, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0xe0, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x1f, 0xf0, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0xf0, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x3f, 0xf8, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0xf0, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x7f, 0xfc, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0xfc, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0xff, 0xfe, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0xfc, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0xff, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x03, 0xff, 0xff, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0xff, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x03, 0xff, 0xff, 0x80, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0xff, 0x80, 0x03, 0x80, 0x1c, 0x00, 0x07, 0xff, 0xff, 0x80, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0xff, 0xc0, 0x03, 0x80, 0x1c, 0x00, 0x0f, 0xff, 0xf3, 0xc0, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0xff, 0xe0, 0x03, 0x80, 0x1c, 0x00, 0x1f, 0xff, 0xf1, 0xf0, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0xff, 0xc0, 0x03, 0x80, 0x1c, 0x00, 0x1f, 0xff, 0xf0, 0x78, 0x00, 0x38, 0x00, 0xc0, 0x00, 0xe0,
0xff, 0xc0, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xe0, 0x1c, 0x00, 0x38, 0x00, 0xc0, 0x03, 0xf8,
0xff, 0xc0, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xe0, 0x0e, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xfc,
0xff, 0xc0, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xe0, 0x03, 0x00, 0x38, 0x00, 0xc0, 0x0f, 0xfe,
0xff, 0xc0, 0x03, 0x80, 0x1c, 0x00, 0x7f, 0xff, 0xe0, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x1f, 0xff,
0xff, 0xc0, 0x03, 0x80, 0x1c, 0x00, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x1f, 0x0f,
0xff, 0xc0, 0x03, 0x80, 0x1c, 0x00, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x1e, 0x0f,
0xff, 0xc0, 0x03, 0x80, 0x1c, 0x01, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x1e, 0x0f,
0xff, 0xc0, 0x03, 0x80, 0x1c, 0x01, 0xff, 0xff, 0x80, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x1f, 0x1f,
0xff, 0xc0, 0x03, 0x80, 0x1c, 0x01, 0xff, 0xff, 0x80, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x1f, 0xff,
0xff, 0xc0, 0x03, 0x80, 0x1c, 0x01, 0xff, 0xff, 0x80, 0x00, 0x80, 0x38, 0x00, 0xc0, 0x0f, 0xff,
0xff, 0xc0, 0x03, 0x80, 0x1c, 0x01, 0xff, 0xff, 0xc0, 0x01, 0x80, 0x38, 0x00, 0xc0, 0x07, 0xff,
0xff, 0xc0, 0x03, 0x80, 0x1c, 0x03, 0xff, 0xff, 0xe0, 0x03, 0x80, 0x38, 0x00, 0xc0, 0x03, 0xfb,
0xff, 0xc0, 0x03, 0x80, 0x1c, 0x03, 0xff, 0xff, 0xfc, 0x03, 0xc0, 0x38, 0x00, 0xc0, 0x00, 0xe7,
0xff, 0xc0, 0x03, 0x80, 0x1c, 0x01, 0xff, 0xff, 0xff, 0x07, 0xc0, 0x38, 0x00, 0xc0, 0x00, 0x06,
0xff, 0xc0, 0x03, 0x80, 0x1c, 0x01, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x38, 0x00, 0xc0, 0x00, 0x06,
0xff, 0xc0, 0x03, 0x80, 0x1c, 0x00, 0xff, 0xff, 0xff, 0xff, 0x80, 0x38, 0x00, 0xc0, 0x00, 0x06,
0xff, 0xc0, 0x03, 0x80, 0x1c, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x07,
0xff, 0xc0, 0x03, 0x80, 0x1c, 0x00, 0x7f, 0xff, 0xff, 0xff, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x03,
0xff, 0xc0, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0xfc, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x03,
0xff, 0xc0, 0x03, 0x80, 0x1c, 0x00, 0x1f, 0xff, 0xff, 0xfc, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x01,
0xff, 0xc0, 0x03, 0x80, 0x1c, 0x00, 0x0f, 0xff, 0xff, 0xf8, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0xff, 0x80, 0x03, 0x80, 0x1c, 0x00, 0x01, 0xff, 0xff, 0xf0, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x3f, 0x00, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x30,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x1f, 0x00, 0x01, 0xc0, 0x00, 0x38, 0x00, 0xc7, 0xc0, 0x30,
0x18, 0x10, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0x80, 0x01, 0xc0, 0x00, 0x38, 0x00, 0xc7, 0xc7, 0x03,
0x7d, 0xf8, 0x03, 0x80, 0x1c, 0x00, 0x3b, 0x9f, 0x3d, 0xd8, 0x00, 0x38, 0x00, 0xc7, 0x0f, 0x77,
0xed, 0xf0, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xbb, 0xbd, 0xf8, 0x00, 0x38, 0x00, 0xc7, 0xdc, 0x77,
0xfd, 0xc0, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xbb, 0xf1, 0xf0, 0x00, 0x38, 0x00, 0xc1, 0xfc, 0x73,
0xf9, 0xc0, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xbb, 0xf1, 0xf8, 0x00, 0x38, 0x00, 0xc7, 0xff, 0x77,
0x7d, 0xc0, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xbf, 0x3d, 0xf8, 0x00, 0x38, 0x00, 0xcf, 0xcf, 0xf7,
0x39, 0x80, 0x03, 0x80, 0x1c, 0x00, 0x1b, 0x9e, 0x3d, 0xd8, 0x00, 0x38, 0x00, 0xc3, 0x86, 0x03,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0xe0, 0x00, 0x00,
0x00, 0x00, 0x07, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0xe0, 0x00, 0x00,
0xff, 0xff, 0xff, 0x00, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x00, 0x7f, 0xff, 0xff,
0xff, 0xff, 0xfe, 0x00, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x00, 0x7f, 0xff, 0xff,
0xff, 0xff, 0xf8, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x1f, 0xff, 0xff,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
static const unsigned char PROGMEM rps_PAPER [] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xff, 0xff, 0xf8, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x1f, 0xff, 0xff,
0xff, 0xff, 0xfe, 0x00, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x00, 0x7f, 0xff, 0xff,
0xff, 0xff, 0xff, 0x00, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x00, 0x7f, 0xff, 0xff,
0x00, 0x00, 0x07, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0xe0, 0x00, 0x00,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0x0c, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0x3c, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x0f, 0xff, 0xf8, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0x6c, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x1f, 0xff, 0xfc, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0x88, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xfe, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0x18, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0x10, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0x80, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x01,
0x30, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0xc0, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x03,
0x20, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0xe0, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x07,
0x60, 0x08, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0xf0, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x0f,
0x60, 0x38, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0xf8, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x1f,
0x40, 0xf8, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0xfc, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x3f,
0xc7, 0x98, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0xfe, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x7f,
0x9e, 0x30, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0xfe, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x7f,
0x98, 0x60, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0xfe, 0x00, 0x38, 0x00, 0xc0, 0x00, 0xff,
0x80, 0xe0, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0xfe, 0x00, 0x38, 0x00, 0xc0, 0x00, 0xff,
0x01, 0x80, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0xfe, 0x00, 0x38, 0x00, 0xc0, 0x01, 0xff,
0x07, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0xfe, 0x00, 0x38, 0x00, 0xc0, 0x01, 0xff,
0x1c, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0xfe, 0x00, 0x38, 0x00, 0xc0, 0x03, 0xff,
0x70, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0xfe, 0x00, 0x38, 0x00, 0xc0, 0x03, 0xff,
0xc0, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0xfe, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0xfe, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0xfe, 0x00, 0x38, 0x00, 0xc0, 0x0f, 0xff,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0xfe, 0x00, 0x38, 0x00, 0xc0, 0x0f, 0xff,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0xfe, 0x00, 0x38, 0x00, 0xc0, 0x0f, 0xff,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0xfe, 0x00, 0x38, 0x00, 0xc0, 0x0f, 0xff,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0xfe, 0x00, 0x38, 0x00, 0xc0, 0x0f, 0xff,
0x80, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0xfe, 0x00, 0x38, 0x00, 0xc0, 0x0f, 0xff,
0x80, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0xfe, 0x00, 0x38, 0x00, 0xc0, 0x0f, 0xff,
0x80, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0xfe, 0x00, 0x38, 0x00, 0xc0, 0x0f, 0xff,
0x80, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0xfe, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0x80, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0xfe, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0x80, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0xfe, 0x00, 0x38, 0x00, 0xc0, 0x03, 0xff,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0xfe, 0x00, 0x38, 0x00, 0xc0, 0x01, 0xff,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x3f, 0xff, 0xff, 0xfe, 0x00, 0x38, 0x00, 0xc0, 0x00, 0xff,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x1f, 0xff, 0xff, 0xfe, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x3f,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x0f, 0xff, 0xff, 0xfc, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x0f,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x01, 0xf8, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x00, 0xfc,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x01, 0xfc, 0xe1, 0x61, 0x81, 0x80, 0x38, 0x00, 0xc0, 0x00, 0xfc,
0x3c, 0xfd, 0xf3, 0x80, 0x1c, 0x01, 0xdd, 0xf3, 0xf7, 0xff, 0x80, 0x38, 0x00, 0xc0, 0x00, 0xdd,
0x7e, 0xff, 0xf3, 0x80, 0x1c, 0x01, 0xdc, 0x3b, 0xfe, 0xff, 0x80, 0x38, 0x00, 0xc0, 0x00, 0xfd,
0x6e, 0xeb, 0xe3, 0x80, 0x1c, 0x01, 0xf9, 0xff, 0x7f, 0xdc, 0x00, 0x38, 0x00, 0xc0, 0x00, 0xfd,
0x6e, 0xe0, 0xf3, 0x80, 0x1c, 0x01, 0xf3, 0xff, 0xff, 0x5c, 0x00, 0x38, 0x00, 0xc0, 0x00, 0xfd,
0x7e, 0xe3, 0xf3, 0x80, 0x1c, 0x01, 0xc1, 0xfb, 0xf7, 0xdc, 0x00, 0x38, 0x00, 0xc0, 0x00, 0xde,
0x3c, 0xe3, 0xe3, 0x80, 0x1c, 0x01, 0x80, 0x93, 0xc1, 0x88, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x38, 0x00, 0xe0, 0x00, 0x00,
0x00, 0x00, 0x07, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0xe0, 0x00, 0x00,
0xff, 0xff, 0xff, 0x00, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x00, 0x7f, 0xff, 0xff,
0xff, 0xff, 0xfe, 0x00, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x00, 0x7f, 0xff, 0xff,
0xff, 0xff, 0xf8, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x1f, 0xff, 0xff,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
static const unsigned char PROGMEM rps_SCISSORS [] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xff, 0xff, 0xfc, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x1f, 0xff, 0xff,
0xff, 0xff, 0xfe, 0x00, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x00, 0x7f, 0xff, 0xff,
0xff, 0xff, 0xff, 0x00, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x00, 0x7f, 0xff, 0xff,
0x00, 0x00, 0x07, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0xe0, 0x00, 0x00,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0xe0, 0x00, 0x00,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x03, 0xc0, 0x00, 0x38, 0x00, 0xc0, 0x01, 0xff,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x06, 0xc0, 0x00, 0x38, 0x00, 0xc0, 0x03, 0xff,
0x80, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x0c, 0x80, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0xc0, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x18, 0x80, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0xe0, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x31, 0x80, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0xf0, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x31, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0xf0, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x63, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0xf8, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x42, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0xf8, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0xc2, 0x03, 0xc0, 0x38, 0x00, 0xc0, 0x07, 0xff,
0xfc, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x86, 0x0f, 0xc0, 0x38, 0x00, 0xc0, 0x07, 0xff,
0xbe, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x01, 0x84, 0x3d, 0x80, 0x38, 0x00, 0xc0, 0x07, 0xff,
0x1f, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x01, 0x0d, 0xf3, 0x80, 0x38, 0x00, 0xc0, 0x07, 0xff,
0x07, 0x80, 0x03, 0x80, 0x1c, 0x00, 0x0c, 0x03, 0x0d, 0xc3, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0x01, 0xc0, 0x03, 0x80, 0x1c, 0x00, 0x7f, 0x03, 0x18, 0x06, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0x00, 0xe0, 0x03, 0x80, 0x1c, 0x00, 0xff, 0xc2, 0x18, 0x1c, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0x00, 0x30, 0x03, 0x80, 0x1c, 0x01, 0xff, 0xc6, 0x10, 0x70, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x01, 0xff, 0xec, 0x31, 0xe0, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x03, 0xe1, 0xfc, 0x37, 0x80, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x03, 0xe1, 0xff, 0x6e, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x03, 0xe1, 0xff, 0xe0, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x03, 0xe3, 0xff, 0xc0, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x01, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x01, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0x00, 0x0c, 0x03, 0x80, 0x1c, 0x00, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0x00, 0x1c, 0x03, 0x80, 0x1c, 0x00, 0x7f, 0xff, 0xf8, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0xe0, 0x3c, 0x03, 0x80, 0x1c, 0x00, 0x0c, 0x7f, 0xf8, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0xf8, 0x7c, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x78, 0x78, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0xff, 0xfc, 0x03, 0x80, 0x1c, 0x00, 0x00, 0xf8, 0x7c, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0xff, 0xfc, 0x03, 0x80, 0x1c, 0x00, 0x00, 0xf8, 0x7c, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0xff, 0xf8, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x7c, 0x78, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0xff, 0xf0, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x7f, 0xf8, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0xff, 0xe0, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x7f, 0xf8, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0xff, 0xc0, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x3f, 0xf0, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xff,
0xff, 0x80, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x1f, 0xe0, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x03, 0xff,
0xff, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x03, 0xff,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x00, 0x00,
0x1c, 0x00, 0x03, 0x80, 0x1c, 0x78, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0xc0, 0x07, 0xe0,
0x1c, 0x00, 0x03, 0x80, 0x1c, 0xfc, 0x40, 0x10, 0x40, 0x00, 0x04, 0x38, 0x00, 0xc0, 0x07, 0xf3,
0xdf, 0x80, 0x03, 0x80, 0x1c, 0xe9, 0xf6, 0x7d, 0xf3, 0xef, 0xdf, 0x38, 0x00, 0xc0, 0x07, 0x77,
0xdf, 0x80, 0x03, 0x80, 0x1c, 0xf9, 0xee, 0xe9, 0xc7, 0xff, 0xdc, 0x38, 0x00, 0xc0, 0x07, 0x74,
0x1f, 0x80, 0x03, 0x80, 0x1c, 0x7f, 0x8e, 0xf9, 0xf7, 0x7e, 0x1f, 0x38, 0x00, 0xc0, 0x07, 0xe7,
0x1f, 0x80, 0x03, 0x80, 0x1c, 0xbf, 0x8e, 0x5c, 0x77, 0x7e, 0x17, 0x38, 0x00, 0xc0, 0x07, 0xce,
0xdf, 0x80, 0x03, 0x80, 0x1d, 0xfd, 0xfe, 0xfd, 0xf7, 0xee, 0x1f, 0x38, 0x00, 0xc0, 0x07, 0x07,
0xdf, 0x80, 0x03, 0x80, 0x1c, 0xf8, 0xe6, 0xf9, 0xe3, 0xc6, 0x1e, 0x38, 0x00, 0xc0, 0x02, 0x06,
0x00, 0x00, 0x03, 0x80, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0xe0, 0x00, 0x00,
0x00, 0x00, 0x07, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x00, 0xe0, 0x00, 0x00,
0xff, 0xff, 0xff, 0x00, 0x0f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x00, 0x7f, 0xff, 0xff,
0xff, 0xff, 0xfe, 0x00, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0, 0x00, 0x7f, 0xff, 0xff,
0xff, 0xff, 0xf8, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x1f, 0xff, 0xff,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
//Birthday Simulator
#define FRAME_DELAY (12)
#define FRAME_WIDTH (32)
#define FRAME_HEIGHT (32)
#define FRAME_COUNT (sizeof(frames) / sizeof(frames[0]))
const byte PROGMEM frames[][128] = {
{0,0,0,0,7,192,3,192,4,96,6,32,4,16,12,32,4,24,24,32,4,8,16,32,2,4,32,64,1,135,225,128,127,255,255,254,127,255,255,254,64,8,16,2,64,8,16,2,64,8,16,2,64,8,16,2,127,255,255,254,63,255,255,252,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,63,255,255,252,0,15,240,0},
{0,0,0,0,7,192,3,192,4,96,6,32,4,16,12,32,4,24,24,32,4,8,16,32,2,4,32,64,1,135,225,128,127,255,255,254,127,255,255,254,64,8,16,2,64,8,16,2,64,8,16,2,64,8,16,2,127,255,255,254,63,255,255,252,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,63,255,255,252,0,15,240,0},
{0,0,0,0,7,192,3,192,4,96,6,32,4,16,12,32,4,24,24,32,4,8,16,32,2,4,32,64,1,135,225,128,127,255,255,254,127,255,255,254,64,8,16,2,64,8,16,2,64,8,16,2,64,8,16,2,127,255,255,254,63,255,255,252,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,63,255,255,252,0,15,240,0},
{0,0,0,0,7,192,3,192,4,96,6,32,4,16,12,32,4,24,24,32,4,8,16,32,2,4,32,64,1,135,225,128,127,255,255,254,127,255,255,254,64,8,16,2,64,8,16,2,64,8,16,2,64,8,16,2,127,255,255,254,63,255,255,252,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,63,255,255,252,0,15,240,0},
{0,0,0,0,3,192,3,192,6,96,6,96,4,48,12,32,4,16,24,32,4,8,16,32,6,4,32,96,3,134,97,192,1,255,255,128,127,255,255,254,64,8,16,2,64,8,16,2,64,8,16,2,64,8,16,2,127,255,255,254,127,255,255,254,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,63,255,255,252,0,15,240,0},
{0,0,0,0,1,0,1,128,7,192,3,224,4,32,4,32,12,16,8,48,4,8,24,32,4,8,48,32,3,4,96,192,1,255,255,128,127,255,255,254,64,12,48,2,64,8,16,2,64,8,16,2,64,8,16,2,64,15,240,2,127,255,255,254,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,63,255,255,252,0,15,240,0},
{0,0,0,0,0,0,0,0,3,128,1,192,6,224,7,96,12,48,12,48,12,16,8,48,4,8,16,32,4,4,48,32,3,6,96,192,3,255,255,192,255,255,255,255,192,8,16,3,192,8,16,3,192,8,16,3,192,8,16,3,255,255,255,255,127,255,255,254,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,96,8,16,6,96,8,16,6,96,8,16,4,96,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,63,255,255,252,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,3,128,0,192,4,224,6,112,12,48,12,48,8,24,24,16,12,8,16,48,4,4,32,96,3,255,255,192,255,255,255,255,192,15,240,3,128,8,16,1,128,8,16,1,128,8,16,1,128,15,240,1,255,255,255,255,96,12,48,4,96,8,16,6,64,8,16,6,64,8,16,6,64,8,16,2,64,8,16,2,64,8,16,2,64,8,16,2,64,8,16,2,64,8,16,2,96,8,16,2,96,8,16,6,96,8,16,4,63,255,255,252,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,192,1,224,12,96,6,48,8,16,12,16,8,8,24,16,12,12,48,48,7,135,224,224,255,255,255,255,192,15,240,3,128,8,16,1,128,8,16,1,128,8,16,1,128,8,16,1,255,255,255,255,96,15,240,6,96,8,16,6,64,8,16,6,64,8,16,2,64,8,16,2,64,8,16,2,64,8,16,2,64,8,16,2,64,8,16,2,64,8,16,2,64,8,16,2,96,8,16,6,32,8,16,6,63,255,255,252,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,192,1,224,12,96,6,48,8,16,12,16,8,8,24,16,12,4,32,48,7,255,255,224,255,255,255,255,128,8,16,1,128,8,16,1,128,8,16,1,128,8,16,1,128,15,240,3,255,255,255,255,32,12,48,4,32,8,16,4,32,8,16,4,32,8,16,4,96,8,16,4,96,8,16,4,96,8,16,6,96,8,16,6,96,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,63,255,255,252,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,3,128,1,192,12,96,6,32,12,16,12,48,8,8,24,16,4,4,32,48,7,255,255,224,255,255,255,255,128,8,16,1,128,8,16,1,128,8,16,1,128,8,16,1,192,15,240,3,255,255,255,255,63,255,255,252,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,63,255,255,252,0,0,0,0},
{0,0,0,0,0,0,0,0,3,128,0,192,6,224,6,224,12,16,12,16,8,8,16,16,4,6,96,32,127,255,255,254,255,255,255,255,192,8,16,3,192,8,16,3,192,8,16,3,192,8,16,3,255,255,255,255,0,15,240,0,31,255,255,248,16,15,240,8,16,12,48,8,16,12,48,8,16,12,48,8,16,12,48,8,16,12,48,8,16,12,48,8,16,12,48,8,16,12,48,8,16,12,48,8,16,12,48,8,16,12,48,8,16,12,48,8,16,12,48,8,31,255,255,248,0,15,240,0},
{0,0,0,0,0,0,0,0,7,224,7,224,12,48,12,48,8,12,48,16,15,31,255,240,127,255,255,254,64,15,240,2,64,8,16,2,64,8,16,2,64,8,16,2,64,12,48,2,127,255,255,254,0,0,0,0,0,0,0,0,31,255,255,248,16,12,48,8,16,4,32,8,16,4,32,8,24,4,32,8,8,4,32,16,8,4,32,16,8,4,32,16,8,4,32,16,8,4,32,16,8,4,32,16,8,4,32,24,16,4,32,8,16,4,32,8,16,4,32,8,31,255,255,248,0,7,240,0},
{0,0,0,0,1,192,1,128,15,240,14,240,8,8,24,16,14,127,255,240,127,255,255,254,64,12,48,2,64,8,16,2,64,8,16,2,64,8,16,2,64,12,48,2,127,255,255,254,0,0,0,0,0,0,0,0,0,0,0,0,31,255,255,248,24,4,32,8,8,4,32,16,8,4,32,16,8,4,32,16,8,4,32,16,8,4,32,16,8,4,32,16,8,4,32,16,8,4,32,16,8,4,32,16,8,4,32,16,8,4,32,16,8,4,32,16,0,4,32,24,31,255,255,248,0,7,240,0},
{0,0,0,0,7,224,7,224,12,24,24,16,8,4,48,48,15,255,255,224,127,255,255,254,64,8,16,2,64,8,16,2,64,8,16,2,64,8,16,2,127,255,255,254,63,255,255,252,0,0,0,0,0,0,0,0,0,0,0,0,31,255,255,248,16,12,48,8,16,4,32,8,16,4,32,8,24,4,32,8,8,4,32,16,8,4,32,16,8,4,32,16,8,4,32,16,8,4,32,16,8,4,32,16,8,4,32,24,16,4,32,8,16,4,32,8,16,4,32,8,31,255,255,248,0,7,240,0},
{1,192,1,192,6,96,6,96,8,24,24,16,12,12,48,48,3,255,255,224,127,255,255,254,64,12,48,2,64,8,16,2,64,8,16,2,64,8,16,2,64,12,48,2,127,255,255,254,0,0,0,0,0,0,0,0,0,0,0,0,31,255,255,248,16,15,240,8,16,12,48,8,16,12,48,8,16,12,48,8,16,12,48,8,16,12,48,8,16,12,48,8,16,12,48,8,16,12,48,8,16,12,48,8,16,12,48,8,16,12,48,8,16,12,48,8,16,12,48,8,31,255,255,248,0,15,240,0},
{3,192,1,192,6,96,6,96,12,16,8,16,12,8,16,48,4,4,32,32,3,255,255,192,127,255,255,254,64,12,48,2,64,8,16,2,64,8,16,2,64,8,16,2,64,12,48,2,127,255,255,254,0,0,0,0,0,0,0,0,0,15,240,0,63,255,255,252,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,63,255,255,252,0,0,0,0},
{1,128,0,192,6,224,7,224,12,48,12,48,8,16,8,48,4,8,16,32,6,4,32,96,3,135,225,192,127,255,255,254,127,255,255,254,64,8,16,2,64,8,16,2,64,8,16,2,64,8,16,2,127,255,255,254,0,15,240,0,0,0,0,0,63,255,255,252,32,12,48,4,32,8,16,4,32,8,16,4,32,8,16,4,96,8,16,4,96,8,16,4,96,8,16,6,96,8,16,6,96,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,63,255,255,252,0,0,0,0},
{0,0,0,0,7,192,3,224,4,224,6,32,8,48,12,16,12,16,8,16,4,8,16,32,4,12,48,96,3,6,96,192,1,255,255,128,255,255,255,255,192,12,16,1,128,8,16,1,128,8,16,1,128,8,16,1,192,15,240,3,255,255,255,255,63,255,255,252,96,12,48,4,96,8,16,6,64,8,16,6,64,8,16,2,64,8,16,2,64,8,16,2,64,8,16,2,64,8,16,2,64,8,16,2,64,8,16,2,64,8,16,2,96,8,16,6,32,8,16,6,63,255,255,252,0,0,0,0},
{0,0,0,0,0,0,0,0,7,128,1,224,14,192,7,32,8,32,4,16,8,16,8,16,12,24,24,16,4,8,16,32,2,4,32,64,1,199,227,128,255,255,255,255,192,15,240,3,128,8,16,1,128,8,16,1,128,8,16,1,128,8,48,1,255,255,255,255,96,12,48,6,96,8,16,6,64,8,16,6,64,8,16,6,64,8,16,2,64,8,16,2,64,8,16,2,64,8,16,2,64,8,16,2,64,8,16,2,96,8,16,2,96,8,16,6,96,8,16,4,63,255,255,252,0,0,0,0},
{0,0,0,0,0,0,0,0,7,192,3,224,4,96,6,32,8,48,12,16,8,16,8,16,12,8,16,32,4,12,48,96,3,6,96,192,1,255,255,128,255,255,255,255,128,8,16,1,128,8,16,1,128,8,16,1,128,8,16,1,255,255,255,255,255,255,255,255,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,96,8,16,6,96,8,16,6,96,8,16,4,96,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,63,255,255,252,0,0,0,0},
{0,0,0,0,0,0,0,0,7,192,3,224,4,96,6,48,8,48,12,16,8,16,24,16,12,8,16,32,6,4,32,96,3,199,231,192,255,255,255,255,192,15,240,3,192,8,16,3,192,8,16,3,192,8,16,3,192,15,240,3,255,255,255,255,32,12,48,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,63,255,255,252,0,15,240,0},
{0,0,0,0,0,0,0,0,7,192,3,224,12,96,6,48,8,48,12,16,8,24,24,16,12,12,48,48,6,6,96,224,3,255,255,224,127,255,255,254,64,8,16,2,64,8,16,2,64,8,16,2,64,8,16,2,127,255,255,254,127,255,255,254,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,63,255,255,252,0,15,240,0},
{0,0,0,0,0,0,0,0,7,192,1,224,12,96,6,48,8,16,12,16,8,8,24,16,12,4,48,48,7,135,224,224,127,255,255,254,127,255,255,254,64,8,16,2,64,8,16,2,64,8,16,2,64,8,16,2,127,255,255,254,63,255,255,252,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,63,255,255,252,0,15,240,0},
{0,0,0,0,1,0,0,192,7,224,7,224,12,32,4,48,8,16,8,16,4,8,16,48,4,4,32,32,3,135,224,192,127,255,255,254,127,255,255,254,64,8,16,2,64,8,16,2,64,8,16,2,64,8,16,2,127,255,255,254,63,255,255,252,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,63,255,255,252,0,15,240,0},
{0,0,0,0,3,128,3,192,6,96,6,96,4,48,12,32,4,16,24,32,4,8,16,32,6,4,32,96,3,135,225,192,127,255,255,254,127,255,255,254,64,8,16,2,64,8,16,2,64,8,16,2,64,8,16,2,127,255,255,254,63,255,255,252,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,63,255,255,252,0,15,240,0},
{0,0,0,0,7,192,3,192,4,96,6,32,4,16,12,32,4,24,24,32,4,8,16,32,2,4,32,64,1,135,225,128,127,255,255,254,127,255,255,254,64,8,16,2,64,8,16,2,64,8,16,2,64,8,16,2,127,255,255,254,63,255,255,252,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,63,255,255,252,0,15,240,0},
{0,0,0,0,7,192,3,192,4,96,6,32,4,16,12,32,4,24,24,32,4,8,16,32,2,4,32,64,1,135,225,128,127,255,255,254,127,255,255,254,64,8,16,2,64,8,16,2,64,8,16,2,64,8,16,2,127,255,255,254,63,255,255,252,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,32,8,16,4,63,255,255,252,0,15,240,0}
};
// TETRIS
const char pieces_S_l[2][2][4] = {{
{0, 0, 1, 1}, {0, 1, 1, 2}
},
{
{0, 1, 1, 2}, {1, 1, 0, 0}
}};
const char pieces_S_r[2][2][4]{{
{1, 1, 0, 0}, {0, 1, 1, 2}
},
{
{0, 1, 1, 2}, {0, 0, 1, 1}
}};
const char pieces_L_l[4][2][4] = {{
{0, 0, 0, 1}, {0, 1, 2, 2}
},
{
{0, 1, 2, 2}, {1, 1, 1, 0}
},
{
{0, 1, 1, 1}, {0, 0, 1, 2}
},
{
{0, 0, 1, 2}, {1, 0, 0, 0}
}};
const char pieces_Sq[1][2][4] = {{
{0, 1, 0, 1}, {0, 0, 1, 1}
}};
const char pieces_T[4][2][4] = {{
{0, 0, 1, 0},{0, 1, 1, 2}
},
{
{0, 1, 1, 2},{1, 0, 1, 1}
},
{
{1, 0, 1, 1},{0, 1, 1, 2}
},
{
{0, 1, 1, 2},{0, 0, 1, 0}
}};
const char pieces_l[2][2][4] = {{
{0, 1, 2, 3}, {0, 0, 0, 0}
},
{
{0, 0, 0, 0}, {0, 1, 2, 3}
}};
const short MARGIN_TOP = 19;
const short MARGIN_LEFT = 3;
const short SIZE = 5;
const short TYPES = 6;
const int click[] = { 1047 };
const int click_duration[] = { 100 };
const int erase[] = { 2093 };
const int erase_duration[] = { 100 };
word currentType, nextType, rotation;
short pieceX, pieceY;
short piece[2][4];
int interval = 20, score;
long timer, delayer;
boolean grid[10][18];
boolean b1, b2, b3;
//const int left=11;
void checkLines(){
boolean full;
for(short y = 17; y >= 0; y--){
full = true;
for(short x = 0; x < 10; x++){
full = full && grid[x][y];
}
if(full){
breakLine(y);
y++;
}
}
}
void breakLine(short line){
tone(BUZZER_PIN, erase[0], 1000 / erase_duration[0]);
delay(100);
noTone(BUZZER_PIN);
for(short y = line; y >= 0; y--){
for(short x = 0; x < 10; x++){
grid[x][y] = grid[x][y-1];
}
}
for(short x = 0; x < 10; x++){
grid[x][0] = 0;
}
display.invertDisplay(true);
delay(50);
display.invertDisplay(false);
score += 10;
}
void refresh(){
display.clearDisplay();
drawLayout();
drawGrid();
drawPiece(currentType, 0, pieceX, pieceY);
display.display();
}
void drawGrid(){
for(short x = 0; x < 10; x++)
for(short y = 0; y < 18; y++)
if(grid[x][y])
display.fillRect(MARGIN_LEFT + (SIZE + 1)*x, MARGIN_TOP + (SIZE + 1)*y, SIZE, SIZE, WHITE);
}
boolean nextHorizontalCollision(short piece[2][4], int amount){
for(byte i = 0; i < 4; i++){
short newX = pieceX + piece[0][i] + amount;
if(newX > 9 || newX < 0 || grid[newX][pieceY + piece[1][i]])
return true;
}
return false;
}
boolean nextCollision(){
for(byte i = 0; i < 4; i++){
short y = pieceY + piece[1][i] + 1;
short x = pieceX + piece[0][i];
if(y > 17 || grid[x][y])
return true;
}
return false;
}
void generate(){
currentType = nextType;
nextType = random(TYPES);
if(currentType != 5)
pieceX = random(9);
else
pieceX = random(7);
pieceY = 0;
rotation = 0;
copyPiece(piece, currentType, rotation);
}
void drawPiece(short type, short rotation, byte x, byte y){
for(byte i = 0; i < 4; i++)
display.fillRect(MARGIN_LEFT + (SIZE + 1)*(x + piece[0][i]), MARGIN_TOP + (SIZE + 1)*(y + piece[1][i]), SIZE, SIZE, WHITE);
}
void drawNextPiece(){
short nPiece[2][4];
copyPiece(nPiece, nextType, 0);
for(byte i = 0; i < 4; i++)
display.fillRect(50 + 3*nPiece[0][i], 4 + 3*nPiece[1][i], 2, 2, WHITE);
}
void copyPiece(short piece[2][4], short type, short rotation){
switch(type){
case 0: //L_l
for(byte i = 0; i < 4; i++){
piece[0][i] = pieces_L_l[rotation][0][i];
piece[1][i] = pieces_L_l[rotation][1][i];
}
break;
case 1: //S_l
for(byte i = 0; i < 4; i++){
piece[0][i] = pieces_S_l[rotation][0][i];
piece[1][i] = pieces_S_l[rotation][1][i];
}
break;
case 2: //S_r
for(byte i = 0; i < 4; i++){
piece[0][i] = pieces_S_r[rotation][0][i];
piece[1][i] = pieces_S_r[rotation][1][i];
}
break;
case 3: //Sq
for(byte i = 0; i < 4; i++){
piece[0][i] = pieces_Sq[0][0][i];
piece[1][i] = pieces_Sq[0][1][i];
}
break;
case 4: //T
for(byte i = 0; i < 4; i++){
piece[0][i] = pieces_T[rotation][0][i];
piece[1][i] = pieces_T[rotation][1][i];
}
break;
case 5: //l
for(byte i = 0; i < 4; i++){
piece[0][i] = pieces_l[rotation][0][i];
piece[1][i] = pieces_l[rotation][1][i];
}
break;
}
}
short getMaxRotation(short type){
if(type == 1 || type == 2 || type == 5)
return 2;
else if(type == 0 || type == 4)
return 4;
else if(type == 3)
return 1;
else
return 0;
}
boolean canRotate(short rotation){
short piece[2][4];
copyPiece(piece, currentType, rotation);
return !nextHorizontalCollision(piece, 0);
}
void drawLayout(){
display.drawLine(0, 18, WIDTH, 18, WHITE);
display.drawRect(0, 0, WIDTH, HEIGHT, WHITE);
drawNextPiece();
char text[6];
itoa(score, text, 10);
drawText(text, getNumberLength(score), 7, 4);
}
int getNumberLength(int n){
int counter = 1;
while(n >= 10){
n /= 10;
counter++;
}
return counter;
}
void drawText(char text[], int length, int x, int y){
display.setTextSize(1); // Normal 1:1 pixel scale
display.setTextColor(WHITE); // Draw white text
display.setCursor(x, y); // Start at top-left corner
display.cp437(true); // Use full 256 char 'Code Page 437' font
for(int i = 0; i < length; i++)
display.write(text[i]);
}
boolean checkGameOver() {
for(short x = 0; x < 10; x++){
if(grid[x][0])
return true;
}
return false;
}
int availableMemory() {
int size = 2048; // SRAM for ATmega328p = 2048Kb
byte *buf;
while ((buf = (byte *) malloc (--size)) == NULL);
free(buf);
return (size-1024);
}
void setup() {
pinMode(UP_BUTTON_PIN, INPUT_PULLUP);
pinMode(DOWN_BUTTON_PIN, INPUT_PULLUP);
pinMode(SELECT_BUTTON_PIN, INPUT_PULLUP);
pinMode(left, INPUT_PULLUP);
pinMode(BUZZER_PIN, OUTPUT);
Serial.begin(9600);
Serial.println(availableMemory());
// SSD1306_SWITCHCAPVCC = generate display voltage from 3.3V internally
if(!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) { // Address 0x3D for 128x64
Serial.println(F("SSD1306 allocation failed"));
for(;;); // Don't proceed, loop forever
}
display.setRotation(1);
display.clearDisplay();
delay(500);
display.drawBitmap(0, 0, no_brian_logo, 64, 128, WHITE);
display.display();
tone(BUZZER_PIN, 261, 400); // C
delay(400);
tone(BUZZER_PIN, 329, 400); // E
delay(400);
tone(BUZZER_PIN, 392, 400); // G
delay(350);
display.clearDisplay();
display.drawBitmap(0, 0, no_brian_logo_two, 64, 128, WHITE);
display.display();
tone(BUZZER_PIN, 523, 550); // C (octave higher)
delay(550);
noTone(BUZZER_PIN); // Stop sound
delay(2500);
display.clearDisplay();
drawLayout();
display.display();
randomSeed(analogRead(0));
nextType = random(TYPES);
generate();
timer = millis();
}
void loop() {
if (selectedFunction == 254) {
if (digitalRead(UP_BUTTON_PIN) == LOW) {
selectedItem--;
if (selectedItem == 255) {
selectedItem = 2;
}
tone(BUZZER_PIN, 500, 50); // Play a tone when hovering over a new item
delay(200); // Debounce delay
}
if (digitalRead(DOWN_BUTTON_PIN) == LOW) {
selectedItem++;
if (selectedItem > 2) {
selectedItem = 0;
}
tone(BUZZER_PIN, 500, 50); // Play a tone when hovering over a new item
delay(200); // Debounce delay
}
if (digitalRead(SELECT_BUTTON_PIN) == LOW) {
tone(BUZZER_PIN, 1000, 80); // Play a different tone when an item is selected
selectedFunction = selectedItem-1;
delay(200); // Debounce delay
}
display.clearDisplay();
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(0, 0);
display.println(F("BriEntSys"));
for (byte i = 0; i < 3; i++) {
display.setCursor(0, (i+1)*10);
if (i == selectedItem) {
display.setTextColor(BLACK, WHITE); // 'inverted' text
} else {
display.setTextColor(WHITE);
}
display.print(i+1);
if (i==0) {
display.println(F(" Tetris"));
}
if (i==1) {
display.println(F(" Gift Sim"));
}
if (i==2) {
display.println(F(" RPS"));
}
}
display.display();
} else if (selectedFunction==255) {
menuItem1();
} else if (selectedFunction==0) {
display.clearDisplay();
display.drawBitmap(15, 30, frames[1], FRAME_WIDTH, FRAME_HEIGHT, 1);
display.setTextColor(WHITE);
display.setCursor(0, 80);
display.println(F("Gifts Open"));
if (nothingClicked < 10) {
display.setCursor((WIDTH - 6) / 2, 100);
} else if (nothingClicked < 100) {
display.setCursor((WIDTH - 12) / 2, 100);
} else if (nothingClicked < 1000) {
display.setCursor((WIDTH - 18) / 2, 100);
} else {
display.setCursor((WIDTH - 24) / 2, 100);
}
display.println(nothingClicked);
display.display();
menuItem2();
} else if (selectedFunction==1) {
// display.clearDisplay();
// colors[colorIndex] = random(1,5);
display.setRotation(2);
display.clearDisplay();
menuItem3();
} else {
selectedFunction=254;
}
}
void menuItem1() {
//Serial.println(availableMemory());
if(millis() - timer > interval){
checkLines();
refresh();
if(nextCollision()){
for(byte i = 0; i < 4; i++)
grid[pieceX + piece[0][i]][pieceY + piece[1][i]] = 1;
generate();
}else
pieceY++;
timer = millis();
}
if(checkGameOver()){
// Game over condition met
// Stop updating game state
while(1) {
display.setCursor(6, 11); // Start at middle of the screen
display.println(F("Game Over"));
display.display(); // Show initial text
}
return;
}
if(!digitalRead(left)){
tone(BUZZER_PIN, click[0], 1000 / click_duration[0]);
delay(100);
noTone(BUZZER_PIN);
if(b1){
if(!nextHorizontalCollision(piece, -1)){
pieceX--;
refresh();
}
b1 = false;
}
}else{
b1 = true;
}
if(!digitalRead(SELECT_BUTTON_PIN)){
tone(BUZZER_PIN, click[0], 1000 / click_duration[0]);
delay(100);
noTone(BUZZER_PIN);
if(b2){
if(!nextHorizontalCollision(piece, 1)){
pieceX++;
refresh();
}
b2 = false;
}
}else{
b2 = true;
}
if(!digitalRead(DOWN_BUTTON_PIN)){
interval = 20;
}else{
interval = 400;
}
if(!digitalRead(UP_BUTTON_PIN)){
tone(BUZZER_PIN, click[0], 1000 / click_duration[0]);
delay(100);
noTone(BUZZER_PIN);
if(b3){
if(rotation == getMaxRotation(currentType) - 1 && canRotate(0)){
rotation = 0;
}else if(canRotate(rotation + 1)){
rotation++;
}
copyPiece(piece, currentType, rotation);
refresh();
b3 = false;
delayer = millis();
}
} else if(millis() - delayer > 50){
b3 = true;
}
// Code to run when Item 1 is selected
}
void menuItem2() {
if (digitalRead(SELECT_BUTTON_PIN) == LOW) {
tone(BUZZER_PIN, 1000, 80); // Play a different tone when an item is selected
nothingClicked++;
display.setCursor(0, 0);
for(int frame = 2; frame < FRAME_COUNT; frame++) {
display.clearDisplay();
display.drawBitmap(15, 30, frames[frame], FRAME_WIDTH, FRAME_HEIGHT, 1);
display.setTextColor(WHITE);
display.setCursor(0, 80);
display.println(F("Gifts Open"));
display.setTextSize(1);
if (nothingClicked < 10) {
display.setCursor((WIDTH - 6) / 2, 100);
} else if (nothingClicked < 100) {
display.setCursor((WIDTH - 12) / 2, 100);
} else if (nothingClicked < 1000) {
display.setCursor((WIDTH - 18) / 2, 100);
} else {
display.setCursor((WIDTH - 24) / 2, 100);
}
display.println(nothingClicked);
display.display();
delay(FRAME_DELAY);
}
if (nothingClicked%10==0) {
tone(BUZZER_PIN, 494, 100);
delay(150);
noTone(BUZZER_PIN);
tone(BUZZER_PIN, 622, 100);
delay(150);
noTone(BUZZER_PIN);
tone(BUZZER_PIN, 988, 100);
delay(150);
noTone(BUZZER_PIN);
tone(BUZZER_PIN, 932, 100);
delay(250);
noTone(BUZZER_PIN);
tone(BUZZER_PIN, 740, 100);
delay(170);
} else {
delay(210); // Debounce delay
}
while (digitalRead(SELECT_BUTTON_PIN) == LOW) {
delay(1);
}
}
}
void menuItem3() {
// display.setTextColor(WHITE);
// display.setTextSize(1);
// display.setCursor(0, 0);
//if (colors[colorIndex]==1) {
// display.println(F("Cool Games"));
// display.display();
//}
//0=ROCK
//1=PAPER
//2=SCISSORS
if (digitalRead(UP_BUTTON_PIN) == LOW) {
display.clearDisplay();
tone(BUZZER_PIN, 1319, 30);
if ((rpsSelect>=0) && (rpsSelect<2)) {
rpsSelect++;
} else
rpsSelect=0;
} else if (digitalRead(DOWN_BUTTON_PIN) == LOW) {
display.clearDisplay();
tone(BUZZER_PIN, 1319, 30);
if ((rpsSelect>0) && (rpsSelect<=2)) {
rpsSelect--;
} else
rpsSelect=2;
} else if (digitalRead(left) == LOW) {
display.clearDisplay();
tone(BUZZER_PIN, 1568, 30);
byte CPU_Pick = random(3);
display.setCursor(0, 0);
display.setTextSize(2);
display.setTextColor(WHITE);
if (CPU_Pick==0) { //WIN
if (rpsSelect==0) {
display.println(F("CPU Chose Scissors"));
} else if (rpsSelect==1) {
display.println(F("CPU Chose Rock"));
} else
display.println(F("CPU Chose Paper"));
display.println(F("You WON!"));
} else if (CPU_Pick==1) { //LOSE
if (rpsSelect==0) {
display.println(F("CPU Chose Paper"));
} else if (rpsSelect==1) {
display.println(F("CPU Chose Scissors"));
} else
display.println(F("CPU Chose Rock"));
display.println(F("You LOST! :("));
} else {
if (rpsSelect==0) {
display.println(F("CPU Chose Rock"));
} else if (rpsSelect==1) {
display.println(F("CPU Chose Paper"));
} else
display.println(F("CPU Chose Scissors"));
display.println(F("You TIED! :O"));
}
while (digitalRead(SELECT_BUTTON_PIN) != LOW) {
display.display();
}
tone(BUZZER_PIN, 988, 30);
}
if (rpsSelect == 0) {
display.drawBitmap(0, 0, rps_ROCK, 128, 64, WHITE);
display.display();
delay(50);
} else if (rpsSelect == 1) {
display.drawBitmap(0, 0, rps_PAPER, 128, 64, WHITE);
display.display();
delay(50);
} else if (rpsSelect == 2) {
display.drawBitmap(0, 0, rps_SCISSORS, 128, 64, WHITE);
display.display();
delay(50);
}
//while ((digitalRead(UP_BUTTON_PIN) == LOW) || (digitalRead(DOWN_BUTTON_PIN) == LOW)) {
// delay(0);
//}
}