├── A-Maze-Arduboy ├── A-Maze-Arduboy.ino ├── a-maze-01-maze.ino ├── controls.ino ├── game_collector.ino ├── game_dark.ino ├── game_escape.ino ├── game_walker.ino ├── level_splash.ino └── menus.ino ├── A-Maze-SH1106 ├── A-Maze-SH1106.ino ├── a-maze-01-maze.ino ├── game_collector.ino ├── game_dark.ino ├── game_escape.ino ├── game_walker.ino ├── level_splash.ino └── menus.ino ├── A-Maze.ino ├── Adafruit_SH1106-master.zip ├── LICENSE ├── README.md └── images ├── brick.bmp ├── checker.bmp ├── mazeTile.bmp ├── mazeTile.xcf ├── player1.bmp ├── player2.bmp ├── rock.bmp ├── tinygamecorner.png ├── tinygamecorner.xcf ├── title.bmp ├── title.xcf ├── title2.bmp ├── title3.bmp └── title4.bmp /A-Maze-Arduboy/A-Maze-Arduboy.ino: -------------------------------------------------------------------------------- 1 | /* A-Maze 2 | by Alojz Jakob 3 | 4 | ********** TAMAGUINO *********** 5 | * Maze game for Arduino * 6 | ******************************** 7 | 8 | */ 9 | 10 | #include 11 | #include 12 | 13 | 14 | // make an instance of arduboy used for many functions 15 | Arduboy2 arduboy; 16 | 17 | 18 | ArduboyPlaytune tunes(arduboy.audio.enabled); 19 | 20 | const unsigned int FRAME_RATE = 25; 21 | 22 | 23 | // 'title', 128x64px 24 | const unsigned char title1 [] PROGMEM = { 25 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x40, 0x40, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0xc0, 0x40, 0x40, 0x40, 0x60, 0x20, 0xa0, 0x20, 0xa0, 0x20, 0x20, 0x60, 0x40, 0x40, 0x40, 0x40, 0xc0, 0x80, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xc0, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0xc0, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 26 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x20, 0xd0, 0x68, 0xf4, 0x5a, 0xbe, 0xd5, 0xad, 0x95, 0xa9, 0x94, 0x29, 0x01, 0x29, 0x03, 0xa2, 0x04, 0x48, 0x10, 0x20, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xf0, 0x0c, 0xb6, 0x5a, 0xaf, 0x52, 0xa6, 0x4c, 0x18, 0x30, 0x20, 0x20, 0x10, 0x68, 0xb4, 0x5a, 0xad, 0x56, 0x2a, 0x40, 0x00, 0x01, 0xff, 0x00, 0x00, 0x80, 0x40, 0x20, 0xa0, 0x20, 0xb0, 0x10, 0x10, 0x10, 0x1f, 0x38, 0x22, 0x67, 0xa3, 0x25, 0x22, 0x25, 0x22, 0x25, 0x20, 0x22, 0xa0, 0x61, 0x04, 0x00, 0x00, 0x00, 0x00, 0x80, 0x60, 0x11, 0x0d, 0x86, 0x60, 0x58, 0xac, 0x5a, 0xaf, 0x52, 0x05, 0x4a, 0x00, 0x89, 0x80, 0x82, 0x80, 0x81, 0x80, 0xc0, 0x40, 0x40, 0x20, 0x11, 0x0e, 0x00, 0x00, 0x00, 27 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x7c, 0x03, 0x24, 0x01, 0x0b, 0x41, 0x00, 0x3f, 0xc1, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x03, 0xce, 0x78, 0x00, 0x40, 0x00, 0x00, 0x00, 0xe0, 0x31, 0xdf, 0xd0, 0x50, 0x90, 0x50, 0x90, 0x50, 0x10, 0x50, 0x10, 0x90, 0x1c, 0x37, 0xe0, 0x02, 0x00, 0x01, 0x02, 0x01, 0x0a, 0x00, 0x29, 0x00, 0x00, 0x80, 0xc0, 0x60, 0xa0, 0x62, 0xc0, 0x08, 0x81, 0x60, 0x30, 0x88, 0x27, 0x52, 0x0d, 0xf6, 0x1b, 0x09, 0x0c, 0x05, 0x04, 0x0c, 0x19, 0xd0, 0x70, 0x00, 0x00, 0x00, 0x80, 0x43, 0xa6, 0x58, 0xa8, 0x54, 0x3a, 0x15, 0x00, 0x00, 0x00, 0xe0, 0x38, 0x06, 0x03, 0x80, 0x60, 0x18, 0x06, 0x01, 0x02, 0x01, 0x12, 0x40, 0x08, 0x01, 0x00, 0x00, 0x00, 0x13, 0x04, 0x14, 0x04, 0x04, 0x04, 0x8c, 0xfc, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 28 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x82, 0x82, 0xc2, 0xc2, 0x8a, 0x81, 0x05, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x05, 0xfc, 0x05, 0x04, 0x05, 0x04, 0x05, 0x04, 0x85, 0xfc, 0x04, 0x06, 0x03, 0x01, 0x00, 0x80, 0x60, 0x18, 0x07, 0x03, 0x02, 0x06, 0x04, 0x02, 0x01, 0x00, 0x00, 0xc0, 0x3f, 0x0d, 0x03, 0x00, 0x00, 0x00, 0x02, 0x80, 0x41, 0x20, 0x23, 0x66, 0x44, 0x88, 0x98, 0x10, 0x08, 0x27, 0x01, 0x08, 0x00, 0x3e, 0x63, 0xc0, 0x82, 0x08, 0x01, 0x04, 0x01, 0x00, 0x00, 0x01, 0x00, 0x00, 0x07, 0x04, 0x08, 0x08, 0x1f, 0x10, 0x10, 0x10, 0x10, 0x30, 0xe0, 0x00, 0x00, 0x00, 0x5f, 0x11, 0x31, 0x21, 0x21, 0x21, 0x61, 0xc1, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 29 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x06, 0x0c, 0x18, 0x10, 0x30, 0x20, 0x30, 0x10, 0x18, 0x06, 0x03, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x06, 0x1c, 0x30, 0x20, 0x20, 0x20, 0x10, 0x18, 0x04, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f, 0x10, 0x20, 0x20, 0x20, 0x18, 0x07, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x46, 0x41, 0x40, 0x40, 0x20, 0x50, 0x48, 0x44, 0x32, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x04, 0x08, 0x08, 0x18, 0x30, 0x20, 0x20, 0x20, 0x21, 0x31, 0x12, 0x0c, 0x08, 0x08, 0x08, 0x18, 0x10, 0x10, 0x10, 0x30, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x10, 0x0f, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0c, 0x06, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 30 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 31 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0xfc, 0x94, 0x94, 0x68, 0x00, 0x1c, 0x3c, 0xf0, 0x20, 0x1c, 0x00, 0x00, 0x00, 0xf8, 0xfc, 0x24, 0x24, 0xf8, 0x00, 0xfc, 0xfc, 0x80, 0x80, 0x00, 0x78, 0xfc, 0x84, 0x84, 0x78, 0x00, 0x60, 0xe0, 0x80, 0x80, 0x7c, 0x00, 0xc4, 0xe4, 0xb4, 0x9c, 0x8c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 32 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 33 | }; 34 | // 'title2', 128x64px 35 | const unsigned char title2 [] PROGMEM = { 36 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x80, 0x40, 0x00, 0x40, 0x20, 0x00, 0xa0, 0x00, 0xa0, 0x00, 0x20, 0x40, 0x00, 0x40, 0x00, 0x40, 0x80, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x40, 0x00, 0x40, 0x00, 0x40, 0x00, 0x40, 0x00, 0x40, 0x00, 0x40, 0x00, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 37 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x80, 0x40, 0xa0, 0x50, 0xaa, 0x55, 0xa8, 0x15, 0xa8, 0x14, 0x28, 0x01, 0x28, 0x01, 0xa2, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x04, 0xa2, 0x50, 0xaa, 0x50, 0xa2, 0x44, 0x08, 0x10, 0x20, 0x00, 0x00, 0x40, 0xa0, 0x50, 0xa8, 0x54, 0x2a, 0x40, 0x00, 0x01, 0xaa, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x00, 0xa0, 0x10, 0x00, 0x10, 0x0a, 0x10, 0x22, 0x45, 0xa2, 0x05, 0x22, 0x05, 0x22, 0x05, 0x20, 0x00, 0xa0, 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x11, 0x08, 0x04, 0x20, 0x50, 0xa8, 0x50, 0xaa, 0x50, 0x00, 0x40, 0x00, 0x01, 0x80, 0x00, 0x80, 0x01, 0x80, 0x40, 0x00, 0x40, 0x20, 0x11, 0x0a, 0x00, 0x00, 0x00, 38 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x01, 0x20, 0x01, 0x0a, 0x41, 0x00, 0x15, 0x80, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x8a, 0x50, 0x00, 0x40, 0x00, 0x00, 0x00, 0x40, 0x20, 0x55, 0x80, 0x50, 0x80, 0x50, 0x80, 0x50, 0x00, 0x50, 0x00, 0x10, 0x08, 0x15, 0xa0, 0x00, 0x00, 0x01, 0x02, 0x01, 0x0a, 0x00, 0x28, 0x00, 0x00, 0x00, 0x80, 0x40, 0xa0, 0x40, 0x80, 0x00, 0x80, 0x40, 0x20, 0x00, 0x22, 0x50, 0x08, 0x54, 0x0a, 0x01, 0x08, 0x05, 0x00, 0x04, 0x08, 0x50, 0x20, 0x00, 0x00, 0x00, 0x80, 0x41, 0xa2, 0x50, 0xa8, 0x54, 0x2a, 0x15, 0x00, 0x00, 0x00, 0x40, 0x28, 0x04, 0x02, 0x00, 0x20, 0x10, 0x02, 0x01, 0x02, 0x01, 0x02, 0x40, 0x08, 0x01, 0x00, 0x00, 0x00, 0x11, 0x00, 0x14, 0x00, 0x04, 0x00, 0x04, 0xa8, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 39 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x55, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x82, 0x00, 0x82, 0x40, 0x8a, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x05, 0xa8, 0x05, 0x00, 0x05, 0x00, 0x05, 0x00, 0x05, 0xa8, 0x04, 0x02, 0x01, 0x00, 0x00, 0x80, 0x40, 0x08, 0x05, 0x02, 0x00, 0x02, 0x04, 0x02, 0x01, 0x00, 0x00, 0x80, 0x15, 0x08, 0x01, 0x00, 0x00, 0x00, 0x00, 0x80, 0x41, 0x20, 0x01, 0x22, 0x44, 0x88, 0x10, 0x00, 0x00, 0x22, 0x01, 0x08, 0x00, 0x2a, 0x41, 0x80, 0x00, 0x08, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x08, 0x15, 0x00, 0x10, 0x00, 0x10, 0x20, 0x40, 0x00, 0x00, 0x00, 0x55, 0x00, 0x11, 0x20, 0x01, 0x20, 0x41, 0x80, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 40 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x00, 0x20, 0x10, 0x08, 0x04, 0x02, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x08, 0x10, 0x20, 0x00, 0x20, 0x10, 0x08, 0x04, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x15, 0x00, 0x00, 0x20, 0x00, 0x08, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x02, 0x41, 0x00, 0x40, 0x20, 0x50, 0x08, 0x44, 0x22, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x04, 0x08, 0x00, 0x08, 0x10, 0x20, 0x00, 0x20, 0x01, 0x20, 0x10, 0x08, 0x00, 0x08, 0x00, 0x08, 0x10, 0x00, 0x10, 0x20, 0x00, 0x20, 0x00, 0x20, 0x00, 0x20, 0x00, 0x00, 0x05, 0x08, 0x00, 0x08, 0x00, 0x08, 0x00, 0x08, 0x04, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 41 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 42 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa8, 0x54, 0x80, 0x14, 0x28, 0x00, 0x08, 0x14, 0xa0, 0x00, 0x08, 0x00, 0x00, 0x00, 0xa8, 0x54, 0x20, 0x04, 0xa8, 0x00, 0xa8, 0x54, 0x80, 0x00, 0x00, 0x50, 0xa8, 0x04, 0x80, 0x50, 0x00, 0x40, 0xa0, 0x00, 0x80, 0x54, 0x00, 0x44, 0xa0, 0x14, 0x88, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 43 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 44 | }; 45 | 46 | // 'title3', 128x64px 47 | const unsigned char title3 [] PROGMEM = { 48 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0xa0, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 49 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x40, 0xa0, 0x50, 0xaa, 0x54, 0xa8, 0x15, 0xa8, 0x14, 0x28, 0x01, 0x28, 0x01, 0xa0, 0x04, 0x00, 0x10, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x00, 0xa2, 0x50, 0xa8, 0x50, 0xa2, 0x40, 0x00, 0x10, 0x00, 0x00, 0x00, 0x40, 0xa0, 0x50, 0xa8, 0x54, 0x2a, 0x40, 0x00, 0x01, 0x88, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x00, 0xa0, 0x10, 0x00, 0x10, 0x08, 0x10, 0x22, 0x45, 0x82, 0x05, 0x22, 0x05, 0x02, 0x05, 0x20, 0x00, 0x00, 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x04, 0x20, 0x50, 0xa8, 0x50, 0xaa, 0x50, 0x00, 0x40, 0x00, 0x01, 0x80, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 50 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x20, 0x01, 0x0a, 0x41, 0x00, 0x15, 0x80, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x8a, 0x50, 0x00, 0x40, 0x00, 0x00, 0x00, 0x40, 0x00, 0x51, 0x80, 0x40, 0x80, 0x50, 0x80, 0x40, 0x00, 0x40, 0x00, 0x00, 0x00, 0x04, 0x80, 0x00, 0x00, 0x01, 0x02, 0x01, 0x0a, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x20, 0x00, 0x20, 0x50, 0x08, 0x14, 0x0a, 0x01, 0x08, 0x05, 0x00, 0x04, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xa2, 0x40, 0xa0, 0x50, 0x2a, 0x14, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x02, 0x00, 0x20, 0x10, 0x02, 0x01, 0x02, 0x01, 0x02, 0x40, 0x08, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 51 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x00, 0x02, 0x40, 0x0a, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x01, 0x20, 0x05, 0x00, 0x01, 0x00, 0x05, 0x00, 0x01, 0x88, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x40, 0x08, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x01, 0x00, 0x00, 0x80, 0x00, 0x08, 0x01, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x00, 0x01, 0x20, 0x00, 0x00, 0x10, 0x00, 0x00, 0x22, 0x01, 0x08, 0x00, 0x22, 0x00, 0x00, 0x00, 0x08, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x08, 0x05, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x45, 0x00, 0x10, 0x00, 0x00, 0x20, 0x01, 0x80, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 52 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x08, 0x00, 0x20, 0x00, 0x20, 0x00, 0x08, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x20, 0x00, 0x00, 0x10, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x20, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x40, 0x00, 0x00, 0x20, 0x40, 0x00, 0x00, 0x20, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 53 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 54 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa8, 0x54, 0x80, 0x14, 0x28, 0x00, 0x08, 0x14, 0xa0, 0x00, 0x08, 0x00, 0x00, 0x00, 0xa8, 0x54, 0x20, 0x04, 0xa8, 0x00, 0xa8, 0x54, 0x80, 0x00, 0x00, 0x50, 0xa8, 0x04, 0x80, 0x50, 0x00, 0x40, 0xa0, 0x00, 0x80, 0x54, 0x00, 0x44, 0xa0, 0x14, 0x88, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 55 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 56 | }; 57 | 58 | // 'title4', 128x64px 59 | const unsigned char title4 [] PROGMEM = { 60 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 61 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x80, 0x01, 0x80, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x04, 0x00, 0x10, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x00, 0x02, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x88, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x00, 0x20, 0x10, 0x00, 0x10, 0x08, 0x10, 0x22, 0x40, 0x80, 0x00, 0x20, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x04, 0x20, 0x10, 0x08, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 62 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x14, 0x80, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x0a, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x11, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x20, 0x00, 0x20, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xa2, 0x40, 0x00, 0x00, 0x02, 0x04, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x02, 0x00, 0x20, 0x10, 0x02, 0x01, 0x00, 0x00, 0x00, 0x40, 0x08, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 63 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x40, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x20, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x88, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x40, 0x08, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x01, 0x00, 0x00, 0x80, 0x00, 0x08, 0x01, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x00, 0x01, 0x20, 0x00, 0x00, 0x10, 0x00, 0x00, 0x22, 0x01, 0x08, 0x00, 0x22, 0x00, 0x00, 0x00, 0x08, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x08, 0x05, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x45, 0x00, 0x10, 0x00, 0x00, 0x20, 0x01, 0x80, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 64 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x08, 0x00, 0x20, 0x00, 0x20, 0x00, 0x08, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x08, 0x00, 0x20, 0x00, 0x00, 0x10, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x20, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x40, 0x00, 0x00, 0x20, 0x40, 0x00, 0x00, 0x20, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x01, 0x20, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 65 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 66 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa8, 0x00, 0x80, 0x10, 0x00, 0x00, 0x00, 0x04, 0x80, 0x00, 0x08, 0x00, 0x00, 0x00, 0x88, 0x00, 0x20, 0x00, 0x88, 0x00, 0x20, 0x04, 0x80, 0x00, 0x00, 0x10, 0x80, 0x04, 0x00, 0x10, 0x00, 0x40, 0x00, 0x00, 0x80, 0x04, 0x00, 0x00, 0x80, 0x14, 0x80, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 67 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 68 | }; 69 | 70 | 71 | /* 72 | const int8_t button1Pin = 9; //LEFT 73 | const int8_t button2Pin = 8; //RIGHT 74 | const int8_t button3Pin = 7; //UP 75 | const int8_t button4Pin = 6; //DOWN 76 | const int8_t button5Pin = 5; //A 77 | const int8_t button6Pin = 4; //B 78 | const int8_t button7Pin = 2; //MENU 79 | */ 80 | //const int8_t sound = 3; 81 | bool sound_enabled=true; 82 | //const int8_t ledPin = 10; 83 | 84 | /*int8_t button1State = 0; 85 | int8_t button2State = 0; 86 | int8_t button3State = 0; 87 | int8_t button4State = 0; 88 | int8_t button5State = 0; 89 | int8_t button6State = 0; 90 | int8_t button7State = 0; 91 | 92 | 93 | #define ACTIVATED LOW 94 | */ 95 | #define DELAYMULTIPLIER 0 96 | 97 | 98 | 99 | 100 | int8_t posx=0, posy=2; // Where you are in the Maze 101 | 102 | int8_t illuminatedRow=0; 103 | int8_t blinkPlayer=1; 104 | int8_t wallPhase=1; 105 | 106 | int8_t level=1; 107 | 108 | int8_t gameMode=0; 109 | int8_t selectedOption=1; 110 | int8_t menuPointerPos=0; 111 | bool menuPointerPosDir=false,gamePaused=false,escapeGameOver=false; 112 | 113 | void setup() { 114 | 115 | //Serial.begin(9600); 116 | 117 | /*pinMode(button1Pin, INPUT); 118 | pinMode(button2Pin, INPUT); 119 | pinMode(button3Pin, INPUT); 120 | pinMode(button4Pin, INPUT); 121 | pinMode(button5Pin, INPUT); 122 | pinMode(button6Pin, INPUT); 123 | pinMode(button7Pin, INPUT); 124 | 125 | digitalWrite(button1Pin, HIGH); 126 | digitalWrite(button2Pin, HIGH); 127 | digitalWrite(button3Pin, HIGH); 128 | digitalWrite(button4Pin, HIGH); 129 | digitalWrite(button5Pin, HIGH); 130 | digitalWrite(button6Pin, HIGH); 131 | digitalWrite(button7Pin, HIGH); 132 | // or just 133 | // pinMode(button1Pin, INPUT_PULLUP) 134 | // etc 135 | 136 | // pinMode( OUTPUT); 137 | // pinMode(ledPin, OUTPUT); 138 | 139 | // pinMode(13,OUTPUT);*/ 140 | arduboy.begin(); 141 | //arduboy.initRandomSeed(); 142 | //randomSeed(analogRead(A4)); 143 | //randomSeed(analogRead(A4)+readVcc()); 144 | arduboy.setFrameRate(FRAME_RATE); 145 | arduboy.clear(); 146 | arduboy.display(); 147 | // audio setup 148 | tunes.initChannel(PIN_SPEAKER_1); 149 | #ifndef AB_DEVKIT 150 | // if not a DevKit 151 | tunes.initChannel(PIN_SPEAKER_2); 152 | #else 153 | // if it's a DevKit 154 | tunes.initChannel(PIN_SPEAKER_1); // use the same pin for both channels 155 | tunes.toneMutesScore(true); // mute the score when a tone is sounding 156 | #endif 157 | delay(random(2,2000)); 158 | 159 | arduboy.clear(); 160 | 161 | // splash 162 | arduboy.setTextColor(WHITE); 163 | //arduboy.println(F("jakobdesign presents")); 164 | //arduboy.print(F(" generating maze...")); 165 | arduboy.drawBitmap(0, 10, title4 , 128, 64, WHITE); 166 | arduboy.display(); 167 | //digitalWrite(ledPin, HIGH); 168 | tunes.tone(2200,5); 169 | //digitalWrite(ledPin, LOW); 170 | delay(80); 171 | arduboy.clear(); 172 | arduboy.drawBitmap(0, 5, title3 , 128, 64, WHITE); 173 | arduboy.display(); 174 | //digitalWrite(ledPin, HIGH); 175 | tunes.tone(2200,5); 176 | //digitalWrite(ledPin, LOW); 177 | delay(80); 178 | arduboy.clear(); 179 | arduboy.drawBitmap(0, 2, title2 , 128, 64, WHITE); 180 | arduboy.display(); 181 | //digitalWrite(ledPin, HIGH); 182 | tunes.tone(2200,5); 183 | //digitalWrite(ledPin, LOW); 184 | delay(80); 185 | arduboy.clear(); 186 | arduboy.drawBitmap(0, 0, title1 , 128, 64, WHITE); 187 | arduboy.display(); 188 | //digitalWrite(ledPin, HIGH); 189 | tunes.tone(2200,5); 190 | //digitalWrite(ledPin, LOW); 191 | delay(3000); 192 | arduboy.clear(); 193 | arduboy.drawBitmap(0, 2, title2 , 128, 64, WHITE); 194 | arduboy.display(); 195 | //digitalWrite(ledPin, HIGH); 196 | tunes.tone(2200,5); 197 | //digitalWrite(ledPin, LOW); 198 | delay(80); 199 | arduboy.clear(); 200 | arduboy.drawBitmap(0, 5, title3 , 128, 64, WHITE); 201 | arduboy.display(); 202 | //digitalWrite(ledPin, HIGH); 203 | tunes.tone(2200,5); 204 | //digitalWrite(ledPin, LOW); 205 | delay(80); 206 | arduboy.clear(); 207 | arduboy.drawBitmap(0, 10, title4 , 128, 64, WHITE); 208 | arduboy.display(); 209 | //digitalWrite(ledPin, HIGH); 210 | tunes.tone(2200,5); 211 | //digitalWrite(ledPin, LOW); 212 | delay(80); 213 | arduboy.clear(); 214 | } 215 | 216 | 217 | void loop() { 218 | // pause render until it's time for the next frame 219 | if (!(arduboy.nextFrame())) 220 | return; 221 | /*button1State = arduboy.pressed(LEFT_BUTTON); 222 | button2State = arduboy.pressed(RIGHT_BUTTON); 223 | button3State = arduboy.pressed(UP_BUTTON); 224 | button4State = arduboy.pressed(DOWN_BUTTON); 225 | button5State = arduboy.pressed(A_BUTTON); 226 | button6State = arduboy.pressed(B_BUTTON); 227 | button7State = (arduboy.pressed(LEFT_BUTTON)); 228 | */ 229 | arduboy.pollButtons(); 230 | arduboy.clear(); 231 | 232 | if(gameMode==0){ 233 | 234 | //arduboy.drawBitmap(0, -20, title1 , 128, 64, WHITE); 235 | mainMenu(); 236 | displayBattery(WHITE); 237 | 238 | } 239 | if(gameMode==1){ 240 | walker(); 241 | displayBattery(WHITE); 242 | if(!gamePaused){ 243 | selectedOption=1; 244 | } 245 | } 246 | if(gameMode==2){ 247 | collector(); 248 | displayBattery(WHITE); 249 | if(!gamePaused){ 250 | selectedOption=1; 251 | } 252 | } 253 | if(gameMode==3){ 254 | escaper(); 255 | displayBattery(WHITE); 256 | if(!gamePaused and !escapeGameOver){ 257 | selectedOption=1; 258 | } 259 | } 260 | if(gameMode==4){ 261 | dark(); 262 | displayBattery(WHITE); 263 | if(!gamePaused){ 264 | selectedOption=1; 265 | } 266 | } 267 | 268 | displayIndicators(WHITE); 269 | 270 | arduboy.display(); 271 | delay(10*DELAYMULTIPLIER); 272 | 273 | } 274 | 275 | void displayIndicators(uint8_t font){ 276 | //speaker 277 | arduboy.drawLine(103,1,103,6,font); 278 | arduboy.drawLine(102,1,102,6,font); 279 | arduboy.drawLine(101,2,101,5,font); 280 | arduboy.drawLine(100,3,100,4,font); 281 | arduboy.drawLine(99,3,99,4,font); 282 | if(sound_enabled){ 283 | arduboy.drawPixel(105,2,font); 284 | arduboy.drawPixel(106,3,font); 285 | arduboy.drawPixel(106,4,font); 286 | arduboy.drawPixel(105,5,font); 287 | } 288 | //... 289 | } 290 | 291 | 292 | void displayBattery(uint8_t font){ 293 | 294 | arduboy.setTextColor(font); 295 | arduboy.setCursor(50,0); 296 | // arduboy.print("vcc:");///////////////////////////////////// 297 | int batt=readVcc(); 298 | //arduboy.print(batt);//////////////////////////////////////// 299 | 300 | arduboy.drawLine(114,1,125,1,font); 301 | arduboy.drawLine(114,6,125,6,font); 302 | arduboy.drawLine(114,1,114,6,font); 303 | arduboy.drawLine(125,1,125,6,font); 304 | arduboy.drawLine(126,3,126,4,font); 305 | 306 | if(batt>4350){ 307 | arduboy.drawLine(109,2,109,1,font); 308 | arduboy.drawLine(111,2,111,1,font); 309 | arduboy.drawLine(108,3,112,3,font); 310 | arduboy.drawLine(108,4,112,4,font); 311 | arduboy.drawPixel(110,5,font); 312 | arduboy.drawPixel(111,6,font); 313 | arduboy.drawPixel(112,6,font); 314 | arduboy.drawPixel(113,6,font); 315 | } 316 | //if(batt>2900){ 317 | if(batt>3330){ 318 | arduboy.drawLine(116,3,116,4,font); 319 | arduboy.drawLine(117,3,117,4,font); 320 | } 321 | //if(batt>3000){ 322 | if(batt>3450){ 323 | arduboy.drawLine(119,3,119,4,font); 324 | arduboy.drawLine(120,3,120,4,font); 325 | } 326 | //if(batt>3100){ 327 | if(batt>3800){ 328 | arduboy.drawLine(122,3,122,4,font); 329 | arduboy.drawLine(123,3,123,4,font); 330 | } 331 | 332 | } 333 | 334 | int readVcc() { 335 | // delayShort(1000); 336 | //arduboy.initRandomSeed();//dont think needed 337 | power_adc_enable();// ADC on 338 | int result; // Read 1.1V reference against AVcc 339 | ADMUX = _BV(REFS0) | _BV(MUX4) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1); 340 | delay(2); // wait for Vref to settle after the mux change 341 | ADCSRA |= _BV(ADSC); // Convert 342 | while (bit_is_set(ADCSRA,ADSC)); 343 | // result = ADCL; 344 | //result |= ADCH<<8; 345 | result = ADCW;//use ADCW to get the upper and lower registers in one 346 | result = 1125300L / result -249;// AVcc in mV = 1.1*1023*1000 = 1125300 347 | // Back-calculate AVcc in mV 348 | return result; 349 | power_adc_disable(); // ADC off 350 | } 351 | 352 | /*void tunes.tone(uint8_t pin,int freq,int duration){ 353 | if(sound_enabled){ 354 | tone(pin,freq,duration); 355 | } 356 | }*/ 357 | -------------------------------------------------------------------------------- /A-Maze-Arduboy/a-maze-01-maze.ino: -------------------------------------------------------------------------------- 1 | #define MAZEHEIGHT 31 2 | #define MAZEWIDTH 15 3 | 4 | uint16_t Maze[] = { 5 | 0b1101111111111111, 6 | 0b1100000000000001, 7 | 0b1101010101010101, 8 | 0b1100000000000001, 9 | 0b1101010101010101, 10 | 0b1100000000000001, 11 | 0b1101010101010101, 12 | 0b1100000000000001, 13 | 0b1101010101010101, 14 | 0b1100000000000001, 15 | 0b1101010101010101, 16 | 0b1100000000000001, 17 | 0b1101010101010101, 18 | 0b1100000000000001, 19 | 0b1101010101010101, 20 | 0b1100000000000001, 21 | 0b1101010101010101, 22 | 0b1100000000000001, 23 | 0b1101010101010101, 24 | 0b1100000000000001, 25 | 0b1101010101010101, 26 | 0b1100000000000001, 27 | 0b1101010101010101, 28 | 0b1100000000000001, 29 | 0b1101010101010101, 30 | 0b1100000000000001, 31 | 0b1101010101010101, 32 | 0b1100000000000001, 33 | 0b1101010101010101, 34 | 0b1100000000000001, 35 | 0b1111111111111101, 36 | 0b1100000000000101,//exit 37 | 0b0000000000000000 38 | }; 39 | 40 | uint8_t geni, genj, genk, genval, genmod; 41 | int8_t genx, geny; 42 | 43 | 44 | 45 | void drawMaze(){ 46 | uint8_t i, j; 47 | bool wall; 48 | 49 | for(i=0;i<=MAZEHEIGHT;i++){ 50 | for(j=0;j<=MAZEWIDTH;j++){ 51 | wall=readPixel(i,j); 52 | if(wall and j>1){ 53 | 54 | //walls 55 | if(gameMode!=4){ 56 | //light mode 57 | if(wallPhase==1){ 58 | if(illuminatedRow>=i){ 59 | arduboy.drawPixel(i*4,j*4+2,WHITE); 60 | arduboy.drawPixel(i*4,j*4+2+2,WHITE); 61 | arduboy.drawPixel(i*4+1,j*4+1+2,WHITE); 62 | arduboy.drawPixel(i*4+1,j*4+3+2,WHITE); 63 | arduboy.drawPixel(i*4+2,j*4+2+2,WHITE); 64 | arduboy.drawPixel(i*4+2,j*4+4+2,WHITE); 65 | arduboy.drawPixel(i*4+3,j*4+1+2,WHITE); 66 | arduboy.drawPixel(i*4+3,j*4+3+2,WHITE); 67 | }else{ 68 | arduboy.drawPixel(i*4+2,j*4+2+2,WHITE); 69 | } 70 | }else if(wallPhase==2){ 71 | if(illuminatedRow>=i){ 72 | arduboy.fillRect(i*4,j*4+2,4,4,WHITE); 73 | }else{ 74 | //arduboy.drawRect(i*4,j*4+1,4,4,WHITE); 75 | arduboy.drawPixel(i*4,j*4+2,WHITE); 76 | arduboy.drawPixel(i*4,j*4+2+2,WHITE); 77 | arduboy.drawPixel(i*4+1,j*4+1+2,WHITE); 78 | arduboy.drawPixel(i*4+1,j*4+3+2,WHITE); 79 | arduboy.drawPixel(i*4+2,j*4+2+2,WHITE); 80 | arduboy.drawPixel(i*4+2,j*4+4+2,WHITE); 81 | arduboy.drawPixel(i*4+3,j*4+1+2,WHITE); 82 | arduboy.drawPixel(i*4+3,j*4+3+2,WHITE); 83 | } 84 | }else if(wallPhase==3){ 85 | arduboy.fillRect(i*4,j*4+2,4,4,WHITE); 86 | } 87 | if(wallPhase==3 and (i==posx or j==posy) and j!=0){ 88 | //draw crosshair 89 | arduboy.drawPixel(i*4+2,j*4+2+2,BLACK); 90 | } 91 | }else{ 92 | //dark mode 93 | 94 | if( 95 | ( 96 | (i==posx-1 and j==posy-1) 97 | or (i==posx-1 and j==posy) 98 | or (i==posx and j==posy-1) 99 | or (i==posx+1 and j==posy+1) 100 | or (i==posx+1 and j==posy) 101 | or (i==posx and j==posy+1) 102 | or (i==posx-1 and j==posy+1) 103 | or (i==posx+1 and j==posy-1) 104 | ) 105 | 106 | ){ 107 | arduboy.fillRect(i*4,j*4+2,4,4,WHITE); 108 | } 109 | 110 | if( 111 | ( 112 | (i==posx-2 and j==posy-2) 113 | or (i==posx-2 and j==posy-1) 114 | or (i==posx-2 and j==posy) 115 | or (i==posx-2 and j==posy+1) 116 | or (i==posx-2 and j==posy+2) 117 | or (i==posx and j==posy-2) 118 | or (i==posx and j==posy+2) 119 | or (i==posx-1 and j==posy-2) 120 | or (i==posx-1 and j==posy+2) 121 | or (i==posx+2 and j==posy+2) 122 | or (i==posx+2 and j==posy+1) 123 | or (i==posx+2 and j==posy) 124 | or (i==posx+2 and j==posy-1) 125 | or (i==posx+2 and j==posy-2) 126 | or (i==posx+1 and j==posy+2) 127 | or (i==posx+1 and j==posy-2) 128 | ) 129 | 130 | ){ 131 | arduboy.drawPixel(i*4,j*4+2,WHITE); 132 | arduboy.drawPixel(i*4,j*4+2+2,WHITE); 133 | arduboy.drawPixel(i*4+1,j*4+1+2,WHITE); 134 | arduboy.drawPixel(i*4+1,j*4+3+2,WHITE); 135 | arduboy.drawPixel(i*4+2,j*4+2+2,WHITE); 136 | arduboy.drawPixel(i*4+2,j*4+4+2,WHITE); 137 | arduboy.drawPixel(i*4+3,j*4+1+2,WHITE); 138 | arduboy.drawPixel(i*4+3,j*4+3+2,WHITE); 139 | } 140 | if( 141 | ( 142 | (i==posx-3 and j==posy-3) 143 | or (i==posx-3 and j==posy-2) 144 | or (i==posx-3 and j==posy-1) 145 | or (i==posx-3 and j==posy) 146 | or (i==posx-3 and j==posy+1) 147 | or (i==posx-3 and j==posy+2) 148 | or (i==posx-3 and j==posy+3) 149 | 150 | or (i==posx-2 and j==posy+3) 151 | or (i==posx-1 and j==posy+3) 152 | or (i==posx and j==posy+3) 153 | or (i==posx+1 and j==posy+3) 154 | or (i==posx+2 and j==posy+3) 155 | or (i==posx+3 and j==posy+3) 156 | 157 | or (i==posx+3 and j==posy+2) 158 | or (i==posx+3 and j==posy+1) 159 | or (i==posx+3 and j==posy) 160 | or (i==posx+3 and j==posy-1) 161 | or (i==posx+3 and j==posy-2) 162 | or (i==posx+3 and j==posy-3) 163 | 164 | or (i==posx+2 and j==posy-3) 165 | or (i==posx+1 and j==posy-3) 166 | or (i==posx and j==posy-3) 167 | or (i==posx-1 and j==posy-3) 168 | or (i==posx-2 and j==posy-3) 169 | ) 170 | 171 | ){ 172 | arduboy.drawPixel(i*4+1,j*4+1+2,WHITE); 173 | arduboy.drawPixel(i*4+3,j*4+3+2,WHITE); 174 | arduboy.drawPixel(i*4+1,j*4+3+2,WHITE); 175 | arduboy.drawPixel(i*4+3,j*4+1+2,WHITE); 176 | } 177 | if( 178 | ( 179 | (i==posx-4 and j==posy-4) 180 | or (i==posx-4 and j==posy-3) 181 | or (i==posx-4 and j==posy-2) 182 | or (i==posx-4 and j==posy-1) 183 | or (i==posx-4 and j==posy) 184 | or (i==posx-4 and j==posy+1) 185 | or (i==posx-4 and j==posy+2) 186 | or (i==posx-4 and j==posy+3) 187 | or (i==posx-4 and j==posy+4) 188 | 189 | or (i==posx-3 and j==posy+4) 190 | or (i==posx-2 and j==posy+4) 191 | or (i==posx-1 and j==posy+4) 192 | or (i==posx and j==posy+4) 193 | or (i==posx+1 and j==posy+4) 194 | or (i==posx+2 and j==posy+4) 195 | or (i==posx+3 and j==posy+4) 196 | 197 | or (i==posx+4 and j==posy+4) 198 | or (i==posx+4 and j==posy+3) 199 | or (i==posx+4 and j==posy+2) 200 | or (i==posx+4 and j==posy+1) 201 | or (i==posx+4 and j==posy) 202 | or (i==posx+4 and j==posy-1) 203 | or (i==posx+4 and j==posy-2) 204 | or (i==posx+4 and j==posy-3) 205 | or (i==posx+4 and j==posy-4) 206 | 207 | or (i==posx+3 and j==posy-4) 208 | or (i==posx+2 and j==posy-4) 209 | or (i==posx+1 and j==posy-4) 210 | or (i==posx and j==posy-4) 211 | or (i==posx-1 and j==posy-4) 212 | or (i==posx-2 and j==posy-4) 213 | or (i==posx-3 and j==posy-4) 214 | ) 215 | 216 | 217 | ){ 218 | arduboy.drawPixel(i*4+2,j*4+2+2,WHITE); 219 | } 220 | 221 | 222 | } 223 | //arduboy.drawBitmap(i*4, j*4, brick , 4, 4, WHITE); 224 | 225 | 226 | 227 | }else{ 228 | 229 | //not walls 230 | if(gameMode!=4){ 231 | //light mode 232 | if(wallPhase==3 and (i==posx or j==posy) and j!=0){ 233 | //draw crosshair 234 | arduboy.drawPixel(i*4+2,j*4+2+2,WHITE); 235 | } 236 | } 237 | //arduboy.drawBitmap(i*4, j*4, checker , 4, 4, WHITE); 238 | /*arduboy.drawPixel(i*4,j*4,WHITE); 239 | arduboy.drawPixel(i*4,j*4+2,WHITE); 240 | arduboy.drawPixel(i*4+1,j*4+1,WHITE); 241 | arduboy.drawPixel(i*4+1,j*4+3,WHITE); 242 | arduboy.drawPixel(i*4+2,j*4+2,WHITE); 243 | arduboy.drawPixel(i*4+2,j*4+4,WHITE); 244 | arduboy.drawPixel(i*4+3,j*4+1,WHITE); 245 | arduboy.drawPixel(i*4+3,j*4+3,WHITE); 246 | */ 247 | } 248 | } 249 | } 250 | 251 | 252 | //display level 253 | //arduboy.fillRect(0,0,128,8,WHITE); 254 | 255 | //if(wallPhase>1){ 256 | arduboy.setTextColor(WHITE); 257 | arduboy.setCursor(0,0); 258 | arduboy.print("level: "); 259 | arduboy.print(level); 260 | for(int shdw=0;shdw<124;shdw+=2){ 261 | arduboy.drawPixel(shdw,8,WHITE); 262 | } 263 | arduboy.drawLine(0,9,123,9,WHITE); 264 | //} 265 | 266 | 267 | //draw player 268 | /* 269 | arduboy.drawPixel(posx*4,posy*4+1,WHITE); 270 | arduboy.drawPixel(posx*4,posy*4+2,WHITE); 271 | 272 | arduboy.drawPixel(posx*4+1,posy*4,WHITE); 273 | arduboy.drawPixel(posx*4+2,posy*4,WHITE); 274 | 275 | arduboy.drawPixel(posx*4+3,posy*4+1,WHITE); 276 | arduboy.drawPixel(posx*4+3,posy*4+2,WHITE); 277 | 278 | arduboy.drawPixel(posx*4+1,posy*4+3,WHITE); 279 | arduboy.drawPixel(posx*4+2,posy*4+3,WHITE); 280 | */ 281 | if(blinkPlayer==1){ 282 | arduboy.fillCircle(posx*4+1,posy*4+1+2,3,WHITE); 283 | arduboy.fillCircle(posx*4+1,posy*4+1+2,1,BLACK); 284 | }else{ 285 | arduboy.fillCircle(posx*4+1,posy*4+1+2,3,BLACK); 286 | arduboy.fillCircle(posx*4+1,posy*4+1+2,1,WHITE); 287 | } 288 | /* 289 | if(blinkPlayer==1){ 290 | arduboy.drawPixel(posx*4+1,posy*4+1,WHITE); 291 | } 292 | if(blinkPlayer==2){ 293 | arduboy.drawPixel(posx*4+2,posy*4+1,WHITE); 294 | } 295 | if(blinkPlayer==3){ 296 | arduboy.drawPixel(posx*4+1,posy*4+2,WHITE); 297 | } 298 | if(blinkPlayer==4){ 299 | arduboy.drawPixel(posx*4+2,posy*4+2,WHITE); 300 | } 301 | */ 302 | blinkPlayer++; 303 | if(blinkPlayer>16){ 304 | blinkPlayer=1; 305 | } 306 | 307 | if(illuminatedRow>8; 325 | byte Lo = Data & 0x00FF; 326 | if(j>7){ 327 | return bitRead(Lo, 7 - (j % 8)); 328 | }else{ 329 | //j=j-8; 330 | return bitRead(Hi, 7 - (j % 8)); 331 | } 332 | } 333 | 334 | 335 | 336 | 337 | 338 | void generateMaze(){ 339 | bool alternate=false; 340 | for (geni = 1; geni < MAZEHEIGHT-1; geni++) { 341 | if(!alternate){ 342 | Maze[geni] = 0b1100000000000001; 343 | }else{ 344 | Maze[geni] = 0b1101010101010101; 345 | } 346 | alternate=!alternate; 347 | } 348 | genmod = 4; 349 | for (geni = 2; geni < MAZEHEIGHT - 2; geni += 2) { 350 | for (genj = 3; genj < MAZEWIDTH - 1; genj += 2) { 351 | Maze[geni] |= (0x8000 >> genj); 352 | do{ 353 | //Roll a stick 354 | arduboy.initRandomSeed(); 355 | //randomSeed(analogRead(A4)); 356 | //randomSeed(analogRead(A4)+readVcc()); 357 | //genval = (uint8_t)(analogRead(A0) & 0x00FF) % genmod; 358 | genval = (uint8_t)(random(10000) & 0x00FF) % genmod; 359 | //val = analogRead(A0) % mod; 360 | genx = 0, geny = 0; 361 | if (genval == 0)geny = 1; 362 | if (genval == 1)genx = -1; 363 | if (genval == 2)genx = 1; 364 | if (genval == 3)geny = -1; 365 | }while ((Maze[geni + geny] & (0x8000 >> (genj + genx)))); 366 | Maze[geni + geny] |= (0x8000 >> (genj + genx)); 367 | } 368 | genmod = 3; 369 | } 370 | } 371 | 372 | 373 | 374 | /* 375 | void drawMazeSerial(){ 376 | uint8_t i, j; 377 | bool dot; 378 | for(i=0;i<=MAZEHEIGHT;i++){ 379 | for(j=0;j<=MAZEWIDTH;j++){ 380 | dot=readPixel(i,j); 381 | if(dot){ 382 | Serial.print("*"); 383 | }else{ 384 | Serial.print(" "); 385 | } 386 | } 387 | Serial.println(); 388 | } 389 | } 390 | */ 391 | -------------------------------------------------------------------------------- /A-Maze-Arduboy/controls.ino: -------------------------------------------------------------------------------- 1 | //GAME CONTROL 2 | void controls(){ 3 | bool wall; 4 | 5 | /* ------- BUTTON 1 - LEFT ------- */ 6 | if(arduboy.pressed(LEFT_BUTTON)){ 7 | //generateMaze(); 8 | if(posx-1>=0){ 9 | wall=readPixel(posx-1,posy); 10 | if(!wall){ 11 | --posx; 12 | tunes.tone(2200,5); 13 | }else{ 14 | tunes.tone(1000,50); 15 | } 16 | }else{ 17 | tunes.tone(1000,50); 18 | } 19 | delay(30); 20 | } 21 | /* ------- BUTTON 2 - RIGHT ------- */ 22 | if(arduboy.pressed(RIGHT_BUTTON)){ 23 | if(posx+1<=MAZEHEIGHT+1){ 24 | wall=readPixel(posx+1,posy); 25 | if(!wall){ 26 | ++posx; 27 | tunes.tone(2200,5); 28 | }else{ 29 | tunes.tone(1000,50); 30 | } 31 | }else{ 32 | tunes.tone(1000,50); 33 | } 34 | delay(30); 35 | } 36 | /* ------- BUTTON 3 - UP ------- */ 37 | if(arduboy.pressed(UP_BUTTON)){ 38 | if(posy-1>=2){ 39 | wall=readPixel(posx,posy-1); 40 | if(!wall){ 41 | --posy; 42 | tunes.tone(2200,5); 43 | }else{ 44 | tunes.tone(1000,50); 45 | } 46 | }else{ 47 | tunes.tone(1000,50); 48 | } 49 | delay(30); 50 | } 51 | /* ------- BUTTON 4 - DOWN ------- */ 52 | if(arduboy.pressed(DOWN_BUTTON)){ 53 | if(posy+1<=MAZEWIDTH){ 54 | wall=readPixel(posx,posy+1); 55 | if(!wall){ 56 | ++posy; 57 | tunes.tone(2200,5); 58 | }else{ 59 | tunes.tone(1000,50); 60 | } 61 | }else{ 62 | tunes.tone(1000,50); 63 | } 64 | delay(30); 65 | } 66 | /* 67 | if(arduboy.pressed(A_BUTTON)){//A 68 | //arduboy.fillCircle(20,30,5,WHITE); 69 | tunes.tone(2400,5); 70 | delay(60); 71 | } 72 | if(arduboy.pressed(A_BUTTON | B_BUTTON)){//B 73 | //arduboy.fillCircle(50,30,5,WHITE); 74 | tunes.tone(2400,5); 75 | delay(60); 76 | }*/ 77 | if (arduboy.pressed(B_BUTTON)){//MENU 78 | //arduboy.fillCircle(80,30,5,WHITE); 79 | gamePaused=true; 80 | tunes.tone(2400,5); 81 | delay(200); 82 | //button7State = digitalRead(button7Pin); 83 | } 84 | 85 | } 86 | 87 | -------------------------------------------------------------------------------- /A-Maze-Arduboy/game_collector.ino: -------------------------------------------------------------------------------- 1 | int collectables[10][2]={ 2 | {0,0}, 3 | {0,0}, 4 | {0,0}, 5 | {0,0}, 6 | {0,0}, 7 | {0,0}, 8 | {0,0}, 9 | {0,0}, 10 | {0,0}, 11 | {0,0} 12 | }; 13 | 14 | int numberCollectables=0; 15 | 16 | int collectablePhase=0; 17 | 18 | void collector(){ 19 | /* ------- BUTTON PRESS ACTIONS ------- */ 20 | bool wall; 21 | 22 | if(!gamePaused){ 23 | //GAME CONTROL 24 | controls(); 25 | 26 | } 27 | 28 | 29 | if(check_collectable(posx,posy)){ 30 | get_collectable(posx,posy); 31 | --numberCollectables; 32 | tunes.tone(2800,5); 33 | } 34 | if(numberCollectables>0){ 35 | arduboy.drawPixel(124,60,BLACK); 36 | arduboy.drawPixel(124,59,BLACK); 37 | arduboy.drawPixel(125,60,BLACK); 38 | arduboy.drawPixel(125,59,BLACK); 39 | //arduboy.drawLine(122,58,122,62,WHITE); 40 | //arduboy.drawLine(127,58,127,62,WHITE); 41 | }else{ 42 | Maze[31]=0b1100000000000101; 43 | } 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | arduboy.setCursor(0,0); 52 | 53 | if(posx==MAZEHEIGHT+1 and numberCollectables==0){ 54 | posx=0; 55 | posy=2; 56 | displayLevelSplash(); 57 | generate_collectables(); 58 | level++; 59 | illuminatedRow=0; 60 | blinkPlayer=1; 61 | wallPhase=1; 62 | }else{ 63 | drawMaze(); 64 | if(numberCollectables>0 and wallPhase>1){ 65 | arduboy.drawRect(122,57,6,6,WHITE); 66 | arduboy.drawRect(123,58,4,4,BLACK); 67 | } 68 | draw_collectables(); 69 | if(gamePaused){ 70 | gameMenu(); 71 | } 72 | 73 | } 74 | 75 | } 76 | 77 | 78 | void generate_collectables(){ 79 | int i=0,x,y,seeded=11; 80 | arduboy.initRandomSeed(); 81 | //randomSeed(analogRead(A4)); 82 | //randomSeed(analogRead(A4)+readVcc()); 83 | do{ 84 | x=random(1,MAZEHEIGHT); 85 | y=random(1,MAZEWIDTH); 86 | if(!readPixel(x,y)){ 87 | collectables[i][0]=x; 88 | collectables[i][1]=y; 89 | i++; 90 | seeded--; 91 | } 92 | }while(seeded>0); 93 | numberCollectables=10; 94 | Maze[31]=0b1100000000000111; 95 | } 96 | 97 | bool check_collectable(int x,int y){ 98 | for(int i=0;i<10;i++){ 99 | if(collectables[i][0]==x and collectables[i][1]==y){ 100 | return true; 101 | } 102 | } 103 | return false; 104 | } 105 | 106 | bool get_collectable(int x,int y){ 107 | for(int i=0;i<10;i++){ 108 | if(collectables[i][0]==x and collectables[i][1]==y){ 109 | collectables[i][0]=0; 110 | collectables[i][1]=0; 111 | return true; 112 | } 113 | } 114 | return false; 115 | } 116 | 117 | void draw_collectables(){ 118 | for(int i=0;i<10;i++){ 119 | int x=collectables[i][0]; 120 | int y=collectables[i][1]; 121 | 122 | if(x>0 and y>0){ 123 | if(collectablePhase==0){ 124 | arduboy.drawPixel(x*4+1,y*4+1+2,WHITE); 125 | arduboy.drawPixel(x*4+1,y*4+2+2,WHITE); 126 | arduboy.drawPixel(x*4+2,y*4+1+2,WHITE); 127 | } 128 | if(collectablePhase==1){ 129 | arduboy.drawPixel(x*4+1,y*4+1+2,WHITE); 130 | arduboy.drawPixel(x*4+1,y*4+2+2,WHITE); 131 | arduboy.drawPixel(x*4+2,y*4+2+2,WHITE); 132 | } 133 | if(collectablePhase==2){ 134 | arduboy.drawPixel(x*4+1,y*4+1+2,WHITE); 135 | arduboy.drawPixel(x*4+2,y*4+1+2,WHITE); 136 | arduboy.drawPixel(x*4+2,y*4+2+2,WHITE); 137 | } 138 | if(collectablePhase==3){ 139 | arduboy.drawPixel(x*4+1,y*4+2+2,WHITE); 140 | arduboy.drawPixel(x*4+2,y*4+1+2,WHITE); 141 | arduboy.drawPixel(x*4+2,y*4+2+2,WHITE); 142 | } 143 | if(collectablePhase==4){ 144 | arduboy.drawPixel(x*4+1,y*4+1+2,WHITE); 145 | arduboy.drawPixel(x*4+1,y*4+2+2,WHITE); 146 | arduboy.drawPixel(x*4+2,y*4+1+2,WHITE); 147 | arduboy.drawPixel(x*4+2,y*4+2+2,WHITE); 148 | } 149 | } 150 | } 151 | collectablePhase++; 152 | if(collectablePhase==5){collectablePhase=0;} 153 | } 154 | -------------------------------------------------------------------------------- /A-Maze-Arduboy/game_dark.ino: -------------------------------------------------------------------------------- 1 | void dark(){ 2 | /* ------- BUTTON PRESS ACTIONS ------- */ 3 | bool wall; 4 | 5 | if(!gamePaused){ 6 | //GAME CONTROL 7 | controls(); 8 | 9 | } 10 | 11 | arduboy.setCursor(0,0); 12 | 13 | if(posx==MAZEHEIGHT+1){ 14 | posx=0; 15 | posy=2; 16 | displayLevelSplash(); 17 | level++; 18 | illuminatedRow=0; 19 | blinkPlayer=1; 20 | wallPhase=1; 21 | }else{ 22 | drawMaze(); 23 | if(gamePaused){ 24 | gameMenu(); 25 | } 26 | 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /A-Maze-Arduboy/game_escape.ino: -------------------------------------------------------------------------------- 1 | unsigned int timeLeft=630; 2 | 3 | 4 | 5 | void escaper(){ 6 | /* ------- BUTTON PRESS ACTIONS ------- */ 7 | 8 | bool wall; 9 | 10 | if(!gamePaused and !escapeGameOver){ 11 | //GAME CONTROL 12 | controls(); 13 | 14 | } 15 | 16 | arduboy.setCursor(0,0); 17 | 18 | if(!gamePaused and wallPhase>1){ 19 | if(timeLeft>0){ 20 | timeLeft--; 21 | uint8_t timeLine=round(timeLeft/15); 22 | arduboy.drawLine(125,52,125,52-timeLine,WHITE); 23 | arduboy.drawLine(126,52,126,52-timeLine,WHITE); 24 | }else{ 25 | escapeGameOver=true; 26 | } 27 | } 28 | 29 | if(posx==MAZEHEIGHT+1){ 30 | posx=0; 31 | posy=2; 32 | displayLevelSplash(); 33 | level++; 34 | illuminatedRow=0; 35 | blinkPlayer=1; 36 | wallPhase=1; 37 | timeLeft=630; 38 | }else{ 39 | drawMaze(); 40 | if(gamePaused){ 41 | gameMenu(); 42 | } 43 | if(escapeGameOver){ 44 | escapeGameOverMenu(); 45 | } 46 | 47 | } 48 | 49 | } 50 | 51 | void escapeGameOverMenu(){ 52 | 53 | menuItemPointerAnimation(); 54 | 55 | arduboy.fillRect(24,8,80,45,WHITE); 56 | arduboy.fillRect(25,9,78,43,BLACK); 57 | arduboy.setTextColor(BLACK); 58 | arduboy.fillRect(26,10,76,11,WHITE); 59 | arduboy.setTextBackground(WHITE); 60 | arduboy.setCursor(48,12); 61 | arduboy.setCursor(37,12); 62 | arduboy.print("GAME OVER"); 63 | arduboy.setTextBackground(BLACK); 64 | arduboy.setTextColor(WHITE); 65 | arduboy.setCursor(48,24); 66 | arduboy.print("retry"); 67 | if(selectedOption==1){ 68 | arduboy.setCursor(33+menuPointerPos,24); 69 | arduboy.print(">"); 70 | } 71 | arduboy.setCursor(48,34); 72 | arduboy.print("quit"); 73 | if(selectedOption==2){ 74 | arduboy.setCursor(33+menuPointerPos,34); 75 | arduboy.print(">"); 76 | } 77 | 78 | /* ------- BUTTON 3 - UP ------- */ 79 | if(arduboy.pressed(UP_BUTTON)){ 80 | selectedOption--; 81 | if(selectedOption==0){ 82 | selectedOption=2; 83 | } 84 | tunes.tone(2200,5); 85 | delay(100); 86 | } 87 | /* ------- BUTTON 4 - DOWN ------- */ 88 | if(arduboy.pressed(DOWN_BUTTON)){ 89 | selectedOption++; 90 | if(selectedOption==3){ 91 | selectedOption=1; 92 | } 93 | tunes.tone(2200,5); 94 | delay(100); 95 | } 96 | if (arduboy.pressed(B_BUTTON)){ 97 | if(selectedOption==1){ 98 | gamePaused=false; 99 | escapeGameOver=false; 100 | posx=0; 101 | posy=2; 102 | level=1; 103 | illuminatedRow=0; 104 | blinkPlayer=1; 105 | wallPhase=1; 106 | timeLeft=840; 107 | generateMaze(); 108 | delay(100); 109 | //button7State = digitalRead(button7Pin); 110 | } 111 | if(selectedOption==2){ 112 | asm volatile (" jmp 0"); 113 | } 114 | tunes.tone(2200,5); 115 | } 116 | } 117 | -------------------------------------------------------------------------------- /A-Maze-Arduboy/game_walker.ino: -------------------------------------------------------------------------------- 1 | void walker(){ 2 | /* ------- BUTTON PRESS ACTIONS ------- */ 3 | bool wall; 4 | 5 | if(!gamePaused){ 6 | //GAME CONTROL 7 | controls(); 8 | 9 | } 10 | 11 | 12 | 13 | arduboy.setCursor(0,0); 14 | 15 | if(posx==MAZEHEIGHT+1){ 16 | posx=0; 17 | posy=2; 18 | displayLevelSplash(); 19 | level++; 20 | illuminatedRow=0; 21 | blinkPlayer=1; 22 | wallPhase=1; 23 | }else{ 24 | drawMaze(); 25 | if(gamePaused){ 26 | gameMenu(); 27 | } 28 | 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /A-Maze-Arduboy/level_splash.ino: -------------------------------------------------------------------------------- 1 | void displayLevelSplash(){ 2 | int levely=-8,levelnoy=-8,completey=-8, i, j; 3 | 4 | arduboy.setTextColor(WHITE); 5 | for(i=0;i<3;i++){ 6 | for(j=0;j<50;j+=2){ 7 | arduboy.clear();//. 8 | if(levely<20){ 9 | levely+=2; 10 | tunes.tone(levely*110,5); 11 | } 12 | if(levely==20 and levelnoy<30){ 13 | levelnoy+=2; 14 | tunes.tone(levelnoy*110,5); 15 | } 16 | if(levely==20 and levelnoy==30 and completey<40){ 17 | completey+=2; 18 | tunes.tone(completey*110,5); 19 | } 20 | arduboy.setCursor(15,levely); 21 | arduboy.print("LEVEL"); 22 | arduboy.setCursor(45,levelnoy); 23 | arduboy.print(level); 24 | arduboy.setCursor(55,completey); 25 | arduboy.print("COMPLETE!"); 26 | 27 | displayBattery(WHITE); 28 | 29 | arduboy.display(); 30 | } 31 | } 32 | 33 | delay(1000); 34 | 35 | levely=-8; 36 | levelnoy=-8; 37 | for(i=0;i<2;i++){ 38 | for(j=0;j<50;j+=2){ 39 | arduboy.clear();//. 40 | if(levely<20){ 41 | levely+=2; 42 | tunes.tone(levely*110,5); 43 | } 44 | if(levely==20 and levelnoy<30){ 45 | levelnoy+=2; 46 | tunes.tone(levelnoy*110,5); 47 | } 48 | arduboy.setCursor(15,levely); 49 | arduboy.print("LEVEL"); 50 | arduboy.setCursor(45,levelnoy); 51 | arduboy.print(level+1); 52 | 53 | displayBattery(WHITE); 54 | 55 | arduboy.display(); 56 | } 57 | } 58 | 59 | delay(1500); 60 | 61 | generateMaze(); 62 | } 63 | -------------------------------------------------------------------------------- /A-Maze-Arduboy/menus.ino: -------------------------------------------------------------------------------- 1 | const unsigned char mazeBgTile [] PROGMEM = { 2 | // 'mazeTile, 32x32px 3 | 0x01, 0x20, 0x01, 0x20, 0x55, 0x00, 0x00, 0x00, 0x00, 0x55, 0x00, 0x00, 0x00, 0x00, 0x15, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x20, 0x00, 0x20, 0x00, 0x55, 0x00, 0x01, 0x00, 0x01, 0xa0, 4 | 0x00, 0x00, 0x00, 0x00, 0x55, 0x08, 0x00, 0x08, 0x00, 0x55, 0x00, 0x08, 0x00, 0x08, 0x00, 0x08, 0x00, 0x08, 0x00, 0xa8, 0x00, 0x08, 0x00, 0x08, 0x00, 0x08, 0x05, 0x00, 0x00, 0x00, 0x00, 0x0a, 5 | 0x20, 0x02, 0x20, 0x02, 0xa1, 0x00, 0x20, 0x00, 0x20, 0x01, 0xa2, 0x00, 0x02, 0x00, 0xaa, 0x00, 0x00, 0x00, 0x00, 0x40, 0x21, 0x00, 0x21, 0x00, 0x21, 0x00, 0x21, 0x00, 0x20, 0x00, 0x20, 0x00, 6 | 0x00, 0x04, 0x00, 0x04, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x82, 0x04, 0x80, 0x04, 0x82, 0x00, 0x00, 0x00, 0x00, 0x05, 0x80, 0x04, 0x80, 0x04, 0x80, 0x04, 0xa8, 0x00, 0x00, 0x00, 0x00, 0x00, 7 | }; 8 | 9 | int mainMenuBgX=0; 10 | int mainMenuBgY=0; 11 | 12 | void mainMenu(){ 13 | 14 | mainMenuAnimation(); 15 | menuItemPointerAnimation(); 16 | 17 | if(selectedOption==1){ 18 | arduboy.setTextSize(2); 19 | arduboy.setTextColor(BLACK); 20 | arduboy.setCursor(11+menuPointerPos,6); 21 | arduboy.print(">"); 22 | arduboy.setCursor(15+menuPointerPos,6); 23 | arduboy.print(">"); 24 | arduboy.setTextColor(WHITE); 25 | arduboy.setCursor(13+menuPointerPos,6); 26 | arduboy.print(">"); 27 | arduboy.setCursor(16+27-menuPointerPos,5); 28 | }else{ 29 | arduboy.setCursor(16+27,10); 30 | } 31 | arduboy.print("walk"); 32 | arduboy.setTextSize(1); 33 | 34 | if(selectedOption==2){ 35 | arduboy.setTextSize(2); 36 | arduboy.setTextColor(BLACK); 37 | arduboy.setCursor(11+menuPointerPos,19); 38 | arduboy.print(">"); 39 | arduboy.setCursor(15+menuPointerPos,19); 40 | arduboy.print(">"); 41 | arduboy.setTextColor(WHITE); 42 | arduboy.setCursor(13+menuPointerPos,19); 43 | arduboy.print(">"); 44 | arduboy.setCursor(16+27-menuPointerPos,18); 45 | }else{ 46 | arduboy.setCursor(16+27,22); 47 | } 48 | arduboy.print("collect"); 49 | arduboy.setTextSize(1); 50 | 51 | if(selectedOption==3){ 52 | arduboy.setTextSize(2); 53 | arduboy.setTextColor(BLACK); 54 | arduboy.setCursor(11+menuPointerPos,30); 55 | arduboy.print(">"); 56 | arduboy.setCursor(15+menuPointerPos,30); 57 | arduboy.print(">"); 58 | arduboy.setTextColor(WHITE); 59 | arduboy.setCursor(13+menuPointerPos,30); 60 | arduboy.print(">"); 61 | arduboy.setCursor(16+27-menuPointerPos,29); 62 | }else{ 63 | arduboy.setCursor(16+27,34); 64 | } 65 | arduboy.print("escape"); 66 | arduboy.setTextSize(1); 67 | 68 | if(selectedOption==4){ 69 | arduboy.setTextSize(2); 70 | arduboy.setTextColor(BLACK); 71 | arduboy.setCursor(11+menuPointerPos,45); 72 | arduboy.print(">"); 73 | arduboy.setCursor(15+menuPointerPos,45); 74 | arduboy.print(">"); 75 | arduboy.setTextColor(WHITE); 76 | arduboy.setCursor(13+menuPointerPos,45); 77 | arduboy.print(">"); 78 | arduboy.setCursor(16+27-menuPointerPos,44); 79 | }else{ 80 | arduboy.setCursor(16+27,46); 81 | } 82 | arduboy.print("night"); 83 | arduboy.setTextSize(1); 84 | 85 | /* ------- BUTTON 3 - UP ------- */ 86 | if(arduboy.pressed(UP_BUTTON)){ 87 | selectedOption--; 88 | if(selectedOption==0){ 89 | selectedOption=4; 90 | } 91 | tunes.tone(2200,5); 92 | delay(100); 93 | } 94 | /* ------- BUTTON 4 - DOWN ------- */ 95 | if(arduboy.pressed(DOWN_BUTTON)){ 96 | selectedOption++; 97 | if(selectedOption==5){ 98 | selectedOption=1; 99 | } 100 | tunes.tone(2200,5); 101 | delay(100); 102 | } 103 | 104 | /*if(arduboy.pressed(A_BUTTON)){//A 105 | //arduboy.fillCircle(20,30,5,WHITE); 106 | tunes.tone(2400,5); 107 | delay(100); 108 | }*/ 109 | // toggle sound 110 | if (arduboy.justPressed(A_BUTTON)) { 111 | if (arduboy.audio.enabled()) { 112 | arduboy.audio.off(); 113 | sound_enabled=!sound_enabled; 114 | tunes.tone(2400,5); 115 | delay(100); 116 | } 117 | else{ 118 | arduboy.audio.on(); 119 | sound_enabled=!sound_enabled; 120 | tunes.tone(2400,5); 121 | delay(100); 122 | } 123 | /* if(arduboy.justPressed(A_BUTTON)){//B 124 | //arduboy.fillCircle(50,30,5,WHITE); 125 | sound_enabled=!sound_enabled; 126 | tunes.tone(2400,5); 127 | delay(100); 128 | }*/ 129 | } 130 | if (arduboy.pressed(B_BUTTON)){//menu/start 131 | arduboy.generateRandomSeed(); 132 | gameMode=selectedOption; 133 | generateMaze(); 134 | if(selectedOption==2){ 135 | generate_collectables(); 136 | } 137 | delay(250); 138 | //button7State = digitalRead(button7Pin); 139 | } 140 | } 141 | 142 | void gameMenu(){ 143 | 144 | menuItemPointerAnimation(); 145 | 146 | arduboy.fillRect(24,8,80,45,WHITE); 147 | arduboy.fillRect(25,9,78,43,BLACK); 148 | arduboy.setTextColor(BLACK); 149 | arduboy.setTextBackground(WHITE); 150 | arduboy.fillRect(26,10,76,11,WHITE); 151 | arduboy.setCursor(48,12); 152 | arduboy.print("PAUSED"); 153 | arduboy.setTextColor(WHITE); 154 | arduboy.setTextBackground(BLACK); 155 | arduboy.setCursor(48,24); 156 | arduboy.print("resume"); 157 | if(selectedOption==1){ 158 | arduboy.setCursor(33+menuPointerPos,24); 159 | arduboy.print(">"); 160 | } 161 | arduboy.setCursor(48,34); 162 | arduboy.print("quit"); 163 | if(selectedOption==2){ 164 | arduboy.setCursor(33+menuPointerPos,34); 165 | arduboy.print(">"); 166 | } 167 | 168 | /* ------- BUTTON 3 - UP ------- */ 169 | if(arduboy.pressed(UP_BUTTON)){ 170 | selectedOption--; 171 | if(selectedOption==0){ 172 | selectedOption=2; 173 | } 174 | tunes.tone(2200,5); 175 | delay(100); 176 | } 177 | /* ------- BUTTON 4 - DOWN ------- */ 178 | if(arduboy.pressed(DOWN_BUTTON)){ 179 | selectedOption++; 180 | if(selectedOption==3){ 181 | selectedOption=1; 182 | } 183 | tunes.tone(2200,5); 184 | delay(100); 185 | } 186 | 187 | /* if(arduboy.pressed(A_BUTTON)){//A 188 | //arduboy.fillCircle(20,30,5,WHITE); 189 | tunes.tone(2400,5); 190 | delay(100); 191 | } 192 | // toggle sound 193 | if(arduboy.pressed(A_BUTTON)){//B 194 | //arduboy.fillCircle(50,30,5,WHITE); 195 | sound_enabled=!sound_enabled; 196 | tunes.tone(2400,5); 197 | delay(100); 198 | }*/ 199 | // toggle sound 200 | if (arduboy.justPressed(A_BUTTON)) { 201 | if (arduboy.audio.enabled()) { 202 | arduboy.audio.off(); 203 | sound_enabled=!sound_enabled; 204 | tunes.tone(2400,5); 205 | delay(100); 206 | } 207 | else{ 208 | arduboy.audio.on(); 209 | sound_enabled=!sound_enabled; 210 | tunes.tone(2400,5); 211 | delay(100); 212 | } 213 | } 214 | if (arduboy.pressed(B_BUTTON)){ 215 | if(selectedOption==1){ 216 | gamePaused=false; 217 | delay(100); 218 | // button7State = digitalRead(button7Pin); 219 | } 220 | if(selectedOption==2){ 221 | arduboy.clear(); 222 | asm volatile (" jmp 0"); 223 | } 224 | tunes.tone(1600,5); 225 | } 226 | } 227 | 228 | void menuItemPointerAnimation(){ 229 | if(menuPointerPosDir){ 230 | menuPointerPos++; 231 | if(menuPointerPos>=6){ 232 | menuPointerPos=6; 233 | menuPointerPosDir=!menuPointerPosDir; 234 | } 235 | }else{ 236 | menuPointerPos--; 237 | if(menuPointerPos<=-1){ 238 | menuPointerPos=0; 239 | menuPointerPosDir=!menuPointerPosDir; 240 | } 241 | } 242 | } 243 | 244 | void mainMenuAnimation(){ 245 | 246 | //4x2 32x32 each 247 | drawMenuBgPattern(mainMenuBgX-32,mainMenuBgY-32); 248 | drawMenuBgPattern(mainMenuBgX,mainMenuBgY-32); 249 | 250 | drawMenuBgPattern(mainMenuBgX-32,mainMenuBgY); 251 | drawMenuBgPattern(mainMenuBgX,mainMenuBgY); 252 | 253 | drawMenuBgPattern(mainMenuBgX-32,mainMenuBgY+32); 254 | drawMenuBgPattern(mainMenuBgX,mainMenuBgY+32); 255 | 256 | 257 | 258 | arduboy.fillRect(32,0,64,64,BLACK); 259 | arduboy.drawLine(31,0,31,63,WHITE); 260 | for(int shdw=0;shdw<63;shdw+=2){ 261 | arduboy.drawPixel(33,shdw,WHITE); 262 | } 263 | 264 | 265 | mainMenuBgX++; 266 | mainMenuBgY++; 267 | if(mainMenuBgX==32){ 268 | mainMenuBgX=0; 269 | mainMenuBgY=0; 270 | } 271 | 272 | 273 | } 274 | 275 | void drawMenuBgPattern(int x,int y){ 276 | //arduboy.drawPixel(x+5,y+5,WHITE); 277 | //arduboy.drawPixel(x+6,y+5,WHITE); 278 | //arduboy.drawPixel(x+6,y+6,WHITE); 279 | arduboy.drawBitmap(x, y, mazeBgTile , 32, 32, WHITE); 280 | } 281 | -------------------------------------------------------------------------------- /A-Maze-SH1106/A-Maze-SH1106.ino: -------------------------------------------------------------------------------- 1 | /* A-Maze 2 | by Alojz Jakob 3 | 4 | ************* A-MAZE *********** 5 | * Maze game for Arduino * 6 | ******************************** 7 | 8 | */ 9 | 10 | //#include 11 | //#include 12 | #include 13 | #include 14 | 15 | 16 | //#define OLED_RESET 4 17 | #define OLED_RESET 1 18 | Adafruit_SH1106 display(OLED_RESET); 19 | 20 | 21 | // 'title', 128x64px 22 | const unsigned char title1 [] PROGMEM = { 23 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 24 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 25 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 26 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 27 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 28 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xfc, 0x00, 0x00, 0x00, 0x00, 29 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x3e, 0x07, 0xe0, 0x07, 0xff, 0xc0, 30 | 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0x00, 0xe0, 0xa0, 0x3c, 0x0c, 0x00, 0x70, 31 | 0x00, 0x00, 0x7b, 0xc0, 0x00, 0x00, 0x20, 0x02, 0x18, 0x00, 0x9d, 0x44, 0x06, 0x0a, 0x44, 0x10, 32 | 0x00, 0x01, 0x80, 0x60, 0x00, 0x00, 0xf8, 0x05, 0x88, 0x00, 0xba, 0x90, 0x01, 0x1d, 0x10, 0x08, 33 | 0x00, 0x02, 0xf4, 0x10, 0x00, 0x01, 0xac, 0x0b, 0x08, 0x00, 0x95, 0x42, 0x03, 0x2a, 0x00, 0x08, 34 | 0x00, 0x05, 0xaa, 0x88, 0x00, 0x01, 0x66, 0x16, 0x88, 0x00, 0xc0, 0x00, 0x02, 0x79, 0x40, 0x08, 35 | 0x00, 0x0b, 0xd4, 0x04, 0x00, 0x02, 0xd3, 0x2d, 0x08, 0x0f, 0xc0, 0x00, 0x04, 0x54, 0x00, 0x10, 36 | 0x00, 0x16, 0xaa, 0xa2, 0x00, 0x02, 0xa9, 0xda, 0x88, 0x78, 0x7f, 0xfc, 0x08, 0xa8, 0x00, 0x20, 37 | 0x00, 0x2f, 0x40, 0x09, 0x00, 0x02, 0x54, 0x15, 0x48, 0x80, 0x10, 0x04, 0x08, 0xd5, 0x01, 0xc0, 38 | 0x00, 0x2a, 0xfc, 0x20, 0x80, 0x06, 0xa8, 0x0a, 0x09, 0x28, 0x08, 0x08, 0x11, 0x28, 0x7f, 0x00, 39 | 0x00, 0x5d, 0x87, 0x00, 0xc0, 0x04, 0x52, 0x00, 0x8a, 0xd2, 0x04, 0x10, 0x21, 0x44, 0x40, 0x00, 40 | 0x00, 0x49, 0x01, 0x80, 0x40, 0x05, 0x28, 0x04, 0x0d, 0x80, 0x06, 0x20, 0x62, 0xa0, 0x40, 0x00, 41 | 0x00, 0xa1, 0x00, 0x80, 0x40, 0x0c, 0x00, 0x00, 0x0b, 0x3c, 0x02, 0x50, 0x42, 0x00, 0x3f, 0x80, 42 | 0x00, 0x89, 0x00, 0xc0, 0x40, 0x08, 0x0a, 0x01, 0x12, 0xe6, 0x01, 0xa0, 0x84, 0x08, 0x01, 0xc0, 43 | 0x00, 0x81, 0x00, 0x40, 0xff, 0xfc, 0x00, 0x00, 0x25, 0x83, 0x81, 0x70, 0x84, 0x20, 0x50, 0xc0, 44 | 0x00, 0xa1, 0x00, 0x41, 0x80, 0x06, 0x02, 0x1c, 0x69, 0x00, 0x82, 0xa1, 0x88, 0x00, 0x00, 0xc0, 45 | 0x00, 0x84, 0x80, 0xd1, 0x75, 0x42, 0x00, 0x36, 0x45, 0x01, 0x85, 0x41, 0x08, 0x10, 0x00, 0xc0, 46 | 0x01, 0x00, 0x80, 0x81, 0x6a, 0x12, 0x00, 0x6a, 0x91, 0x01, 0x0a, 0x81, 0x10, 0x00, 0x01, 0x80, 47 | 0x01, 0x00, 0x41, 0xa1, 0x55, 0x46, 0x18, 0x47, 0x05, 0x03, 0x11, 0x49, 0x10, 0x07, 0xff, 0x00, 48 | 0x01, 0x00, 0x3e, 0x00, 0x80, 0x0c, 0x1e, 0x85, 0x11, 0x82, 0x34, 0x01, 0x10, 0x04, 0x00, 0x00, 49 | 0x01, 0x00, 0x00, 0xa0, 0x7f, 0xf8, 0x13, 0x06, 0x00, 0xc2, 0x20, 0x81, 0x90, 0x04, 0x00, 0x00, 50 | 0x01, 0x00, 0x02, 0x00, 0x20, 0x20, 0x20, 0x06, 0x00, 0x34, 0xa2, 0x00, 0x70, 0x04, 0x00, 0x00, 51 | 0x01, 0x00, 0x00, 0x00, 0x20, 0x20, 0x20, 0x04, 0x00, 0x18, 0x20, 0x00, 0x1f, 0x87, 0x00, 0x00, 52 | 0x01, 0x00, 0x00, 0x00, 0x20, 0x20, 0x40, 0x04, 0x03, 0x82, 0x30, 0x00, 0x00, 0xc1, 0xf0, 0x00, 53 | 0x01, 0x00, 0x0c, 0x00, 0x20, 0x20, 0x40, 0x08, 0x04, 0xc0, 0x18, 0x00, 0x00, 0x44, 0x18, 0x00, 54 | 0x01, 0x00, 0x3f, 0x00, 0x20, 0x60, 0x80, 0x08, 0x08, 0x30, 0x0c, 0x00, 0x00, 0x40, 0x08, 0x00, 55 | 0x01, 0x00, 0x21, 0x80, 0x20, 0x41, 0x80, 0x10, 0x10, 0x10, 0x06, 0x00, 0x00, 0x40, 0x08, 0x00, 56 | 0x01, 0x80, 0x60, 0x40, 0x20, 0x41, 0x00, 0x20, 0x30, 0x08, 0x01, 0x00, 0x00, 0x40, 0x30, 0x00, 57 | 0x00, 0xc0, 0x40, 0x60, 0x40, 0x41, 0x00, 0x20, 0x50, 0x04, 0x00, 0x80, 0x00, 0x40, 0x60, 0x00, 58 | 0x00, 0x60, 0x80, 0x20, 0x80, 0x42, 0x00, 0x40, 0x90, 0x03, 0x80, 0xf8, 0x00, 0x7f, 0xc0, 0x00, 59 | 0x00, 0x3b, 0x80, 0x31, 0x80, 0x62, 0x00, 0x41, 0x20, 0x00, 0xc3, 0x0f, 0x80, 0x80, 0x00, 0x00, 60 | 0x00, 0x0e, 0x00, 0x1e, 0x00, 0x1c, 0x00, 0x42, 0x20, 0x00, 0x7e, 0x00, 0xff, 0x00, 0x00, 0x00, 61 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3d, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 62 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 63 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 64 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 65 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 66 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 67 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 68 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 69 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 70 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 71 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 72 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 73 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf3, 0x21, 0xcc, 0x38, 0x17, 0xc0, 0x00, 74 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xcb, 0x23, 0x2c, 0x64, 0x10, 0xc0, 0x00, 75 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf3, 0xa3, 0x2c, 0x64, 0x11, 0x80, 0x00, 76 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc9, 0xc3, 0xec, 0x65, 0x93, 0x00, 0x00, 77 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc8, 0x83, 0x2c, 0x65, 0x96, 0x00, 0x00, 78 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x83, 0x2f, 0x38, 0xe7, 0xc0, 0x00, 79 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 80 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 81 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 82 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 83 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 84 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 85 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 86 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 87 | }; 88 | // 'title2', 128x64px 89 | const unsigned char title2 [] PROGMEM = { 90 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 91 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 92 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 93 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 94 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 95 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xa8, 0x00, 0x00, 0x00, 0x00, 96 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x14, 0x05, 0x40, 0x05, 0x55, 0x40, 97 | 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0xa0, 0xa0, 0x28, 0x08, 0x00, 0x20, 98 | 0x00, 0x00, 0x51, 0x40, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x15, 0x44, 0x04, 0x00, 0x44, 0x10, 99 | 0x00, 0x00, 0x80, 0x20, 0x00, 0x00, 0xa8, 0x00, 0x88, 0x00, 0xaa, 0x80, 0x00, 0x08, 0x00, 0x08, 100 | 0x00, 0x00, 0x54, 0x10, 0x00, 0x01, 0x04, 0x01, 0x00, 0x00, 0x15, 0x40, 0x01, 0x00, 0x00, 0x00, 101 | 0x00, 0x00, 0xaa, 0x88, 0x00, 0x00, 0x22, 0x02, 0x88, 0x00, 0x80, 0x00, 0x02, 0x28, 0x00, 0x08, 102 | 0x00, 0x01, 0x54, 0x04, 0x00, 0x00, 0x51, 0x05, 0x00, 0x05, 0x40, 0x00, 0x04, 0x54, 0x00, 0x10, 103 | 0x00, 0x02, 0xaa, 0xa2, 0x00, 0x02, 0xa8, 0x8a, 0x88, 0x28, 0x2a, 0xa8, 0x08, 0xa8, 0x00, 0x20, 104 | 0x00, 0x05, 0x40, 0x01, 0x00, 0x00, 0x54, 0x15, 0x40, 0x00, 0x10, 0x04, 0x00, 0x55, 0x01, 0x40, 105 | 0x00, 0x2a, 0xa8, 0x20, 0x80, 0x02, 0xa8, 0x0a, 0x08, 0x28, 0x08, 0x08, 0x00, 0x28, 0x2a, 0x00, 106 | 0x00, 0x55, 0x05, 0x00, 0x40, 0x04, 0x50, 0x00, 0x00, 0x50, 0x04, 0x10, 0x01, 0x44, 0x40, 0x00, 107 | 0x00, 0x08, 0x00, 0x80, 0x00, 0x00, 0x28, 0x00, 0x08, 0x80, 0x02, 0x20, 0x22, 0xa0, 0x00, 0x00, 108 | 0x00, 0x01, 0x00, 0x00, 0x40, 0x04, 0x00, 0x00, 0x01, 0x14, 0x00, 0x50, 0x40, 0x00, 0x15, 0x00, 109 | 0x00, 0x88, 0x00, 0x80, 0x00, 0x08, 0x0a, 0x00, 0x02, 0xa2, 0x00, 0xa0, 0x80, 0x08, 0x00, 0x80, 110 | 0x00, 0x01, 0x00, 0x40, 0x55, 0x54, 0x00, 0x00, 0x05, 0x01, 0x01, 0x50, 0x04, 0x00, 0x50, 0x40, 111 | 0x00, 0xa0, 0x00, 0x00, 0x80, 0x02, 0x02, 0x08, 0x28, 0x00, 0x82, 0xa0, 0x88, 0x00, 0x00, 0x80, 112 | 0x00, 0x04, 0x00, 0x51, 0x55, 0x40, 0x00, 0x14, 0x45, 0x01, 0x05, 0x41, 0x00, 0x10, 0x00, 0x40, 113 | 0x00, 0x00, 0x80, 0x80, 0x2a, 0x02, 0x00, 0x2a, 0x80, 0x00, 0x0a, 0x80, 0x00, 0x00, 0x00, 0x80, 114 | 0x01, 0x00, 0x41, 0x01, 0x55, 0x44, 0x10, 0x45, 0x05, 0x01, 0x11, 0x41, 0x10, 0x05, 0x55, 0x00, 115 | 0x00, 0x00, 0x2a, 0x00, 0x80, 0x08, 0x0a, 0x80, 0x00, 0x82, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 116 | 0x01, 0x00, 0x00, 0x00, 0x55, 0x50, 0x11, 0x04, 0x00, 0x40, 0x00, 0x01, 0x10, 0x04, 0x00, 0x00, 117 | 0x00, 0x00, 0x02, 0x00, 0x20, 0x20, 0x20, 0x02, 0x00, 0x20, 0xa2, 0x00, 0x20, 0x00, 0x00, 0x00, 118 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x10, 0x00, 0x00, 0x15, 0x05, 0x00, 0x00, 119 | 0x00, 0x00, 0x00, 0x00, 0x20, 0x20, 0x00, 0x00, 0x02, 0x82, 0x20, 0x00, 0x00, 0x80, 0xa0, 0x00, 120 | 0x01, 0x00, 0x04, 0x00, 0x00, 0x00, 0x40, 0x00, 0x04, 0x40, 0x10, 0x00, 0x00, 0x44, 0x10, 0x00, 121 | 0x00, 0x00, 0x2a, 0x00, 0x20, 0x20, 0x80, 0x08, 0x08, 0x20, 0x08, 0x00, 0x00, 0x00, 0x08, 0x00, 122 | 0x01, 0x00, 0x01, 0x00, 0x00, 0x41, 0x00, 0x10, 0x10, 0x10, 0x04, 0x00, 0x00, 0x40, 0x00, 0x00, 123 | 0x00, 0x80, 0x20, 0x00, 0x20, 0x00, 0x00, 0x20, 0x20, 0x08, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 124 | 0x00, 0x40, 0x40, 0x40, 0x40, 0x41, 0x00, 0x00, 0x50, 0x04, 0x00, 0x00, 0x00, 0x40, 0x40, 0x00, 125 | 0x00, 0x20, 0x80, 0x20, 0x80, 0x02, 0x00, 0x00, 0x80, 0x02, 0x80, 0xa8, 0x00, 0x2a, 0x80, 0x00, 126 | 0x00, 0x11, 0x00, 0x11, 0x00, 0x40, 0x00, 0x41, 0x00, 0x00, 0x41, 0x05, 0x00, 0x00, 0x00, 0x00, 127 | 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x08, 0x00, 0x02, 0x20, 0x00, 0x2a, 0x00, 0xaa, 0x00, 0x00, 0x00, 128 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x15, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 129 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 130 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 131 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 132 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 133 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 134 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 135 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 136 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 137 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 138 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 139 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 140 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x51, 0x01, 0x44, 0x10, 0x15, 0x40, 0x00, 141 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8a, 0x22, 0x28, 0x20, 0x00, 0x80, 0x00, 142 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x51, 0x01, 0x04, 0x44, 0x11, 0x00, 0x00, 143 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0x82, 0xa8, 0x20, 0x82, 0x00, 0x00, 144 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x01, 0x04, 0x45, 0x14, 0x00, 0x00, 145 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x82, 0x2a, 0x28, 0xa2, 0x80, 0x00, 146 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 147 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 148 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 149 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 150 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 151 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 152 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 153 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 154 | }; 155 | 156 | // 'title3', 128x64px 157 | const unsigned char title3 [] PROGMEM = { 158 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 159 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 160 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 161 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 162 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 163 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 164 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x01, 0x00, 0x01, 0x11, 0x00, 165 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x80, 0xa0, 0x08, 0x08, 0x00, 0x00, 166 | 0x00, 0x00, 0x11, 0x40, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x15, 0x44, 0x00, 0x00, 0x44, 0x00, 167 | 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x88, 0x00, 0x80, 0x00, 0x2a, 0x80, 0x00, 0x08, 0x00, 0x08, 168 | 0x00, 0x00, 0x54, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x15, 0x40, 0x01, 0x00, 0x00, 0x00, 169 | 0x00, 0x00, 0xaa, 0x80, 0x00, 0x00, 0x20, 0x02, 0x88, 0x00, 0x80, 0x00, 0x00, 0x28, 0x00, 0x08, 170 | 0x00, 0x01, 0x54, 0x04, 0x00, 0x00, 0x51, 0x05, 0x00, 0x05, 0x40, 0x00, 0x00, 0x54, 0x00, 0x00, 171 | 0x00, 0x02, 0xaa, 0xa0, 0x00, 0x02, 0xa8, 0x0a, 0x80, 0x28, 0x22, 0x20, 0x08, 0xa8, 0x00, 0x00, 172 | 0x00, 0x05, 0x40, 0x01, 0x00, 0x00, 0x54, 0x15, 0x40, 0x00, 0x10, 0x04, 0x00, 0x55, 0x01, 0x00, 173 | 0x00, 0x0a, 0xa8, 0x20, 0x00, 0x02, 0xa8, 0x0a, 0x08, 0x28, 0x08, 0x00, 0x00, 0x28, 0x20, 0x00, 174 | 0x00, 0x15, 0x05, 0x00, 0x40, 0x00, 0x50, 0x00, 0x00, 0x50, 0x04, 0x00, 0x01, 0x44, 0x40, 0x00, 175 | 0x00, 0x08, 0x00, 0x80, 0x00, 0x00, 0x28, 0x00, 0x00, 0x80, 0x02, 0x20, 0x22, 0xa0, 0x00, 0x00, 176 | 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x01, 0x14, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 177 | 0x00, 0x08, 0x00, 0x80, 0x00, 0x00, 0x0a, 0x00, 0x02, 0xa0, 0x00, 0x20, 0x00, 0x08, 0x00, 0x00, 178 | 0x00, 0x01, 0x00, 0x40, 0x44, 0x00, 0x00, 0x00, 0x05, 0x01, 0x00, 0x50, 0x04, 0x00, 0x00, 0x00, 179 | 0x00, 0xa0, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x28, 0x00, 0x02, 0xa0, 0x88, 0x00, 0x00, 0x00, 180 | 0x00, 0x04, 0x00, 0x51, 0x55, 0x40, 0x00, 0x10, 0x04, 0x00, 0x01, 0x40, 0x00, 0x10, 0x00, 0x40, 181 | 0x00, 0x00, 0x80, 0x80, 0x2a, 0x02, 0x00, 0x02, 0x00, 0x00, 0x02, 0x80, 0x00, 0x00, 0x00, 0x00, 182 | 0x00, 0x00, 0x41, 0x00, 0x55, 0x40, 0x00, 0x41, 0x05, 0x01, 0x01, 0x40, 0x10, 0x04, 0x11, 0x00, 183 | 0x00, 0x00, 0x2a, 0x00, 0x80, 0x08, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 184 | 0x01, 0x00, 0x00, 0x00, 0x11, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x04, 0x00, 0x00, 185 | 0x00, 0x00, 0x02, 0x00, 0x00, 0x20, 0x20, 0x02, 0x00, 0x00, 0x82, 0x00, 0x20, 0x00, 0x00, 0x00, 186 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 187 | 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x82, 0x20, 0x00, 0x00, 0x80, 0x20, 0x00, 188 | 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 189 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 190 | 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 191 | 0x00, 0x80, 0x20, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 192 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x10, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 193 | 0x00, 0x20, 0x80, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x80, 0x00, 194 | 0x00, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 195 | 0x00, 0x0a, 0x00, 0x08, 0x00, 0x08, 0x00, 0x02, 0x20, 0x00, 0x22, 0x00, 0x82, 0x00, 0x00, 0x00, 196 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 197 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 198 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 199 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 200 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 201 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 202 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 203 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 204 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 205 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 206 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 207 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 208 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x51, 0x01, 0x44, 0x10, 0x15, 0x40, 0x00, 209 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8a, 0x22, 0x28, 0x20, 0x00, 0x80, 0x00, 210 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x51, 0x01, 0x04, 0x44, 0x11, 0x00, 0x00, 211 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0x82, 0xa8, 0x20, 0x82, 0x00, 0x00, 212 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x01, 0x04, 0x45, 0x14, 0x00, 0x00, 213 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x82, 0x2a, 0x28, 0xa2, 0x80, 0x00, 214 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 215 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 216 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 217 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 218 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 219 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 220 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 221 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 222 | }; 223 | 224 | // 'title4', 128x64px 225 | const unsigned char title4 [] PROGMEM = { 226 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 227 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 228 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 229 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 230 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 231 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 232 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x01, 0x00, 0x01, 0x11, 0x00, 233 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x80, 0x00, 0x08, 0x08, 0x00, 0x00, 234 | 0x00, 0x00, 0x11, 0x40, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x44, 0x00, 235 | 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x88, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x08, 0x00, 0x08, 236 | 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 237 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x08, 238 | 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x01, 0x00, 0x00, 0x05, 0x40, 0x00, 0x00, 0x40, 0x00, 0x00, 239 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x28, 0x22, 0x20, 0x08, 0x80, 0x00, 0x00, 240 | 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x04, 0x00, 0x00, 0x01, 0x00, 241 | 0x00, 0x00, 0x28, 0x00, 0x00, 0x02, 0x00, 0x00, 0x08, 0x20, 0x08, 0x00, 0x00, 0x00, 0x20, 0x00, 242 | 0x00, 0x10, 0x05, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x40, 0x04, 0x00, 0x01, 0x04, 0x40, 0x00, 243 | 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x20, 0x22, 0x00, 0x00, 0x00, 244 | 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 245 | 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 246 | 0x00, 0x01, 0x00, 0x40, 0x44, 0x00, 0x00, 0x00, 0x04, 0x01, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 247 | 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x02, 0x00, 0x88, 0x00, 0x00, 0x00, 248 | 0x00, 0x00, 0x00, 0x41, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x01, 0x00, 0x00, 0x10, 0x00, 0x40, 249 | 0x00, 0x00, 0x80, 0x00, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 250 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x41, 0x05, 0x01, 0x01, 0x00, 0x10, 0x04, 0x11, 0x00, 251 | 0x00, 0x00, 0x22, 0x00, 0x80, 0x08, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 252 | 0x01, 0x00, 0x00, 0x00, 0x11, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x04, 0x00, 0x00, 253 | 0x00, 0x00, 0x02, 0x00, 0x00, 0x20, 0x20, 0x02, 0x00, 0x00, 0x82, 0x00, 0x20, 0x00, 0x00, 0x00, 254 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 255 | 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x82, 0x20, 0x00, 0x00, 0x80, 0x20, 0x00, 256 | 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 257 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 258 | 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 259 | 0x00, 0x80, 0x20, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 260 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x10, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 261 | 0x00, 0x20, 0x80, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x80, 0x00, 262 | 0x00, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 263 | 0x00, 0x0a, 0x00, 0x08, 0x00, 0x08, 0x00, 0x02, 0x20, 0x00, 0x22, 0x00, 0x82, 0x00, 0x00, 0x00, 264 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 265 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 266 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 267 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 268 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 269 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 270 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 271 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 272 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 273 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 274 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 275 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 276 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x10, 0x11, 0x40, 0x00, 277 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x22, 0x20, 0x00, 0x00, 0x00, 0x00, 278 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x44, 0x01, 0x00, 0x00, 279 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x88, 0x00, 0x00, 0x00, 0x00, 280 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 281 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x82, 0x22, 0x20, 0x22, 0x80, 0x00, 282 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 283 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 284 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 285 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 286 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 287 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 288 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 289 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 290 | }; 291 | 292 | 293 | 294 | const int8_t button1Pin = 9; //LEFT 295 | const int8_t button2Pin = 8; //RIGHT 296 | const int8_t button3Pin = 7; //UP 297 | const int8_t button4Pin = 6; //DOWN 298 | const int8_t button5Pin = 5; //A 299 | const int8_t button6Pin = 4; //B 300 | const int8_t button7Pin = 2; //MENU 301 | 302 | const int8_t sound = 3; 303 | bool sound_enabled=true; 304 | const int8_t ledPin = 10; 305 | 306 | int8_t button1State = 0; 307 | int8_t button2State = 0; 308 | int8_t button3State = 0; 309 | int8_t button4State = 0; 310 | int8_t button5State = 0; 311 | int8_t button6State = 0; 312 | int8_t button7State = 0; 313 | 314 | 315 | #define ACTIVATED LOW 316 | 317 | #define DELAYMULTIPLIER 0 318 | 319 | 320 | 321 | 322 | int8_t posx=0, posy=2; // Where you are in the Maze 323 | 324 | int8_t illuminatedRow=0; 325 | int8_t blinkPlayer=1; 326 | int8_t wallPhase=1; 327 | 328 | int8_t level=1; 329 | 330 | int8_t gameMode=0; 331 | int8_t selectedOption=1; 332 | int8_t menuPointerPos=0; 333 | bool menuPointerPosDir=false,gamePaused=false,escapeGameOver=false; 334 | 335 | void setup() { 336 | 337 | //Serial.begin(9600); 338 | 339 | pinMode(button1Pin, INPUT); 340 | pinMode(button2Pin, INPUT); 341 | pinMode(button3Pin, INPUT); 342 | pinMode(button4Pin, INPUT); 343 | pinMode(button5Pin, INPUT); 344 | pinMode(button6Pin, INPUT); 345 | pinMode(button7Pin, INPUT); 346 | 347 | digitalWrite(button1Pin, HIGH); 348 | digitalWrite(button2Pin, HIGH); 349 | digitalWrite(button3Pin, HIGH); 350 | digitalWrite(button4Pin, HIGH); 351 | digitalWrite(button5Pin, HIGH); 352 | digitalWrite(button6Pin, HIGH); 353 | digitalWrite(button7Pin, HIGH); 354 | // or just 355 | // pinMode(button1Pin, INPUT_PULLUP) 356 | // etc 357 | 358 | pinMode(sound, OUTPUT); 359 | pinMode(ledPin, OUTPUT); 360 | 361 | pinMode(13,OUTPUT); 362 | 363 | randomSeed(analogRead(A0)+readVcc()); 364 | 365 | display.begin(SH1106_SWITCHCAPVCC, 0x3C); 366 | //display.begin(SH1106_SWITCHCAPVCC, 0x78); 367 | display.clearDisplay(); 368 | display.display(); 369 | 370 | delay(random(2,2000)); 371 | 372 | display.clearDisplay(); 373 | 374 | // splash 375 | display.setTextColor(WHITE); 376 | //display.println(F("jakobdesign presents")); 377 | //display.print(F(" generating maze...")); 378 | display.drawBitmap(0, 10, title4 , 128, 64, WHITE); 379 | display.display(); 380 | digitalWrite(ledPin, HIGH); 381 | aj_tone(sound,2200,5); 382 | digitalWrite(ledPin, LOW); 383 | delay(100); 384 | display.clearDisplay(); 385 | display.drawBitmap(0, 5, title3 , 128, 64, WHITE); 386 | display.display(); 387 | digitalWrite(ledPin, HIGH); 388 | aj_tone(sound,2200,5); 389 | digitalWrite(ledPin, LOW); 390 | delay(100); 391 | display.clearDisplay(); 392 | display.drawBitmap(0, 2, title2 , 128, 64, WHITE); 393 | display.display(); 394 | digitalWrite(ledPin, HIGH); 395 | aj_tone(sound,2200,5); 396 | digitalWrite(ledPin, LOW); 397 | delay(100); 398 | display.clearDisplay(); 399 | display.drawBitmap(0, 0, title1 , 128, 64, WHITE); 400 | display.display(); 401 | digitalWrite(ledPin, HIGH); 402 | aj_tone(sound,2200,5); 403 | digitalWrite(ledPin, LOW); 404 | delay(3000); 405 | display.clearDisplay(); 406 | display.drawBitmap(0, 2, title2 , 128, 64, WHITE); 407 | display.display(); 408 | digitalWrite(ledPin, HIGH); 409 | aj_tone(sound,2200,5); 410 | digitalWrite(ledPin, LOW); 411 | delay(100); 412 | display.clearDisplay(); 413 | display.drawBitmap(0, 5, title3 , 128, 64, WHITE); 414 | display.display(); 415 | digitalWrite(ledPin, HIGH); 416 | aj_tone(sound,2200,5); 417 | digitalWrite(ledPin, LOW); 418 | delay(100); 419 | display.clearDisplay(); 420 | display.drawBitmap(0, 10, title4 , 128, 64, WHITE); 421 | display.display(); 422 | digitalWrite(ledPin, HIGH); 423 | aj_tone(sound,2200,5); 424 | digitalWrite(ledPin, LOW); 425 | delay(100); 426 | display.clearDisplay(); 427 | } 428 | 429 | 430 | void loop() { 431 | 432 | button1State = digitalRead(button1Pin); 433 | button2State = digitalRead(button2Pin); 434 | button3State = digitalRead(button3Pin); 435 | button4State = digitalRead(button4Pin); 436 | button5State = digitalRead(button5Pin); 437 | button6State = digitalRead(button6Pin); 438 | button7State = digitalRead(button7Pin); 439 | 440 | display.clearDisplay(); 441 | 442 | if(gameMode==0){ 443 | 444 | //display.drawBitmap(0, -20, title1 , 128, 64, WHITE); 445 | mainMenu(); 446 | displayBattery(WHITE); 447 | 448 | } 449 | if(gameMode==1){ 450 | walker(); 451 | displayBattery(WHITE); 452 | if(!gamePaused){ 453 | selectedOption=1; 454 | } 455 | } 456 | if(gameMode==2){ 457 | collector(); 458 | displayBattery(WHITE); 459 | if(!gamePaused){ 460 | selectedOption=1; 461 | } 462 | } 463 | if(gameMode==3){ 464 | escaper(); 465 | displayBattery(WHITE); 466 | if(!gamePaused and !escapeGameOver){ 467 | selectedOption=1; 468 | } 469 | } 470 | if(gameMode==4){ 471 | dark(); 472 | displayBattery(WHITE); 473 | if(!gamePaused){ 474 | selectedOption=1; 475 | } 476 | } 477 | 478 | displayIndicators(WHITE); 479 | 480 | display.display(); 481 | delay(10*DELAYMULTIPLIER); 482 | 483 | } 484 | 485 | void displayIndicators(uint8_t font){ 486 | //speaker 487 | display.drawLine(103,1,103,6,font); 488 | display.drawLine(102,1,102,6,font); 489 | display.drawLine(101,2,101,5,font); 490 | display.drawLine(100,3,100,4,font); 491 | display.drawLine(99,3,99,4,font); 492 | if(sound_enabled){ 493 | display.drawPixel(105,2,font); 494 | display.drawPixel(106,3,font); 495 | display.drawPixel(106,4,font); 496 | display.drawPixel(105,5,font); 497 | } 498 | //... 499 | } 500 | 501 | 502 | void displayBattery(uint8_t font){ 503 | 504 | display.setTextColor(font); 505 | display.setCursor(82,0); 506 | //display.print("vcc: "); 507 | int batt=readVcc(); 508 | //display.print(batt); 509 | 510 | display.drawLine(114,1,125,1,font); 511 | display.drawLine(114,6,125,6,font); 512 | display.drawLine(114,1,114,6,font); 513 | display.drawLine(125,1,125,6,font); 514 | display.drawLine(126,3,126,4,font); 515 | 516 | if(batt>4300){ 517 | display.drawLine(109,2,109,1,font); 518 | display.drawLine(111,2,111,1,font); 519 | display.drawLine(108,3,112,3,font); 520 | display.drawLine(108,4,112,4,font); 521 | display.drawPixel(110,5,font); 522 | display.drawPixel(111,6,font); 523 | display.drawPixel(112,6,font); 524 | display.drawPixel(113,6,font); 525 | } 526 | if(batt>2900){ 527 | display.drawLine(116,3,116,4,font); 528 | display.drawLine(117,3,117,4,font); 529 | } 530 | if(batt>3000){ 531 | display.drawLine(119,3,119,4,font); 532 | display.drawLine(120,3,120,4,font); 533 | } 534 | if(batt>3100){ 535 | display.drawLine(122,3,122,4,font); 536 | display.drawLine(123,3,123,4,font); 537 | } 538 | 539 | } 540 | 541 | int readVcc() { 542 | int result; // Read 1.1V reference against AVcc 543 | ADMUX = _BV(REFS0) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1); 544 | delay(2); // Wait for Vref to settle 545 | ADCSRA |= _BV(ADSC); // Convert 546 | while (bit_is_set(ADCSRA,ADSC)); 547 | result = ADCL; 548 | result |= ADCH<<8; 549 | result = 1126400L / result; 550 | // Back-calculate AVcc in mV 551 | return result; 552 | } 553 | 554 | void aj_tone(uint8_t pin,int freq,int duration){ 555 | if(sound_enabled){ 556 | tone(pin,freq,duration); 557 | } 558 | } 559 | -------------------------------------------------------------------------------- /A-Maze-SH1106/a-maze-01-maze.ino: -------------------------------------------------------------------------------- 1 | #define MAZEHEIGHT 31 2 | #define MAZEWIDTH 15 3 | 4 | uint16_t Maze[] = { 5 | 0b1101111111111111, 6 | 0b1100000000000001, 7 | 0b1101010101010101, 8 | 0b1100000000000001, 9 | 0b1101010101010101, 10 | 0b1100000000000001, 11 | 0b1101010101010101, 12 | 0b1100000000000001, 13 | 0b1101010101010101, 14 | 0b1100000000000001, 15 | 0b1101010101010101, 16 | 0b1100000000000001, 17 | 0b1101010101010101, 18 | 0b1100000000000001, 19 | 0b1101010101010101, 20 | 0b1100000000000001, 21 | 0b1101010101010101, 22 | 0b1100000000000001, 23 | 0b1101010101010101, 24 | 0b1100000000000001, 25 | 0b1101010101010101, 26 | 0b1100000000000001, 27 | 0b1101010101010101, 28 | 0b1100000000000001, 29 | 0b1101010101010101, 30 | 0b1100000000000001, 31 | 0b1101010101010101, 32 | 0b1100000000000001, 33 | 0b1101010101010101, 34 | 0b1100000000000001, 35 | 0b1111111111111101, 36 | 0b1100000000000101,//exit 37 | 0b0000000000000000 38 | }; 39 | 40 | uint8_t geni, genj, genk, genval, genmod; 41 | int8_t genx, geny; 42 | 43 | 44 | 45 | void drawMaze(){ 46 | uint8_t i, j; 47 | bool wall; 48 | 49 | for(i=0;i<=MAZEHEIGHT;i++){ 50 | for(j=0;j<=MAZEWIDTH;j++){ 51 | wall=readPixel(i,j); 52 | if(wall and j>1){ 53 | 54 | //walls 55 | if(gameMode!=4){ 56 | //light mode 57 | if(wallPhase==1){ 58 | if(illuminatedRow>=i){ 59 | display.drawPixel(i*4,j*4+2,WHITE); 60 | display.drawPixel(i*4,j*4+2+2,WHITE); 61 | display.drawPixel(i*4+1,j*4+1+2,WHITE); 62 | display.drawPixel(i*4+1,j*4+3+2,WHITE); 63 | display.drawPixel(i*4+2,j*4+2+2,WHITE); 64 | display.drawPixel(i*4+2,j*4+4+2,WHITE); 65 | display.drawPixel(i*4+3,j*4+1+2,WHITE); 66 | display.drawPixel(i*4+3,j*4+3+2,WHITE); 67 | }else{ 68 | display.drawPixel(i*4+2,j*4+2+2,WHITE); 69 | } 70 | }else if(wallPhase==2){ 71 | if(illuminatedRow>=i){ 72 | display.fillRect(i*4,j*4+2,4,4,WHITE); 73 | }else{ 74 | //display.drawRect(i*4,j*4+1,4,4,WHITE); 75 | display.drawPixel(i*4,j*4+2,WHITE); 76 | display.drawPixel(i*4,j*4+2+2,WHITE); 77 | display.drawPixel(i*4+1,j*4+1+2,WHITE); 78 | display.drawPixel(i*4+1,j*4+3+2,WHITE); 79 | display.drawPixel(i*4+2,j*4+2+2,WHITE); 80 | display.drawPixel(i*4+2,j*4+4+2,WHITE); 81 | display.drawPixel(i*4+3,j*4+1+2,WHITE); 82 | display.drawPixel(i*4+3,j*4+3+2,WHITE); 83 | } 84 | }else if(wallPhase==3){ 85 | display.fillRect(i*4,j*4+2,4,4,WHITE); 86 | } 87 | if(wallPhase==3 and (i==posx or j==posy) and j!=0){ 88 | //draw crosshair 89 | display.drawPixel(i*4+2,j*4+2+2,BLACK); 90 | } 91 | }else{ 92 | //dark mode 93 | 94 | if( 95 | ( 96 | (i==posx-1 and j==posy-1) 97 | or (i==posx-1 and j==posy) 98 | or (i==posx and j==posy-1) 99 | or (i==posx+1 and j==posy+1) 100 | or (i==posx+1 and j==posy) 101 | or (i==posx and j==posy+1) 102 | or (i==posx-1 and j==posy+1) 103 | or (i==posx+1 and j==posy-1) 104 | ) 105 | 106 | ){ 107 | display.fillRect(i*4,j*4+2,4,4,WHITE); 108 | } 109 | 110 | if( 111 | ( 112 | (i==posx-2 and j==posy-2) 113 | or (i==posx-2 and j==posy-1) 114 | or (i==posx-2 and j==posy) 115 | or (i==posx-2 and j==posy+1) 116 | or (i==posx-2 and j==posy+2) 117 | or (i==posx and j==posy-2) 118 | or (i==posx and j==posy+2) 119 | or (i==posx-1 and j==posy-2) 120 | or (i==posx-1 and j==posy+2) 121 | or (i==posx+2 and j==posy+2) 122 | or (i==posx+2 and j==posy+1) 123 | or (i==posx+2 and j==posy) 124 | or (i==posx+2 and j==posy-1) 125 | or (i==posx+2 and j==posy-2) 126 | or (i==posx+1 and j==posy+2) 127 | or (i==posx+1 and j==posy-2) 128 | ) 129 | 130 | ){ 131 | display.drawPixel(i*4,j*4+2,WHITE); 132 | display.drawPixel(i*4,j*4+2+2,WHITE); 133 | display.drawPixel(i*4+1,j*4+1+2,WHITE); 134 | display.drawPixel(i*4+1,j*4+3+2,WHITE); 135 | display.drawPixel(i*4+2,j*4+2+2,WHITE); 136 | display.drawPixel(i*4+2,j*4+4+2,WHITE); 137 | display.drawPixel(i*4+3,j*4+1+2,WHITE); 138 | display.drawPixel(i*4+3,j*4+3+2,WHITE); 139 | } 140 | if( 141 | ( 142 | (i==posx-3 and j==posy-3) 143 | or (i==posx-3 and j==posy-2) 144 | or (i==posx-3 and j==posy-1) 145 | or (i==posx-3 and j==posy) 146 | or (i==posx-3 and j==posy+1) 147 | or (i==posx-3 and j==posy+2) 148 | or (i==posx-3 and j==posy+3) 149 | 150 | or (i==posx-2 and j==posy+3) 151 | or (i==posx-1 and j==posy+3) 152 | or (i==posx and j==posy+3) 153 | or (i==posx+1 and j==posy+3) 154 | or (i==posx+2 and j==posy+3) 155 | or (i==posx+3 and j==posy+3) 156 | 157 | or (i==posx+3 and j==posy+2) 158 | or (i==posx+3 and j==posy+1) 159 | or (i==posx+3 and j==posy) 160 | or (i==posx+3 and j==posy-1) 161 | or (i==posx+3 and j==posy-2) 162 | or (i==posx+3 and j==posy-3) 163 | 164 | or (i==posx+2 and j==posy-3) 165 | or (i==posx+1 and j==posy-3) 166 | or (i==posx and j==posy-3) 167 | or (i==posx-1 and j==posy-3) 168 | or (i==posx-2 and j==posy-3) 169 | ) 170 | 171 | ){ 172 | display.drawPixel(i*4+1,j*4+1+2,WHITE); 173 | display.drawPixel(i*4+3,j*4+3+2,WHITE); 174 | display.drawPixel(i*4+1,j*4+3+2,WHITE); 175 | display.drawPixel(i*4+3,j*4+1+2,WHITE); 176 | } 177 | if( 178 | ( 179 | (i==posx-4 and j==posy-4) 180 | or (i==posx-4 and j==posy-3) 181 | or (i==posx-4 and j==posy-2) 182 | or (i==posx-4 and j==posy-1) 183 | or (i==posx-4 and j==posy) 184 | or (i==posx-4 and j==posy+1) 185 | or (i==posx-4 and j==posy+2) 186 | or (i==posx-4 and j==posy+3) 187 | or (i==posx-4 and j==posy+4) 188 | 189 | or (i==posx-3 and j==posy+4) 190 | or (i==posx-2 and j==posy+4) 191 | or (i==posx-1 and j==posy+4) 192 | or (i==posx and j==posy+4) 193 | or (i==posx+1 and j==posy+4) 194 | or (i==posx+2 and j==posy+4) 195 | or (i==posx+3 and j==posy+4) 196 | 197 | or (i==posx+4 and j==posy+4) 198 | or (i==posx+4 and j==posy+3) 199 | or (i==posx+4 and j==posy+2) 200 | or (i==posx+4 and j==posy+1) 201 | or (i==posx+4 and j==posy) 202 | or (i==posx+4 and j==posy-1) 203 | or (i==posx+4 and j==posy-2) 204 | or (i==posx+4 and j==posy-3) 205 | or (i==posx+4 and j==posy-4) 206 | 207 | or (i==posx+3 and j==posy-4) 208 | or (i==posx+2 and j==posy-4) 209 | or (i==posx+1 and j==posy-4) 210 | or (i==posx and j==posy-4) 211 | or (i==posx-1 and j==posy-4) 212 | or (i==posx-2 and j==posy-4) 213 | or (i==posx-3 and j==posy-4) 214 | ) 215 | 216 | 217 | ){ 218 | display.drawPixel(i*4+2,j*4+2+2,WHITE); 219 | } 220 | 221 | 222 | } 223 | //display.drawBitmap(i*4, j*4, brick , 4, 4, WHITE); 224 | 225 | 226 | 227 | }else{ 228 | 229 | //not walls 230 | if(gameMode!=4){ 231 | //light mode 232 | if(wallPhase==3 and (i==posx or j==posy) and j!=0){ 233 | //draw crosshair 234 | display.drawPixel(i*4+2,j*4+2+2,WHITE); 235 | } 236 | } 237 | //display.drawBitmap(i*4, j*4, checker , 4, 4, WHITE); 238 | /*display.drawPixel(i*4,j*4,WHITE); 239 | display.drawPixel(i*4,j*4+2,WHITE); 240 | display.drawPixel(i*4+1,j*4+1,WHITE); 241 | display.drawPixel(i*4+1,j*4+3,WHITE); 242 | display.drawPixel(i*4+2,j*4+2,WHITE); 243 | display.drawPixel(i*4+2,j*4+4,WHITE); 244 | display.drawPixel(i*4+3,j*4+1,WHITE); 245 | display.drawPixel(i*4+3,j*4+3,WHITE); 246 | */ 247 | } 248 | } 249 | } 250 | 251 | 252 | //display level 253 | //display.fillRect(0,0,128,8,WHITE); 254 | 255 | //if(wallPhase>1){ 256 | display.setTextColor(WHITE); 257 | display.setCursor(0,0); 258 | display.print("level: "); 259 | display.print(level); 260 | for(int shdw=0;shdw<124;shdw+=2){ 261 | display.drawPixel(shdw,8,WHITE); 262 | } 263 | display.drawLine(0,9,123,9,WHITE); 264 | //} 265 | 266 | 267 | //draw player 268 | /* 269 | display.drawPixel(posx*4,posy*4+1,WHITE); 270 | display.drawPixel(posx*4,posy*4+2,WHITE); 271 | 272 | display.drawPixel(posx*4+1,posy*4,WHITE); 273 | display.drawPixel(posx*4+2,posy*4,WHITE); 274 | 275 | display.drawPixel(posx*4+3,posy*4+1,WHITE); 276 | display.drawPixel(posx*4+3,posy*4+2,WHITE); 277 | 278 | display.drawPixel(posx*4+1,posy*4+3,WHITE); 279 | display.drawPixel(posx*4+2,posy*4+3,WHITE); 280 | */ 281 | if(blinkPlayer==1){ 282 | display.fillCircle(posx*4+1,posy*4+1+2,3,WHITE); 283 | display.fillCircle(posx*4+1,posy*4+1+2,1,BLACK); 284 | }else{ 285 | display.fillCircle(posx*4+1,posy*4+1+2,3,BLACK); 286 | display.fillCircle(posx*4+1,posy*4+1+2,1,WHITE); 287 | } 288 | /* 289 | if(blinkPlayer==1){ 290 | display.drawPixel(posx*4+1,posy*4+1,WHITE); 291 | } 292 | if(blinkPlayer==2){ 293 | display.drawPixel(posx*4+2,posy*4+1,WHITE); 294 | } 295 | if(blinkPlayer==3){ 296 | display.drawPixel(posx*4+1,posy*4+2,WHITE); 297 | } 298 | if(blinkPlayer==4){ 299 | display.drawPixel(posx*4+2,posy*4+2,WHITE); 300 | } 301 | */ 302 | blinkPlayer++; 303 | if(blinkPlayer>16){ 304 | blinkPlayer=1; 305 | } 306 | 307 | if(illuminatedRow>8; 325 | byte Lo = Data & 0x00FF; 326 | if(j>7){ 327 | return bitRead(Lo, 7 - (j % 8)); 328 | }else{ 329 | //j=j-8; 330 | return bitRead(Hi, 7 - (j % 8)); 331 | } 332 | } 333 | 334 | 335 | 336 | 337 | 338 | void generateMaze(){ 339 | bool alternate=false; 340 | for (geni = 1; geni < MAZEHEIGHT-1; geni++) { 341 | if(!alternate){ 342 | Maze[geni] = 0b1100000000000001; 343 | }else{ 344 | Maze[geni] = 0b1101010101010101; 345 | } 346 | alternate=!alternate; 347 | } 348 | genmod = 4; 349 | for (geni = 2; geni < MAZEHEIGHT - 2; geni += 2) { 350 | for (genj = 3; genj < MAZEWIDTH - 1; genj += 2) { 351 | Maze[geni] |= (0x8000 >> genj); 352 | do{ 353 | //Roll a stick 354 | randomSeed(analogRead(A0)+readVcc()); 355 | //genval = (uint8_t)(analogRead(A0) & 0x00FF) % genmod; 356 | genval = (uint8_t)(random(10000) & 0x00FF) % genmod; 357 | //val = analogRead(A0) % mod; 358 | genx = 0, geny = 0; 359 | if (genval == 0)geny = 1; 360 | if (genval == 1)genx = -1; 361 | if (genval == 2)genx = 1; 362 | if (genval == 3)geny = -1; 363 | }while ((Maze[geni + geny] & (0x8000 >> (genj + genx)))); 364 | Maze[geni + geny] |= (0x8000 >> (genj + genx)); 365 | } 366 | genmod = 3; 367 | } 368 | } 369 | 370 | 371 | 372 | /* 373 | void drawMazeSerial(){ 374 | uint8_t i, j; 375 | bool dot; 376 | for(i=0;i<=MAZEHEIGHT;i++){ 377 | for(j=0;j<=MAZEWIDTH;j++){ 378 | dot=readPixel(i,j); 379 | if(dot){ 380 | Serial.print("*"); 381 | }else{ 382 | Serial.print(" "); 383 | } 384 | } 385 | Serial.println(); 386 | } 387 | } 388 | */ 389 | 390 | -------------------------------------------------------------------------------- /A-Maze-SH1106/game_collector.ino: -------------------------------------------------------------------------------- 1 | int collectables[10][2]={ 2 | {0,0}, 3 | {0,0}, 4 | {0,0}, 5 | {0,0}, 6 | {0,0}, 7 | {0,0}, 8 | {0,0}, 9 | {0,0}, 10 | {0,0}, 11 | {0,0} 12 | }; 13 | 14 | int numberCollectables=0; 15 | 16 | int collectablePhase=0; 17 | 18 | void collector(){ 19 | /* ------- BUTTON PRESS ACTIONS ------- */ 20 | bool wall; 21 | 22 | if(!gamePaused){ 23 | 24 | //GAME CONTROL 25 | 26 | /* ------- BUTTON 1 - LEFT ------- */ 27 | if(button1State==ACTIVATED){ 28 | //generateMaze(); 29 | if(posx-1>=0){ 30 | wall=readPixel(posx-1,posy); 31 | if(!wall){ 32 | --posx; 33 | aj_tone(sound,2200,5); 34 | }else{ 35 | aj_tone(sound,1000,50); 36 | } 37 | }else{ 38 | aj_tone(sound,1000,50); 39 | } 40 | delay(30); 41 | } 42 | /* ------- BUTTON 2 - RIGHT ------- */ 43 | if(button2State==ACTIVATED){ 44 | if(posx+1<=MAZEHEIGHT+1){ 45 | wall=readPixel(posx+1,posy); 46 | if(!wall){ 47 | ++posx; 48 | aj_tone(sound,2200,5); 49 | }else if(numberCollectables>0){ 50 | aj_tone(sound,1000,50); 51 | }else{ 52 | aj_tone(sound,1000,50); 53 | } 54 | }else{ 55 | aj_tone(sound,1000,50); 56 | } 57 | delay(30); 58 | } 59 | /* ------- BUTTON 3 - UP ------- */ 60 | if(button3State==ACTIVATED){ 61 | if(posy-1>=2){ 62 | wall=readPixel(posx,posy-1); 63 | if(!wall){ 64 | --posy; 65 | aj_tone(sound,2200,5); 66 | }else{ 67 | aj_tone(sound,1000,50); 68 | } 69 | }else{ 70 | aj_tone(sound,1000,50); 71 | } 72 | delay(30); 73 | } 74 | /* ------- BUTTON 4 - DOWN ------- */ 75 | if(button4State==ACTIVATED){ 76 | if(posy+1<=MAZEWIDTH){ 77 | wall=readPixel(posx,posy+1); 78 | if(!wall){ 79 | ++posy; 80 | aj_tone(sound,2200,5); 81 | }else{ 82 | aj_tone(sound,1000,50); 83 | } 84 | }else{ 85 | aj_tone(sound,1000,50); 86 | } 87 | delay(30); 88 | } 89 | 90 | if(button5State==ACTIVATED){//A 91 | //display.fillCircle(20,30,5,WHITE); 92 | aj_tone(sound,2400,5); 93 | delay(60); 94 | } 95 | if(button6State==ACTIVATED){//B 96 | //display.fillCircle(50,30,5,WHITE); 97 | aj_tone(sound,2400,5); 98 | delay(60); 99 | } 100 | if(button7State==ACTIVATED){//MENU 101 | //display.fillCircle(80,30,5,WHITE); 102 | gamePaused=true; 103 | aj_tone(sound,2400,5); 104 | delay(200); 105 | button7State = digitalRead(button7Pin); 106 | } 107 | 108 | 109 | if(check_collectable(posx,posy)){ 110 | get_collectable(posx,posy); 111 | --numberCollectables; 112 | aj_tone(sound,2800,5); 113 | } 114 | if(numberCollectables>0){ 115 | display.drawPixel(124,60,BLACK); 116 | display.drawPixel(124,59,BLACK); 117 | display.drawPixel(125,60,BLACK); 118 | display.drawPixel(125,59,BLACK); 119 | //display.drawLine(122,58,122,62,WHITE); 120 | //display.drawLine(127,58,127,62,WHITE); 121 | }else{ 122 | Maze[31]=0b1100000000000101; 123 | } 124 | 125 | 126 | 127 | } 128 | 129 | 130 | 131 | display.setCursor(0,0); 132 | 133 | if(posx==MAZEHEIGHT+1 and numberCollectables==0){ 134 | posx=0; 135 | posy=2; 136 | displayLevelSplash(); 137 | generate_collectables(); 138 | level++; 139 | illuminatedRow=0; 140 | blinkPlayer=1; 141 | wallPhase=1; 142 | }else{ 143 | drawMaze(); 144 | if(numberCollectables>0 and wallPhase>1){ 145 | display.drawRect(122,57,6,6,WHITE); 146 | display.drawRect(123,58,4,4,BLACK); 147 | } 148 | draw_collectables(); 149 | if(gamePaused){ 150 | gameMenu(); 151 | } 152 | 153 | } 154 | 155 | } 156 | 157 | 158 | void generate_collectables(){ 159 | int i=0,x,y,seeded=11; 160 | randomSeed(analogRead(A0)+readVcc()); 161 | do{ 162 | x=random(1,MAZEHEIGHT); 163 | y=random(1,MAZEWIDTH); 164 | if(!readPixel(x,y)){ 165 | collectables[i][0]=x; 166 | collectables[i][1]=y; 167 | i++; 168 | seeded--; 169 | } 170 | }while(seeded>0); 171 | numberCollectables=10; 172 | Maze[31]=0b1100000000000111; 173 | } 174 | 175 | bool check_collectable(int x,int y){ 176 | for(int i=0;i<10;i++){ 177 | if(collectables[i][0]==x and collectables[i][1]==y){ 178 | return true; 179 | } 180 | } 181 | return false; 182 | } 183 | 184 | bool get_collectable(int x,int y){ 185 | for(int i=0;i<10;i++){ 186 | if(collectables[i][0]==x and collectables[i][1]==y){ 187 | collectables[i][0]=0; 188 | collectables[i][1]=0; 189 | return true; 190 | } 191 | } 192 | return false; 193 | } 194 | 195 | void draw_collectables(){ 196 | for(int i=0;i<10;i++){ 197 | int x=collectables[i][0]; 198 | int y=collectables[i][1]; 199 | 200 | if(x>0 and y>0){ 201 | if(collectablePhase==0){ 202 | display.drawPixel(x*4+1,y*4+1+2,WHITE); 203 | display.drawPixel(x*4+1,y*4+2+2,WHITE); 204 | display.drawPixel(x*4+2,y*4+1+2,WHITE); 205 | } 206 | if(collectablePhase==1){ 207 | display.drawPixel(x*4+1,y*4+1+2,WHITE); 208 | display.drawPixel(x*4+1,y*4+2+2,WHITE); 209 | display.drawPixel(x*4+2,y*4+2+2,WHITE); 210 | } 211 | if(collectablePhase==2){ 212 | display.drawPixel(x*4+1,y*4+1+2,WHITE); 213 | display.drawPixel(x*4+2,y*4+1+2,WHITE); 214 | display.drawPixel(x*4+2,y*4+2+2,WHITE); 215 | } 216 | if(collectablePhase==3){ 217 | display.drawPixel(x*4+1,y*4+2+2,WHITE); 218 | display.drawPixel(x*4+2,y*4+1+2,WHITE); 219 | display.drawPixel(x*4+2,y*4+2+2,WHITE); 220 | } 221 | if(collectablePhase==4){ 222 | display.drawPixel(x*4+1,y*4+1+2,WHITE); 223 | display.drawPixel(x*4+1,y*4+2+2,WHITE); 224 | display.drawPixel(x*4+2,y*4+1+2,WHITE); 225 | display.drawPixel(x*4+2,y*4+2+2,WHITE); 226 | } 227 | } 228 | } 229 | collectablePhase++; 230 | if(collectablePhase==5){collectablePhase=0;} 231 | } 232 | -------------------------------------------------------------------------------- /A-Maze-SH1106/game_dark.ino: -------------------------------------------------------------------------------- 1 | void dark(){ 2 | /* ------- BUTTON PRESS ACTIONS ------- */ 3 | bool wall; 4 | 5 | if(!gamePaused){ 6 | 7 | //GAME CONTROL 8 | 9 | /* ------- BUTTON 1 - LEFT ------- */ 10 | if(button1State==ACTIVATED){ 11 | //generateMaze(); 12 | if(posx-1>=0){ 13 | wall=readPixel(posx-1,posy); 14 | if(!wall){ 15 | --posx; 16 | aj_tone(sound,2200,5); 17 | }else{ 18 | aj_tone(sound,1000,50); 19 | } 20 | }else{ 21 | aj_tone(sound,1000,50); 22 | } 23 | delay(30); 24 | } 25 | /* ------- BUTTON 2 - RIGHT ------- */ 26 | if(button2State==ACTIVATED){ 27 | if(posx+1<=MAZEHEIGHT+1){ 28 | wall=readPixel(posx+1,posy); 29 | if(!wall){ 30 | ++posx; 31 | aj_tone(sound,2200,5); 32 | }else{ 33 | aj_tone(sound,1000,50); 34 | } 35 | }else{ 36 | aj_tone(sound,1000,50); 37 | } 38 | delay(30); 39 | } 40 | /* ------- BUTTON 3 - UP ------- */ 41 | if(button3State==ACTIVATED){ 42 | if(posy-1>=2){ 43 | wall=readPixel(posx,posy-1); 44 | if(!wall){ 45 | --posy; 46 | aj_tone(sound,2200,5); 47 | }else{ 48 | aj_tone(sound,1000,50); 49 | } 50 | }else{ 51 | aj_tone(sound,1000,50); 52 | } 53 | delay(30); 54 | } 55 | /* ------- BUTTON 4 - DOWN ------- */ 56 | if(button4State==ACTIVATED){ 57 | if(posy+1<=MAZEWIDTH){ 58 | wall=readPixel(posx,posy+1); 59 | if(!wall){ 60 | ++posy; 61 | aj_tone(sound,2200,5); 62 | }else{ 63 | aj_tone(sound,1000,50); 64 | } 65 | }else{ 66 | aj_tone(sound,1000,50); 67 | } 68 | delay(30); 69 | } 70 | 71 | if(button5State==ACTIVATED){//A 72 | //display.fillCircle(20,30,5,WHITE); 73 | aj_tone(sound,2400,5); 74 | delay(60); 75 | } 76 | if(button6State==ACTIVATED){//B 77 | //display.fillCircle(50,30,5,WHITE); 78 | aj_tone(sound,2400,5); 79 | delay(60); 80 | } 81 | if(button7State==ACTIVATED){//MENU 82 | //display.fillCircle(80,30,5,WHITE); 83 | gamePaused=true; 84 | aj_tone(sound,2400,5); 85 | delay(200); 86 | button7State = digitalRead(button7Pin); 87 | } 88 | 89 | } 90 | 91 | 92 | 93 | display.setCursor(0,0); 94 | 95 | if(posx==MAZEHEIGHT+1){ 96 | posx=0; 97 | posy=2; 98 | displayLevelSplash(); 99 | level++; 100 | illuminatedRow=0; 101 | blinkPlayer=1; 102 | wallPhase=1; 103 | }else{ 104 | drawMaze(); 105 | if(gamePaused){ 106 | gameMenu(); 107 | } 108 | 109 | } 110 | 111 | } 112 | -------------------------------------------------------------------------------- /A-Maze-SH1106/game_escape.ino: -------------------------------------------------------------------------------- 1 | unsigned int timeLeft=630; 2 | 3 | 4 | 5 | void escaper(){ 6 | /* ------- BUTTON PRESS ACTIONS ------- */ 7 | 8 | bool wall; 9 | 10 | if(!gamePaused and !escapeGameOver){ 11 | 12 | //GAME CONTROL 13 | 14 | /* ------- BUTTON 1 - LEFT ------- */ 15 | if(button1State==ACTIVATED){ 16 | //generateMaze(); 17 | if(posx-1>=0){ 18 | wall=readPixel(posx-1,posy); 19 | if(!wall){ 20 | --posx; 21 | aj_tone(sound,2200,5); 22 | }else{ 23 | aj_tone(sound,1000,50); 24 | } 25 | }else{ 26 | aj_tone(sound,1000,50); 27 | } 28 | delay(30); 29 | } 30 | /* ------- BUTTON 2 - RIGHT ------- */ 31 | if(button2State==ACTIVATED){ 32 | if(posx+1<=MAZEHEIGHT+1){ 33 | wall=readPixel(posx+1,posy); 34 | if(!wall){ 35 | ++posx; 36 | aj_tone(sound,2200,5); 37 | }else{ 38 | aj_tone(sound,1000,50); 39 | } 40 | }else{ 41 | aj_tone(sound,1000,50); 42 | } 43 | delay(30); 44 | } 45 | /* ------- BUTTON 3 - UP ------- */ 46 | if(button3State==ACTIVATED){ 47 | if(posy-1>=2){ 48 | wall=readPixel(posx,posy-1); 49 | if(!wall){ 50 | --posy; 51 | aj_tone(sound,2200,5); 52 | }else{ 53 | aj_tone(sound,1000,50); 54 | } 55 | }else{ 56 | aj_tone(sound,1000,50); 57 | } 58 | delay(30); 59 | } 60 | /* ------- BUTTON 4 - DOWN ------- */ 61 | if(button4State==ACTIVATED){ 62 | if(posy+1<=MAZEWIDTH){ 63 | wall=readPixel(posx,posy+1); 64 | if(!wall){ 65 | ++posy; 66 | aj_tone(sound,2200,5); 67 | }else{ 68 | aj_tone(sound,1000,50); 69 | } 70 | }else{ 71 | aj_tone(sound,1000,50); 72 | } 73 | delay(30); 74 | } 75 | 76 | if(button5State==ACTIVATED){//A 77 | //display.fillCircle(20,30,5,WHITE); 78 | aj_tone(sound,2400,5); 79 | delay(60); 80 | } 81 | if(button6State==ACTIVATED){//B 82 | //display.fillCircle(50,30,5,WHITE); 83 | aj_tone(sound,2400,5); 84 | delay(60); 85 | } 86 | if(button7State==ACTIVATED){//MENU 87 | //display.fillCircle(80,30,5,WHITE); 88 | gamePaused=true; 89 | aj_tone(sound,2400,5); 90 | delay(200); 91 | button7State = digitalRead(button7Pin); 92 | } 93 | 94 | } 95 | 96 | 97 | 98 | 99 | 100 | display.setCursor(0,0); 101 | 102 | if(!gamePaused and wallPhase>1){ 103 | if(timeLeft>0){ 104 | timeLeft--; 105 | uint8_t timeLine=round(timeLeft/15); 106 | display.drawLine(125,52,125,52-timeLine,WHITE); 107 | display.drawLine(126,52,126,52-timeLine,WHITE); 108 | }else{ 109 | escapeGameOver=true; 110 | } 111 | } 112 | 113 | if(posx==MAZEHEIGHT+1){ 114 | posx=0; 115 | posy=2; 116 | displayLevelSplash(); 117 | level++; 118 | illuminatedRow=0; 119 | blinkPlayer=1; 120 | wallPhase=1; 121 | timeLeft=630; 122 | }else{ 123 | drawMaze(); 124 | if(gamePaused){ 125 | gameMenu(); 126 | } 127 | if(escapeGameOver){ 128 | escapeGameOverMenu(); 129 | } 130 | 131 | } 132 | 133 | } 134 | 135 | void escapeGameOverMenu(){ 136 | 137 | menuItemPointerAnimation(); 138 | 139 | display.fillRect(24,8,80,45,WHITE); 140 | display.fillRect(25,9,78,43,BLACK); 141 | display.setTextColor(BLACK); 142 | display.fillRect(26,10,76,11,WHITE); 143 | display.setCursor(37,12); 144 | display.print("GAME OVER"); 145 | display.setTextColor(WHITE); 146 | display.setCursor(48,24); 147 | display.print("retry"); 148 | if(selectedOption==1){ 149 | display.setCursor(33+menuPointerPos,24); 150 | display.print(">"); 151 | } 152 | display.setCursor(48,34); 153 | display.print("quit"); 154 | if(selectedOption==2){ 155 | display.setCursor(33+menuPointerPos,34); 156 | display.print(">"); 157 | } 158 | 159 | /* ------- BUTTON 3 - UP ------- */ 160 | if(button3State==ACTIVATED){ 161 | selectedOption--; 162 | if(selectedOption==0){ 163 | selectedOption=2; 164 | } 165 | aj_tone(sound,2200,5); 166 | delay(100); 167 | } 168 | /* ------- BUTTON 4 - DOWN ------- */ 169 | if(button4State==ACTIVATED){ 170 | selectedOption++; 171 | if(selectedOption==3){ 172 | selectedOption=1; 173 | } 174 | aj_tone(sound,2200,5); 175 | delay(100); 176 | } 177 | if(button7State==ACTIVATED){ 178 | if(selectedOption==1){ 179 | gamePaused=false; 180 | escapeGameOver=false; 181 | posx=0; 182 | posy=2; 183 | level=1; 184 | illuminatedRow=0; 185 | blinkPlayer=1; 186 | wallPhase=1; 187 | timeLeft=840; 188 | generateMaze(); 189 | delay(100); 190 | button7State = digitalRead(button7Pin); 191 | } 192 | if(selectedOption==2){ 193 | asm volatile (" jmp 0"); 194 | } 195 | aj_tone(sound,2200,5); 196 | } 197 | } 198 | -------------------------------------------------------------------------------- /A-Maze-SH1106/game_walker.ino: -------------------------------------------------------------------------------- 1 | void walker(){ 2 | /* ------- BUTTON PRESS ACTIONS ------- */ 3 | bool wall; 4 | 5 | if(!gamePaused){ 6 | 7 | //GAME CONTROL 8 | 9 | /* ------- BUTTON 1 - LEFT ------- */ 10 | if(button1State==ACTIVATED){ 11 | //generateMaze(); 12 | if(posx-1>=0){ 13 | wall=readPixel(posx-1,posy); 14 | if(!wall){ 15 | --posx; 16 | aj_tone(sound,2200,5); 17 | }else{ 18 | aj_tone(sound,1000,50); 19 | } 20 | }else{ 21 | aj_tone(sound,1000,50); 22 | } 23 | delay(30); 24 | } 25 | /* ------- BUTTON 2 - RIGHT ------- */ 26 | if(button2State==ACTIVATED){ 27 | if(posx+1<=MAZEHEIGHT+1){ 28 | wall=readPixel(posx+1,posy); 29 | if(!wall){ 30 | ++posx; 31 | aj_tone(sound,2200,5); 32 | }else{ 33 | aj_tone(sound,1000,50); 34 | } 35 | }else{ 36 | aj_tone(sound,1000,50); 37 | } 38 | delay(30); 39 | } 40 | /* ------- BUTTON 3 - UP ------- */ 41 | if(button3State==ACTIVATED){ 42 | if(posy-1>=2){ 43 | wall=readPixel(posx,posy-1); 44 | if(!wall){ 45 | --posy; 46 | aj_tone(sound,2200,5); 47 | }else{ 48 | aj_tone(sound,1000,50); 49 | } 50 | }else{ 51 | aj_tone(sound,1000,50); 52 | } 53 | delay(30); 54 | } 55 | /* ------- BUTTON 4 - DOWN ------- */ 56 | if(button4State==ACTIVATED){ 57 | if(posy+1<=MAZEWIDTH){ 58 | wall=readPixel(posx,posy+1); 59 | if(!wall){ 60 | ++posy; 61 | aj_tone(sound,2200,5); 62 | }else{ 63 | aj_tone(sound,1000,50); 64 | } 65 | }else{ 66 | aj_tone(sound,1000,50); 67 | } 68 | delay(30); 69 | } 70 | 71 | if(button5State==ACTIVATED){//A 72 | //display.fillCircle(20,30,5,WHITE); 73 | aj_tone(sound,2400,5); 74 | delay(60); 75 | } 76 | if(button6State==ACTIVATED){//B 77 | //display.fillCircle(50,30,5,WHITE); 78 | aj_tone(sound,2400,5); 79 | delay(60); 80 | } 81 | if(button7State==ACTIVATED){//MENU 82 | //display.fillCircle(80,30,5,WHITE); 83 | gamePaused=true; 84 | aj_tone(sound,2400,5); 85 | delay(200); 86 | button7State = digitalRead(button7Pin); 87 | } 88 | 89 | } 90 | 91 | 92 | 93 | display.setCursor(0,0); 94 | 95 | if(posx==MAZEHEIGHT+1){ 96 | posx=0; 97 | posy=2; 98 | displayLevelSplash(); 99 | level++; 100 | illuminatedRow=0; 101 | blinkPlayer=1; 102 | wallPhase=1; 103 | }else{ 104 | drawMaze(); 105 | if(gamePaused){ 106 | gameMenu(); 107 | } 108 | 109 | } 110 | 111 | } 112 | -------------------------------------------------------------------------------- /A-Maze-SH1106/level_splash.ino: -------------------------------------------------------------------------------- 1 | void displayLevelSplash(){ 2 | int levely=-8,levelnoy=-8,completey=-8, i, j; 3 | 4 | display.setTextColor(WHITE); 5 | for(i=0;i<3;i++){ 6 | for(j=0;j<50;j+=2){ 7 | display.clearDisplay(); 8 | if(levely<20){ 9 | levely+=2; 10 | aj_tone(sound,levely*110,5); 11 | } 12 | if(levely==20 and levelnoy<30){ 13 | levelnoy+=2; 14 | aj_tone(sound,levelnoy*110,5); 15 | } 16 | if(levely==20 and levelnoy==30 and completey<40){ 17 | completey+=2; 18 | aj_tone(sound,completey*110,5); 19 | } 20 | display.setCursor(15,levely); 21 | display.print("LEVEL"); 22 | display.setCursor(45,levelnoy); 23 | display.print(level); 24 | display.setCursor(55,completey); 25 | display.print("COMPLETE!"); 26 | 27 | displayBattery(WHITE); 28 | displayIndicators(WHITE); 29 | 30 | display.display(); 31 | } 32 | } 33 | 34 | delay(1000); 35 | 36 | levely=-8; 37 | levelnoy=-8; 38 | for(i=0;i<2;i++){ 39 | for(j=0;j<50;j+=2){ 40 | display.clearDisplay(); 41 | if(levely<20){ 42 | levely+=2; 43 | aj_tone(sound,levely*110,5); 44 | } 45 | if(levely==20 and levelnoy<30){ 46 | levelnoy+=2; 47 | aj_tone(sound,levelnoy*110,5); 48 | } 49 | display.setCursor(15,levely); 50 | display.print("LEVEL"); 51 | display.setCursor(45,levelnoy); 52 | display.print(level+1); 53 | 54 | displayBattery(WHITE); 55 | displayIndicators(WHITE); 56 | 57 | display.display(); 58 | } 59 | } 60 | 61 | delay(1500); 62 | 63 | generateMaze(); 64 | } 65 | -------------------------------------------------------------------------------- /A-Maze-SH1106/menus.ino: -------------------------------------------------------------------------------- 1 | const unsigned char mazeBgTile [] PROGMEM = { 2 | // 'mazeTile, 32x32px 3 | 0xa8, 0x42, 0x00, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x08, 0x42, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 4 | 0x08, 0x42, 0x00, 0x20, 0x50, 0x00, 0x0a, 0x81, 0x08, 0x40, 0x00, 0x20, 0x00, 0x00, 0x00, 0x01, 5 | 0x08, 0x40, 0x00, 0x20, 0x00, 0x00, 0x00, 0x01, 0x08, 0x40, 0x00, 0x20, 0x05, 0x15, 0x55, 0x41, 6 | 0x08, 0x40, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x08, 0x40, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 7 | 0x08, 0x40, 0x0a, 0xa0, 0x50, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 8 | 0x00, 0x00, 0x00, 0x00, 0xaa, 0xa2, 0x0a, 0xaa, 0x00, 0x00, 0x10, 0x00, 0x08, 0x22, 0x00, 0x00, 9 | 0x00, 0x00, 0x10, 0x00, 0x08, 0x22, 0x00, 0x00, 0x50, 0x14, 0x15, 0x40, 0x00, 0x00, 0x00, 0x20, 10 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2a, 0x0a, 0xa0 11 | }; 12 | 13 | int mainMenuBgX=0; 14 | int mainMenuBgY=0; 15 | 16 | void mainMenu(){ 17 | 18 | mainMenuAnimation(); 19 | menuItemPointerAnimation(); 20 | 21 | if(selectedOption==1){ 22 | display.setTextSize(2); 23 | display.setTextColor(BLACK); 24 | display.setCursor(11+menuPointerPos,6); 25 | display.print(">"); 26 | display.setCursor(15+menuPointerPos,6); 27 | display.print(">"); 28 | display.setTextColor(WHITE); 29 | display.setCursor(13+menuPointerPos,6); 30 | display.print(">"); 31 | display.setCursor(16+27-menuPointerPos,5); 32 | }else{ 33 | display.setCursor(16+27,10); 34 | } 35 | display.print("walk"); 36 | display.setTextSize(1); 37 | 38 | if(selectedOption==2){ 39 | display.setTextSize(2); 40 | display.setTextColor(BLACK); 41 | display.setCursor(11+menuPointerPos,19); 42 | display.print(">"); 43 | display.setCursor(15+menuPointerPos,19); 44 | display.print(">"); 45 | display.setTextColor(WHITE); 46 | display.setCursor(13+menuPointerPos,19); 47 | display.print(">"); 48 | display.setCursor(16+27-menuPointerPos,18); 49 | }else{ 50 | display.setCursor(16+27,22); 51 | } 52 | display.print("collect"); 53 | display.setTextSize(1); 54 | 55 | if(selectedOption==3){ 56 | display.setTextSize(2); 57 | display.setTextColor(BLACK); 58 | display.setCursor(11+menuPointerPos,30); 59 | display.print(">"); 60 | display.setCursor(15+menuPointerPos,30); 61 | display.print(">"); 62 | display.setTextColor(WHITE); 63 | display.setCursor(13+menuPointerPos,30); 64 | display.print(">"); 65 | display.setCursor(16+27-menuPointerPos,29); 66 | }else{ 67 | display.setCursor(16+27,34); 68 | } 69 | display.print("escape"); 70 | display.setTextSize(1); 71 | 72 | if(selectedOption==4){ 73 | display.setTextSize(2); 74 | display.setTextColor(BLACK); 75 | display.setCursor(11+menuPointerPos,45); 76 | display.print(">"); 77 | display.setCursor(15+menuPointerPos,45); 78 | display.print(">"); 79 | display.setTextColor(WHITE); 80 | display.setCursor(13+menuPointerPos,45); 81 | display.print(">"); 82 | display.setCursor(16+27-menuPointerPos,44); 83 | }else{ 84 | display.setCursor(16+27,46); 85 | } 86 | display.print("night"); 87 | display.setTextSize(1); 88 | 89 | /* ------- BUTTON 3 - UP ------- */ 90 | if(button3State==ACTIVATED){ 91 | selectedOption--; 92 | if(selectedOption==0){ 93 | selectedOption=4; 94 | } 95 | aj_tone(sound,2200,5); 96 | delay(100); 97 | } 98 | /* ------- BUTTON 4 - DOWN ------- */ 99 | if(button4State==ACTIVATED){ 100 | selectedOption++; 101 | if(selectedOption==5){ 102 | selectedOption=1; 103 | } 104 | aj_tone(sound,2200,5); 105 | delay(100); 106 | } 107 | 108 | if(button5State==ACTIVATED){//A 109 | //display.fillCircle(20,30,5,WHITE); 110 | aj_tone(sound,2400,5); 111 | delay(100); 112 | } 113 | // toggle sound 114 | if(button6State==ACTIVATED){//B 115 | //display.fillCircle(50,30,5,WHITE); 116 | sound_enabled=!sound_enabled; 117 | aj_tone(sound,2400,5); 118 | delay(100); 119 | } 120 | 121 | if(button7State==ACTIVATED){//menu/start 122 | gameMode=selectedOption; 123 | generateMaze(); 124 | if(selectedOption==2){ 125 | generate_collectables(); 126 | } 127 | delay(250); 128 | button7State = digitalRead(button7Pin); 129 | } 130 | } 131 | 132 | void gameMenu(){ 133 | 134 | menuItemPointerAnimation(); 135 | 136 | display.fillRect(24,8,80,45,WHITE); 137 | display.fillRect(25,9,78,43,BLACK); 138 | display.setTextColor(BLACK); 139 | display.fillRect(26,10,76,11,WHITE); 140 | display.setCursor(48,12); 141 | display.print("PAUSED"); 142 | display.setTextColor(WHITE); 143 | display.setCursor(48,24); 144 | display.print("resume"); 145 | if(selectedOption==1){ 146 | display.setCursor(33+menuPointerPos,24); 147 | display.print(">"); 148 | } 149 | display.setCursor(48,34); 150 | display.print("quit"); 151 | if(selectedOption==2){ 152 | display.setCursor(33+menuPointerPos,34); 153 | display.print(">"); 154 | } 155 | 156 | /* ------- BUTTON 3 - UP ------- */ 157 | if(button3State==ACTIVATED){ 158 | selectedOption--; 159 | if(selectedOption==0){ 160 | selectedOption=2; 161 | } 162 | aj_tone(sound,2200,5); 163 | delay(100); 164 | } 165 | /* ------- BUTTON 4 - DOWN ------- */ 166 | if(button4State==ACTIVATED){ 167 | selectedOption++; 168 | if(selectedOption==3){ 169 | selectedOption=1; 170 | } 171 | aj_tone(sound,2200,5); 172 | delay(100); 173 | } 174 | 175 | if(button5State==ACTIVATED){//A 176 | //display.fillCircle(20,30,5,WHITE); 177 | aj_tone(sound,2400,5); 178 | delay(100); 179 | } 180 | // toggle sound 181 | if(button6State==ACTIVATED){//B 182 | //display.fillCircle(50,30,5,WHITE); 183 | sound_enabled=!sound_enabled; 184 | aj_tone(sound,2400,5); 185 | delay(100); 186 | } 187 | 188 | if(button7State==ACTIVATED){ 189 | if(selectedOption==1){ 190 | gamePaused=false; 191 | delay(100); 192 | button7State = digitalRead(button7Pin); 193 | } 194 | if(selectedOption==2){ 195 | asm volatile (" jmp 0"); 196 | } 197 | aj_tone(sound,1600,5); 198 | } 199 | } 200 | 201 | void menuItemPointerAnimation(){ 202 | if(menuPointerPosDir){ 203 | menuPointerPos++; 204 | if(menuPointerPos>=6){ 205 | menuPointerPos=6; 206 | menuPointerPosDir=!menuPointerPosDir; 207 | } 208 | }else{ 209 | menuPointerPos--; 210 | if(menuPointerPos<=-1){ 211 | menuPointerPos=0; 212 | menuPointerPosDir=!menuPointerPosDir; 213 | } 214 | } 215 | } 216 | 217 | void mainMenuAnimation(){ 218 | 219 | //4x2 32x32 each 220 | drawMenuBgPattern(mainMenuBgX-32,mainMenuBgY-32); 221 | drawMenuBgPattern(mainMenuBgX,mainMenuBgY-32); 222 | 223 | drawMenuBgPattern(mainMenuBgX-32,mainMenuBgY); 224 | drawMenuBgPattern(mainMenuBgX,mainMenuBgY); 225 | 226 | drawMenuBgPattern(mainMenuBgX-32,mainMenuBgY+32); 227 | drawMenuBgPattern(mainMenuBgX,mainMenuBgY+32); 228 | 229 | 230 | 231 | display.fillRect(32,0,64,64,BLACK); 232 | display.drawLine(31,0,31,63,WHITE); 233 | for(int shdw=0;shdw<63;shdw+=2){ 234 | display.drawPixel(33,shdw,WHITE); 235 | } 236 | 237 | 238 | mainMenuBgX++; 239 | mainMenuBgY++; 240 | if(mainMenuBgX==32){ 241 | mainMenuBgX=0; 242 | mainMenuBgY=0; 243 | } 244 | 245 | 246 | } 247 | 248 | void drawMenuBgPattern(int x,int y){ 249 | //display.drawPixel(x+5,y+5,WHITE); 250 | //display.drawPixel(x+6,y+5,WHITE); 251 | //display.drawPixel(x+6,y+6,WHITE); 252 | display.drawBitmap(x, y, mazeBgTile , 32, 32, WHITE); 253 | } 254 | -------------------------------------------------------------------------------- /A-Maze.ino: -------------------------------------------------------------------------------- 1 | /* A-Maze 2 | by Alojz Jakob 3 | 4 | ********** TAMAGUINO *********** 5 | * Maze game for Arduino * 6 | ******************************** 7 | 8 | */ 9 | 10 | #include 11 | #include 12 | #include 13 | #include 14 | 15 | #define OLED_RESET 4 16 | Adafruit_SSD1306 display(OLED_RESET); 17 | 18 | 19 | 20 | // 'title', 128x64px 21 | const unsigned char title1 [] PROGMEM = { 22 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 23 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 24 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 25 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 26 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 27 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xfc, 0x00, 0x00, 0x00, 0x00, 28 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x3e, 0x07, 0xe0, 0x07, 0xff, 0xc0, 29 | 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x03, 0x10, 0x00, 0xe0, 0xa0, 0x3c, 0x0c, 0x00, 0x70, 30 | 0x00, 0x00, 0x7b, 0xc0, 0x00, 0x00, 0x20, 0x02, 0x18, 0x00, 0x9d, 0x44, 0x06, 0x0a, 0x44, 0x10, 31 | 0x00, 0x01, 0x80, 0x60, 0x00, 0x00, 0xf8, 0x05, 0x88, 0x00, 0xba, 0x90, 0x01, 0x1d, 0x10, 0x08, 32 | 0x00, 0x02, 0xf4, 0x10, 0x00, 0x01, 0xac, 0x0b, 0x08, 0x00, 0x95, 0x42, 0x03, 0x2a, 0x00, 0x08, 33 | 0x00, 0x05, 0xaa, 0x88, 0x00, 0x01, 0x66, 0x16, 0x88, 0x00, 0xc0, 0x00, 0x02, 0x79, 0x40, 0x08, 34 | 0x00, 0x0b, 0xd4, 0x04, 0x00, 0x02, 0xd3, 0x2d, 0x08, 0x0f, 0xc0, 0x00, 0x04, 0x54, 0x00, 0x10, 35 | 0x00, 0x16, 0xaa, 0xa2, 0x00, 0x02, 0xa9, 0xda, 0x88, 0x78, 0x7f, 0xfc, 0x08, 0xa8, 0x00, 0x20, 36 | 0x00, 0x2f, 0x40, 0x09, 0x00, 0x02, 0x54, 0x15, 0x48, 0x80, 0x10, 0x04, 0x08, 0xd5, 0x01, 0xc0, 37 | 0x00, 0x2a, 0xfc, 0x20, 0x80, 0x06, 0xa8, 0x0a, 0x09, 0x28, 0x08, 0x08, 0x11, 0x28, 0x7f, 0x00, 38 | 0x00, 0x5d, 0x87, 0x00, 0xc0, 0x04, 0x52, 0x00, 0x8a, 0xd2, 0x04, 0x10, 0x21, 0x44, 0x40, 0x00, 39 | 0x00, 0x49, 0x01, 0x80, 0x40, 0x05, 0x28, 0x04, 0x0d, 0x80, 0x06, 0x20, 0x62, 0xa0, 0x40, 0x00, 40 | 0x00, 0xa1, 0x00, 0x80, 0x40, 0x0c, 0x00, 0x00, 0x0b, 0x3c, 0x02, 0x50, 0x42, 0x00, 0x3f, 0x80, 41 | 0x00, 0x89, 0x00, 0xc0, 0x40, 0x08, 0x0a, 0x01, 0x12, 0xe6, 0x01, 0xa0, 0x84, 0x08, 0x01, 0xc0, 42 | 0x00, 0x81, 0x00, 0x40, 0xff, 0xfc, 0x00, 0x00, 0x25, 0x83, 0x81, 0x70, 0x84, 0x20, 0x50, 0xc0, 43 | 0x00, 0xa1, 0x00, 0x41, 0x80, 0x06, 0x02, 0x1c, 0x69, 0x00, 0x82, 0xa1, 0x88, 0x00, 0x00, 0xc0, 44 | 0x00, 0x84, 0x80, 0xd1, 0x75, 0x42, 0x00, 0x36, 0x45, 0x01, 0x85, 0x41, 0x08, 0x10, 0x00, 0xc0, 45 | 0x01, 0x00, 0x80, 0x81, 0x6a, 0x12, 0x00, 0x6a, 0x91, 0x01, 0x0a, 0x81, 0x10, 0x00, 0x01, 0x80, 46 | 0x01, 0x00, 0x41, 0xa1, 0x55, 0x46, 0x18, 0x47, 0x05, 0x03, 0x11, 0x49, 0x10, 0x07, 0xff, 0x00, 47 | 0x01, 0x00, 0x3e, 0x00, 0x80, 0x0c, 0x1e, 0x85, 0x11, 0x82, 0x34, 0x01, 0x10, 0x04, 0x00, 0x00, 48 | 0x01, 0x00, 0x00, 0xa0, 0x7f, 0xf8, 0x13, 0x06, 0x00, 0xc2, 0x20, 0x81, 0x90, 0x04, 0x00, 0x00, 49 | 0x01, 0x00, 0x02, 0x00, 0x20, 0x20, 0x20, 0x06, 0x00, 0x34, 0xa2, 0x00, 0x70, 0x04, 0x00, 0x00, 50 | 0x01, 0x00, 0x00, 0x00, 0x20, 0x20, 0x20, 0x04, 0x00, 0x18, 0x20, 0x00, 0x1f, 0x87, 0x00, 0x00, 51 | 0x01, 0x00, 0x00, 0x00, 0x20, 0x20, 0x40, 0x04, 0x03, 0x82, 0x30, 0x00, 0x00, 0xc1, 0xf0, 0x00, 52 | 0x01, 0x00, 0x0c, 0x00, 0x20, 0x20, 0x40, 0x08, 0x04, 0xc0, 0x18, 0x00, 0x00, 0x44, 0x18, 0x00, 53 | 0x01, 0x00, 0x3f, 0x00, 0x20, 0x60, 0x80, 0x08, 0x08, 0x30, 0x0c, 0x00, 0x00, 0x40, 0x08, 0x00, 54 | 0x01, 0x00, 0x21, 0x80, 0x20, 0x41, 0x80, 0x10, 0x10, 0x10, 0x06, 0x00, 0x00, 0x40, 0x08, 0x00, 55 | 0x01, 0x80, 0x60, 0x40, 0x20, 0x41, 0x00, 0x20, 0x30, 0x08, 0x01, 0x00, 0x00, 0x40, 0x30, 0x00, 56 | 0x00, 0xc0, 0x40, 0x60, 0x40, 0x41, 0x00, 0x20, 0x50, 0x04, 0x00, 0x80, 0x00, 0x40, 0x60, 0x00, 57 | 0x00, 0x60, 0x80, 0x20, 0x80, 0x42, 0x00, 0x40, 0x90, 0x03, 0x80, 0xf8, 0x00, 0x7f, 0xc0, 0x00, 58 | 0x00, 0x3b, 0x80, 0x31, 0x80, 0x62, 0x00, 0x41, 0x20, 0x00, 0xc3, 0x0f, 0x80, 0x80, 0x00, 0x00, 59 | 0x00, 0x0e, 0x00, 0x1e, 0x00, 0x1c, 0x00, 0x42, 0x20, 0x00, 0x7e, 0x00, 0xff, 0x00, 0x00, 0x00, 60 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3d, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 61 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 62 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 63 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 64 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 65 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 66 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 67 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 68 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 69 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 70 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 71 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 72 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf3, 0x21, 0xcc, 0x38, 0x17, 0xc0, 0x00, 73 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xcb, 0x23, 0x2c, 0x64, 0x10, 0xc0, 0x00, 74 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf3, 0xa3, 0x2c, 0x64, 0x11, 0x80, 0x00, 75 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc9, 0xc3, 0xec, 0x65, 0x93, 0x00, 0x00, 76 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc8, 0x83, 0x2c, 0x65, 0x96, 0x00, 0x00, 77 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x83, 0x2f, 0x38, 0xe7, 0xc0, 0x00, 78 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 79 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 80 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 81 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 82 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 83 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 84 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 85 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 86 | }; 87 | // 'title2', 128x64px 88 | const unsigned char title2 [] PROGMEM = { 89 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 90 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 91 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 92 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 93 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 94 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xa8, 0x00, 0x00, 0x00, 0x00, 95 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x14, 0x05, 0x40, 0x05, 0x55, 0x40, 96 | 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0xa0, 0xa0, 0x28, 0x08, 0x00, 0x20, 97 | 0x00, 0x00, 0x51, 0x40, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x15, 0x44, 0x04, 0x00, 0x44, 0x10, 98 | 0x00, 0x00, 0x80, 0x20, 0x00, 0x00, 0xa8, 0x00, 0x88, 0x00, 0xaa, 0x80, 0x00, 0x08, 0x00, 0x08, 99 | 0x00, 0x00, 0x54, 0x10, 0x00, 0x01, 0x04, 0x01, 0x00, 0x00, 0x15, 0x40, 0x01, 0x00, 0x00, 0x00, 100 | 0x00, 0x00, 0xaa, 0x88, 0x00, 0x00, 0x22, 0x02, 0x88, 0x00, 0x80, 0x00, 0x02, 0x28, 0x00, 0x08, 101 | 0x00, 0x01, 0x54, 0x04, 0x00, 0x00, 0x51, 0x05, 0x00, 0x05, 0x40, 0x00, 0x04, 0x54, 0x00, 0x10, 102 | 0x00, 0x02, 0xaa, 0xa2, 0x00, 0x02, 0xa8, 0x8a, 0x88, 0x28, 0x2a, 0xa8, 0x08, 0xa8, 0x00, 0x20, 103 | 0x00, 0x05, 0x40, 0x01, 0x00, 0x00, 0x54, 0x15, 0x40, 0x00, 0x10, 0x04, 0x00, 0x55, 0x01, 0x40, 104 | 0x00, 0x2a, 0xa8, 0x20, 0x80, 0x02, 0xa8, 0x0a, 0x08, 0x28, 0x08, 0x08, 0x00, 0x28, 0x2a, 0x00, 105 | 0x00, 0x55, 0x05, 0x00, 0x40, 0x04, 0x50, 0x00, 0x00, 0x50, 0x04, 0x10, 0x01, 0x44, 0x40, 0x00, 106 | 0x00, 0x08, 0x00, 0x80, 0x00, 0x00, 0x28, 0x00, 0x08, 0x80, 0x02, 0x20, 0x22, 0xa0, 0x00, 0x00, 107 | 0x00, 0x01, 0x00, 0x00, 0x40, 0x04, 0x00, 0x00, 0x01, 0x14, 0x00, 0x50, 0x40, 0x00, 0x15, 0x00, 108 | 0x00, 0x88, 0x00, 0x80, 0x00, 0x08, 0x0a, 0x00, 0x02, 0xa2, 0x00, 0xa0, 0x80, 0x08, 0x00, 0x80, 109 | 0x00, 0x01, 0x00, 0x40, 0x55, 0x54, 0x00, 0x00, 0x05, 0x01, 0x01, 0x50, 0x04, 0x00, 0x50, 0x40, 110 | 0x00, 0xa0, 0x00, 0x00, 0x80, 0x02, 0x02, 0x08, 0x28, 0x00, 0x82, 0xa0, 0x88, 0x00, 0x00, 0x80, 111 | 0x00, 0x04, 0x00, 0x51, 0x55, 0x40, 0x00, 0x14, 0x45, 0x01, 0x05, 0x41, 0x00, 0x10, 0x00, 0x40, 112 | 0x00, 0x00, 0x80, 0x80, 0x2a, 0x02, 0x00, 0x2a, 0x80, 0x00, 0x0a, 0x80, 0x00, 0x00, 0x00, 0x80, 113 | 0x01, 0x00, 0x41, 0x01, 0x55, 0x44, 0x10, 0x45, 0x05, 0x01, 0x11, 0x41, 0x10, 0x05, 0x55, 0x00, 114 | 0x00, 0x00, 0x2a, 0x00, 0x80, 0x08, 0x0a, 0x80, 0x00, 0x82, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 115 | 0x01, 0x00, 0x00, 0x00, 0x55, 0x50, 0x11, 0x04, 0x00, 0x40, 0x00, 0x01, 0x10, 0x04, 0x00, 0x00, 116 | 0x00, 0x00, 0x02, 0x00, 0x20, 0x20, 0x20, 0x02, 0x00, 0x20, 0xa2, 0x00, 0x20, 0x00, 0x00, 0x00, 117 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x10, 0x00, 0x00, 0x15, 0x05, 0x00, 0x00, 118 | 0x00, 0x00, 0x00, 0x00, 0x20, 0x20, 0x00, 0x00, 0x02, 0x82, 0x20, 0x00, 0x00, 0x80, 0xa0, 0x00, 119 | 0x01, 0x00, 0x04, 0x00, 0x00, 0x00, 0x40, 0x00, 0x04, 0x40, 0x10, 0x00, 0x00, 0x44, 0x10, 0x00, 120 | 0x00, 0x00, 0x2a, 0x00, 0x20, 0x20, 0x80, 0x08, 0x08, 0x20, 0x08, 0x00, 0x00, 0x00, 0x08, 0x00, 121 | 0x01, 0x00, 0x01, 0x00, 0x00, 0x41, 0x00, 0x10, 0x10, 0x10, 0x04, 0x00, 0x00, 0x40, 0x00, 0x00, 122 | 0x00, 0x80, 0x20, 0x00, 0x20, 0x00, 0x00, 0x20, 0x20, 0x08, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 123 | 0x00, 0x40, 0x40, 0x40, 0x40, 0x41, 0x00, 0x00, 0x50, 0x04, 0x00, 0x00, 0x00, 0x40, 0x40, 0x00, 124 | 0x00, 0x20, 0x80, 0x20, 0x80, 0x02, 0x00, 0x00, 0x80, 0x02, 0x80, 0xa8, 0x00, 0x2a, 0x80, 0x00, 125 | 0x00, 0x11, 0x00, 0x11, 0x00, 0x40, 0x00, 0x41, 0x00, 0x00, 0x41, 0x05, 0x00, 0x00, 0x00, 0x00, 126 | 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x08, 0x00, 0x02, 0x20, 0x00, 0x2a, 0x00, 0xaa, 0x00, 0x00, 0x00, 127 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x15, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 128 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 129 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 130 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 131 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 132 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 133 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 134 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 135 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 136 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 137 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 138 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 139 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x51, 0x01, 0x44, 0x10, 0x15, 0x40, 0x00, 140 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8a, 0x22, 0x28, 0x20, 0x00, 0x80, 0x00, 141 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x51, 0x01, 0x04, 0x44, 0x11, 0x00, 0x00, 142 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0x82, 0xa8, 0x20, 0x82, 0x00, 0x00, 143 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x01, 0x04, 0x45, 0x14, 0x00, 0x00, 144 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x82, 0x2a, 0x28, 0xa2, 0x80, 0x00, 145 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 146 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 147 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 148 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 149 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 150 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 151 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 152 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 153 | }; 154 | 155 | // 'title3', 128x64px 156 | const unsigned char title3 [] PROGMEM = { 157 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 158 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 159 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 160 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 161 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 162 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 163 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x01, 0x00, 0x01, 0x11, 0x00, 164 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x80, 0xa0, 0x08, 0x08, 0x00, 0x00, 165 | 0x00, 0x00, 0x11, 0x40, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x15, 0x44, 0x00, 0x00, 0x44, 0x00, 166 | 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x88, 0x00, 0x80, 0x00, 0x2a, 0x80, 0x00, 0x08, 0x00, 0x08, 167 | 0x00, 0x00, 0x54, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x15, 0x40, 0x01, 0x00, 0x00, 0x00, 168 | 0x00, 0x00, 0xaa, 0x80, 0x00, 0x00, 0x20, 0x02, 0x88, 0x00, 0x80, 0x00, 0x00, 0x28, 0x00, 0x08, 169 | 0x00, 0x01, 0x54, 0x04, 0x00, 0x00, 0x51, 0x05, 0x00, 0x05, 0x40, 0x00, 0x00, 0x54, 0x00, 0x00, 170 | 0x00, 0x02, 0xaa, 0xa0, 0x00, 0x02, 0xa8, 0x0a, 0x80, 0x28, 0x22, 0x20, 0x08, 0xa8, 0x00, 0x00, 171 | 0x00, 0x05, 0x40, 0x01, 0x00, 0x00, 0x54, 0x15, 0x40, 0x00, 0x10, 0x04, 0x00, 0x55, 0x01, 0x00, 172 | 0x00, 0x0a, 0xa8, 0x20, 0x00, 0x02, 0xa8, 0x0a, 0x08, 0x28, 0x08, 0x00, 0x00, 0x28, 0x20, 0x00, 173 | 0x00, 0x15, 0x05, 0x00, 0x40, 0x00, 0x50, 0x00, 0x00, 0x50, 0x04, 0x00, 0x01, 0x44, 0x40, 0x00, 174 | 0x00, 0x08, 0x00, 0x80, 0x00, 0x00, 0x28, 0x00, 0x00, 0x80, 0x02, 0x20, 0x22, 0xa0, 0x00, 0x00, 175 | 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x01, 0x14, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 176 | 0x00, 0x08, 0x00, 0x80, 0x00, 0x00, 0x0a, 0x00, 0x02, 0xa0, 0x00, 0x20, 0x00, 0x08, 0x00, 0x00, 177 | 0x00, 0x01, 0x00, 0x40, 0x44, 0x00, 0x00, 0x00, 0x05, 0x01, 0x00, 0x50, 0x04, 0x00, 0x00, 0x00, 178 | 0x00, 0xa0, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x28, 0x00, 0x02, 0xa0, 0x88, 0x00, 0x00, 0x00, 179 | 0x00, 0x04, 0x00, 0x51, 0x55, 0x40, 0x00, 0x10, 0x04, 0x00, 0x01, 0x40, 0x00, 0x10, 0x00, 0x40, 180 | 0x00, 0x00, 0x80, 0x80, 0x2a, 0x02, 0x00, 0x02, 0x00, 0x00, 0x02, 0x80, 0x00, 0x00, 0x00, 0x00, 181 | 0x00, 0x00, 0x41, 0x00, 0x55, 0x40, 0x00, 0x41, 0x05, 0x01, 0x01, 0x40, 0x10, 0x04, 0x11, 0x00, 182 | 0x00, 0x00, 0x2a, 0x00, 0x80, 0x08, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 183 | 0x01, 0x00, 0x00, 0x00, 0x11, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x04, 0x00, 0x00, 184 | 0x00, 0x00, 0x02, 0x00, 0x00, 0x20, 0x20, 0x02, 0x00, 0x00, 0x82, 0x00, 0x20, 0x00, 0x00, 0x00, 185 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 186 | 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x82, 0x20, 0x00, 0x00, 0x80, 0x20, 0x00, 187 | 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 188 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 189 | 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 190 | 0x00, 0x80, 0x20, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 191 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x10, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 192 | 0x00, 0x20, 0x80, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x80, 0x00, 193 | 0x00, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 194 | 0x00, 0x0a, 0x00, 0x08, 0x00, 0x08, 0x00, 0x02, 0x20, 0x00, 0x22, 0x00, 0x82, 0x00, 0x00, 0x00, 195 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 196 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 197 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 198 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 199 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 200 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 201 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 202 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 203 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 204 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 205 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 206 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 207 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x51, 0x01, 0x44, 0x10, 0x15, 0x40, 0x00, 208 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8a, 0x22, 0x28, 0x20, 0x00, 0x80, 0x00, 209 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x51, 0x01, 0x04, 0x44, 0x11, 0x00, 0x00, 210 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0x82, 0xa8, 0x20, 0x82, 0x00, 0x00, 211 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x01, 0x04, 0x45, 0x14, 0x00, 0x00, 212 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x82, 0x2a, 0x28, 0xa2, 0x80, 0x00, 213 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 214 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 215 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 216 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 217 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 218 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 219 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 220 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 221 | }; 222 | 223 | // 'title4', 128x64px 224 | const unsigned char title4 [] PROGMEM = { 225 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 226 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 227 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 228 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 229 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 230 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 231 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x01, 0x00, 0x01, 0x11, 0x00, 232 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x80, 0x00, 0x08, 0x08, 0x00, 0x00, 233 | 0x00, 0x00, 0x11, 0x40, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x44, 0x00, 234 | 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x88, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x08, 0x00, 0x08, 235 | 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 236 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x80, 0x00, 0x00, 0x20, 0x00, 0x08, 237 | 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x01, 0x00, 0x00, 0x05, 0x40, 0x00, 0x00, 0x40, 0x00, 0x00, 238 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x28, 0x22, 0x20, 0x08, 0x80, 0x00, 0x00, 239 | 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x04, 0x00, 0x00, 0x01, 0x00, 240 | 0x00, 0x00, 0x28, 0x00, 0x00, 0x02, 0x00, 0x00, 0x08, 0x20, 0x08, 0x00, 0x00, 0x00, 0x20, 0x00, 241 | 0x00, 0x10, 0x05, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x40, 0x04, 0x00, 0x01, 0x04, 0x40, 0x00, 242 | 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x20, 0x22, 0x00, 0x00, 0x00, 243 | 0x00, 0x01, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x10, 0x00, 0x00, 0x11, 0x00, 244 | 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 245 | 0x00, 0x01, 0x00, 0x40, 0x44, 0x00, 0x00, 0x00, 0x04, 0x01, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 246 | 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x28, 0x00, 0x02, 0x00, 0x88, 0x00, 0x00, 0x00, 247 | 0x00, 0x00, 0x00, 0x41, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x01, 0x00, 0x00, 0x10, 0x00, 0x40, 248 | 0x00, 0x00, 0x80, 0x00, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 249 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x41, 0x05, 0x01, 0x01, 0x00, 0x10, 0x04, 0x11, 0x00, 250 | 0x00, 0x00, 0x22, 0x00, 0x80, 0x08, 0x00, 0x00, 0x00, 0x02, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 251 | 0x01, 0x00, 0x00, 0x00, 0x11, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x04, 0x00, 0x00, 252 | 0x00, 0x00, 0x02, 0x00, 0x00, 0x20, 0x20, 0x02, 0x00, 0x00, 0x82, 0x00, 0x20, 0x00, 0x00, 0x00, 253 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 254 | 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x82, 0x20, 0x00, 0x00, 0x80, 0x20, 0x00, 255 | 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 256 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x08, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 257 | 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 258 | 0x00, 0x80, 0x20, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 259 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x10, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 260 | 0x00, 0x20, 0x80, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x20, 0x80, 0x00, 261 | 0x00, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 262 | 0x00, 0x0a, 0x00, 0x08, 0x00, 0x08, 0x00, 0x02, 0x20, 0x00, 0x22, 0x00, 0x82, 0x00, 0x00, 0x00, 263 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 264 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 265 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 266 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 267 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 268 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 269 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 270 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 271 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 272 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 273 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 274 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 275 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x04, 0x10, 0x11, 0x40, 0x00, 276 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x22, 0x20, 0x00, 0x00, 0x00, 0x00, 277 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x44, 0x01, 0x00, 0x00, 278 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x88, 0x00, 0x00, 0x00, 0x00, 279 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 280 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x82, 0x22, 0x20, 0x22, 0x80, 0x00, 281 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 282 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 283 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 284 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 285 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 286 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 287 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 288 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 289 | }; 290 | 291 | const unsigned char brick [] PROGMEM = { 292 | // 'brick, 4x4px 293 | 0xf9, 0xdf 294 | }; 295 | 296 | const unsigned char checker [] PROGMEM = { 297 | // 'checker, 4x4px 298 | 0x5a, 0x5a 299 | }; 300 | 301 | 302 | const int button1Pin = 9; //LEFT 303 | const int button2Pin = 8; //RIGHT 304 | const int button3Pin = 7; //UP 305 | const int button4Pin = 6; //DOWN 306 | const int button5Pin = 5; //A 307 | const int button6Pin = 4; //B 308 | const int button7Pin = 2; //MENU 309 | 310 | const int sound = 3; 311 | 312 | int button1State = 0; 313 | int button2State = 0; 314 | int button3State = 0; 315 | int button4State = 0; 316 | int button5State = 0; 317 | int button6State = 0; 318 | int button7State = 0; 319 | 320 | 321 | #define ACTIVATED LOW 322 | 323 | #define DELAYMULTIPLIER 0 324 | 325 | #define MAZEHEIGHT 32 326 | #define MAZEWIDTH 15 327 | 328 | uint16_t Maze[] = { 329 | 0b1101111111111111, 330 | 0b1100000000000001, 331 | 0b1101010101010101, 332 | 0b1100000000000001, 333 | 0b1101010101010101, 334 | 0b1100000000000001, 335 | 0b1101010101010101, 336 | 0b1100000000000001, 337 | 0b1101010101010101, 338 | 0b1100000000000001, 339 | 0b1101010101010101, 340 | 0b1100000000000001, 341 | 0b1101010101010101, 342 | 0b1100000000000001, 343 | 0b1101010101010101, 344 | 0b1100000000000001, 345 | 0b1101010101010101, 346 | 0b1100000000000001, 347 | 0b1101010101010101, 348 | 0b1100000000000001, 349 | 0b1101010101010101, 350 | 0b1100000000000001, 351 | 0b1101010101010101, 352 | 0b1100000000000001, 353 | 0b1101010101010101, 354 | 0b1100000000000001, 355 | 0b1101010101010101, 356 | 0b1100000000000001, 357 | 0b1101010101010101, 358 | 0b1100000000000001, 359 | 0b1101010101010101, 360 | 0b1111111111111101, 361 | 0b0000000000000000 362 | }; 363 | 364 | uint8_t geni, genj, genk, genval, genmod; 365 | int8_t genx, geny; 366 | 367 | 368 | int posx=0, posy=2; // Where you are in the Maze 369 | 370 | int illuminatedRow=0; 371 | int blinkPlayer=1; 372 | int wallPhase=1; 373 | 374 | int level=1; 375 | 376 | 377 | 378 | 379 | 380 | void setup() { 381 | 382 | Serial.begin(9600); 383 | 384 | pinMode(button1Pin, INPUT); 385 | pinMode(button2Pin, INPUT); 386 | pinMode(button3Pin, INPUT); 387 | pinMode(button4Pin, INPUT); 388 | pinMode(button5Pin, INPUT); 389 | pinMode(button6Pin, INPUT); 390 | pinMode(button7Pin, INPUT); 391 | 392 | digitalWrite(button1Pin, HIGH); 393 | digitalWrite(button2Pin, HIGH); 394 | digitalWrite(button3Pin, HIGH); 395 | digitalWrite(button4Pin, HIGH); 396 | digitalWrite(button5Pin, HIGH); 397 | digitalWrite(button6Pin, HIGH); 398 | digitalWrite(button7Pin, HIGH); 399 | // or just 400 | // pinMode(button1Pin, INPUT_PULLUP) 401 | // etc 402 | 403 | pinMode(sound, OUTPUT); 404 | 405 | pinMode(13,OUTPUT); 406 | 407 | randomSeed(analogRead(A0)); 408 | delay(random(2,2000)); 409 | display.begin(SSD1306_SWITCHCAPVCC, 0x3C); 410 | display.clearDisplay(); 411 | 412 | // splash 413 | display.setTextColor(WHITE); 414 | //display.println(F("jakobdesign presents")); 415 | //display.print(F(" generating maze...")); 416 | display.drawBitmap(0, 0, title4 , 128, 64, WHITE); 417 | display.display(); 418 | tone(sound,1500,5); 419 | delay(100); 420 | display.clearDisplay(); 421 | display.drawBitmap(0, 0, title3 , 128, 64, WHITE); 422 | display.display(); 423 | tone(sound,1500,5); 424 | delay(100); 425 | display.clearDisplay(); 426 | display.drawBitmap(0, 0, title2 , 128, 64, WHITE); 427 | display.display(); 428 | tone(sound,1500,5); 429 | delay(100); 430 | display.clearDisplay(); 431 | display.drawBitmap(0, 0, title1 , 128, 64, WHITE); 432 | display.display(); 433 | tone(sound,1500,5); 434 | delay(3000); 435 | display.clearDisplay(); 436 | display.drawBitmap(0, 0, title2 , 128, 64, WHITE); 437 | display.display(); 438 | tone(sound,1500,5); 439 | delay(100); 440 | display.clearDisplay(); 441 | display.drawBitmap(0, 0, title3 , 128, 64, WHITE); 442 | display.display(); 443 | tone(sound,1500,5); 444 | delay(100); 445 | display.clearDisplay(); 446 | display.drawBitmap(0, 0, title4 , 128, 64, WHITE); 447 | display.display(); 448 | tone(sound,1500,5); 449 | delay(100); 450 | display.clearDisplay(); 451 | //display.drawBitmap(15, 24, splash1 , 48, 26, WHITE); 452 | //display.drawBitmap(48, 24, splash2 , 80, 40, WHITE); 453 | 454 | 455 | //splash tone 456 | 457 | //delay(200); 458 | //tone(sound,1000,200); 459 | //delay(400); 460 | //tone(sound,700,200); 461 | //delay(200); 462 | //tone(sound,1100,200); 463 | 464 | 465 | // end splash 466 | 467 | 468 | generateMaze(); 469 | 470 | 471 | //delay(2000); 472 | 473 | //for(int i=0;i=0){ 508 | wall=readPixel(posx-1,posy); 509 | if(!wall){ 510 | --posx; 511 | tone(sound,1600,5); 512 | }else{ 513 | tone(sound,100,50); 514 | } 515 | }else{ 516 | tone(sound,100,50); 517 | } 518 | delay(20); 519 | } 520 | /* ------- BUTTON 2 - RIGHT ------- */ 521 | if(button2State==ACTIVATED){ 522 | if(posx+1<=MAZEHEIGHT){ 523 | wall=readPixel(posx+1,posy); 524 | if(!wall){ 525 | ++posx; 526 | tone(sound,1600,5); 527 | }else{ 528 | tone(sound,100,50); 529 | } 530 | }else{ 531 | tone(sound,100,50); 532 | } 533 | delay(20); 534 | } 535 | /* ------- BUTTON 3 - UP ------- */ 536 | if(button3State==ACTIVATED){ 537 | if(posy-1>=2){ 538 | wall=readPixel(posx,posy-1); 539 | if(!wall){ 540 | --posy; 541 | tone(sound,1600,5); 542 | }else{ 543 | tone(sound,100,50); 544 | } 545 | }else{ 546 | tone(sound,100,50); 547 | } 548 | delay(20); 549 | } 550 | /* ------- BUTTON 4 - DOWN ------- */ 551 | if(button4State==ACTIVATED){ 552 | if(posy+1<=MAZEWIDTH){ 553 | wall=readPixel(posx,posy+1); 554 | if(!wall){ 555 | ++posy; 556 | tone(sound,1600,5); 557 | }else{ 558 | tone(sound,100,50); 559 | } 560 | }else{ 561 | tone(sound,100,50); 562 | } 563 | delay(20); 564 | } 565 | 566 | if(button5State==ACTIVATED){ 567 | display.fillCircle(20,30,5,WHITE); 568 | } 569 | if(button6State==ACTIVATED){ 570 | display.fillCircle(50,30,5,WHITE); 571 | } 572 | if(button7State==ACTIVATED){ 573 | display.fillCircle(80,30,5,WHITE); 574 | } 575 | 576 | 577 | display.setCursor(0,0); 578 | 579 | if(posx==MAZEHEIGHT){ 580 | posx=0; 581 | posy=2; 582 | displayLevelSplash(); 583 | level++; 584 | illuminatedRow=0; 585 | blinkPlayer=1; 586 | wallPhase=1; 587 | }else{ 588 | drawMaze(); 589 | } 590 | 591 | 592 | display.display(); 593 | 594 | delay(10*DELAYMULTIPLIER); 595 | 596 | } 597 | 598 | 599 | 600 | void displayLevelSplash(){ 601 | int levely=-8,levelnoy=-8,completey=-8, i, j; 602 | 603 | display.setTextColor(WHITE); 604 | for(i=0;i<3;i++){ 605 | for(j=0;j<50;j+=2){ 606 | display.clearDisplay(); 607 | if(levely<20){ 608 | levely+=2; 609 | tone(sound,levely*65,5); 610 | } 611 | if(levely==20 and levelnoy<30){ 612 | levelnoy+=2; 613 | tone(sound,levelnoy*65,5); 614 | } 615 | if(levely==20 and levelnoy==30 and completey<40){ 616 | completey+=2; 617 | tone(sound,completey*65,5); 618 | } 619 | display.setCursor(15,levely); 620 | display.print("LEVEL"); 621 | display.setCursor(45,levelnoy); 622 | display.print(level); 623 | display.setCursor(55,completey); 624 | display.print("COMPLETE!"); 625 | display.display(); 626 | } 627 | } 628 | 629 | delay(1000); 630 | 631 | levely=-8; 632 | levelnoy=-8; 633 | for(i=0;i<2;i++){ 634 | for(j=0;j<50;j+=2){ 635 | display.clearDisplay(); 636 | if(levely<20){ 637 | levely+=2; 638 | tone(sound,levely*65,5); 639 | } 640 | if(levely==20 and levelnoy<30){ 641 | levelnoy+=2; 642 | tone(sound,levelnoy*65,5); 643 | } 644 | display.setCursor(15,levely); 645 | display.print("LEVEL"); 646 | display.setCursor(45,levelnoy); 647 | display.print(level+1); 648 | display.display(); 649 | } 650 | } 651 | 652 | delay(1500); 653 | 654 | generateMaze(); 655 | } 656 | 657 | void drawMazeSerial(){ 658 | uint8_t i, j; 659 | bool dot; 660 | for(i=0;i<=MAZEHEIGHT;i++){ 661 | for(j=0;j<=MAZEWIDTH;j++){ 662 | dot=readPixel(i,j); 663 | if(dot){ 664 | Serial.print("*"); 665 | }else{ 666 | Serial.print(" "); 667 | } 668 | } 669 | Serial.println(); 670 | } 671 | } 672 | 673 | 674 | void drawMaze(){ 675 | uint8_t i, j; 676 | bool wall; 677 | 678 | for(i=0;i<=MAZEHEIGHT;i++){ 679 | for(j=0;j<=MAZEWIDTH;j++){ 680 | wall=readPixel(i,j); 681 | if(wall){ 682 | 683 | //walls 684 | 685 | if(wallPhase==1){ 686 | if(illuminatedRow>=i){ 687 | display.drawPixel(i*4,j*4,WHITE); 688 | display.drawPixel(i*4,j*4+2,WHITE); 689 | display.drawPixel(i*4+1,j*4+1,WHITE); 690 | display.drawPixel(i*4+1,j*4+3,WHITE); 691 | display.drawPixel(i*4+2,j*4+2,WHITE); 692 | display.drawPixel(i*4+2,j*4+4,WHITE); 693 | display.drawPixel(i*4+3,j*4+1,WHITE); 694 | display.drawPixel(i*4+3,j*4+3,WHITE); 695 | }else{ 696 | display.drawPixel(i*4+2,j*4+2,WHITE); 697 | } 698 | }else if(wallPhase==2){ 699 | if(illuminatedRow>=i){ 700 | display.fillRect(i*4,j*4,4,4,WHITE); 701 | }else{ 702 | //display.drawRect(i*4,j*4,4,4,WHITE); 703 | display.drawPixel(i*4,j*4,WHITE); 704 | display.drawPixel(i*4,j*4+2,WHITE); 705 | display.drawPixel(i*4+1,j*4+1,WHITE); 706 | display.drawPixel(i*4+1,j*4+3,WHITE); 707 | display.drawPixel(i*4+2,j*4+2,WHITE); 708 | display.drawPixel(i*4+2,j*4+4,WHITE); 709 | display.drawPixel(i*4+3,j*4+1,WHITE); 710 | display.drawPixel(i*4+3,j*4+3,WHITE); 711 | } 712 | }else if(wallPhase==3){ 713 | display.fillRect(i*4,j*4,4,4,WHITE); 714 | } 715 | //display.drawBitmap(i*4, j*4, brick , 4, 4, WHITE); 716 | 717 | if(wallPhase==3 and (i==posx or j==posy) and j!=0){ 718 | //draw crosshair 719 | display.drawPixel(i*4+2,j*4+2,BLACK); 720 | } 721 | 722 | }else{ 723 | 724 | //not walls 725 | 726 | if(wallPhase==3 and (i==posx or j==posy) and j!=0){ 727 | //draw crosshair 728 | display.drawPixel(i*4+2,j*4+2,WHITE); 729 | } 730 | //display.drawBitmap(i*4, j*4, checker , 4, 4, WHITE); 731 | /*display.drawPixel(i*4,j*4,WHITE); 732 | display.drawPixel(i*4,j*4+2,WHITE); 733 | display.drawPixel(i*4+1,j*4+1,WHITE); 734 | display.drawPixel(i*4+1,j*4+3,WHITE); 735 | display.drawPixel(i*4+2,j*4+2,WHITE); 736 | display.drawPixel(i*4+2,j*4+4,WHITE); 737 | display.drawPixel(i*4+3,j*4+1,WHITE); 738 | display.drawPixel(i*4+3,j*4+3,WHITE); 739 | */ 740 | } 741 | } 742 | } 743 | 744 | 745 | //display level 746 | //display.fillRect(0,0,128,8,WHITE); 747 | if(wallPhase>1){ 748 | display.setTextColor(BLACK); 749 | display.setCursor(0,0); 750 | display.print("level: "); 751 | display.print(level); 752 | } 753 | 754 | 755 | //draw player 756 | /* 757 | display.drawPixel(posx*4,posy*4+1,WHITE); 758 | display.drawPixel(posx*4,posy*4+2,WHITE); 759 | 760 | display.drawPixel(posx*4+1,posy*4,WHITE); 761 | display.drawPixel(posx*4+2,posy*4,WHITE); 762 | 763 | display.drawPixel(posx*4+3,posy*4+1,WHITE); 764 | display.drawPixel(posx*4+3,posy*4+2,WHITE); 765 | 766 | display.drawPixel(posx*4+1,posy*4+3,WHITE); 767 | display.drawPixel(posx*4+2,posy*4+3,WHITE); 768 | */ 769 | if(blinkPlayer==1){ 770 | display.fillCircle(posx*4+1,posy*4+1,3,WHITE); 771 | display.fillCircle(posx*4+1,posy*4+1,1,BLACK); 772 | }else{ 773 | display.fillCircle(posx*4+1,posy*4+1,3,BLACK); 774 | display.fillCircle(posx*4+1,posy*4+1,1,WHITE); 775 | } 776 | /* 777 | if(blinkPlayer==1){ 778 | display.drawPixel(posx*4+1,posy*4+1,WHITE); 779 | } 780 | if(blinkPlayer==2){ 781 | display.drawPixel(posx*4+2,posy*4+1,WHITE); 782 | } 783 | if(blinkPlayer==3){ 784 | display.drawPixel(posx*4+1,posy*4+2,WHITE); 785 | } 786 | if(blinkPlayer==4){ 787 | display.drawPixel(posx*4+2,posy*4+2,WHITE); 788 | } 789 | */ 790 | blinkPlayer++; 791 | if(blinkPlayer>16){ 792 | blinkPlayer=1; 793 | } 794 | 795 | if(illuminatedRow>8; 813 | byte Lo = Data & 0x00FF; 814 | if(j>7){ 815 | return bitRead(Lo, 7 - (j % 8)); 816 | }else{ 817 | //j=j-8; 818 | return bitRead(Hi, 7 - (j % 8)); 819 | } 820 | } 821 | 822 | 823 | 824 | 825 | 826 | void generateMaze(){ 827 | bool alternate=false; 828 | for (geni = 1; geni < MAZEHEIGHT-1; geni++) { 829 | if(!alternate){ 830 | Maze[geni] = 0b1100000000000001; 831 | }else{ 832 | Maze[geni] = 0b1101010101010101; 833 | } 834 | alternate=!alternate; 835 | } 836 | genmod = 4; 837 | for (geni = 2; geni < MAZEHEIGHT - 2; geni += 2) { 838 | for (genj = 3; genj < MAZEWIDTH - 1; genj += 2) { 839 | Maze[geni] |= (0x8000 >> genj); 840 | do{ 841 | //Roll a stick 842 | randomSeed(analogRead(A0)); 843 | //genval = (uint8_t)(analogRead(A0) & 0x00FF) % genmod; 844 | genval = (uint8_t)(random(10000) & 0x00FF) % genmod; 845 | //val = analogRead(A0) % mod; 846 | genx = 0, geny = 0; 847 | if (genval == 0)geny = 1; 848 | if (genval == 1)genx = -1; 849 | if (genval == 2)genx = 1; 850 | if (genval == 3)geny = -1; 851 | }while ((Maze[geni + geny] & (0x8000 >> (genj + genx)))); 852 | Maze[geni + geny] |= (0x8000 >> (genj + genx)); 853 | } 854 | genmod = 3; 855 | } 856 | } 857 | -------------------------------------------------------------------------------- /Adafruit_SH1106-master.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alojzjakob/A-Maze/37e2305fcc4f17f021fd6352b4507513ae6cb762/Adafruit_SH1106-master.zip -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # A-Maze 2 | ## Arduino maze game 3 | 4 | [![ko-fi](https://www.ko-fi.com/img/donate_sm.png)](https://ko-fi.com/A654MLL) 5 | 6 | ## SSD1306 OLED (default version) 7 | ## SH1106 OLED (included in separate folder) 8 | ## Arduboy version ported by KeyboardCamper, project page: https://community.arduboy.com/t/a-maze-a-game-of-random-generated-mazes/5856 9 | ### for SH1106 i used this library: https://github.com/wonho-maker/Adafruit_SH1106 10 | -------------------------------------------------------------------------------- /images/brick.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alojzjakob/A-Maze/37e2305fcc4f17f021fd6352b4507513ae6cb762/images/brick.bmp -------------------------------------------------------------------------------- /images/checker.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alojzjakob/A-Maze/37e2305fcc4f17f021fd6352b4507513ae6cb762/images/checker.bmp -------------------------------------------------------------------------------- /images/mazeTile.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alojzjakob/A-Maze/37e2305fcc4f17f021fd6352b4507513ae6cb762/images/mazeTile.bmp -------------------------------------------------------------------------------- /images/mazeTile.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alojzjakob/A-Maze/37e2305fcc4f17f021fd6352b4507513ae6cb762/images/mazeTile.xcf -------------------------------------------------------------------------------- /images/player1.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alojzjakob/A-Maze/37e2305fcc4f17f021fd6352b4507513ae6cb762/images/player1.bmp -------------------------------------------------------------------------------- /images/player2.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alojzjakob/A-Maze/37e2305fcc4f17f021fd6352b4507513ae6cb762/images/player2.bmp -------------------------------------------------------------------------------- /images/rock.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alojzjakob/A-Maze/37e2305fcc4f17f021fd6352b4507513ae6cb762/images/rock.bmp -------------------------------------------------------------------------------- /images/tinygamecorner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alojzjakob/A-Maze/37e2305fcc4f17f021fd6352b4507513ae6cb762/images/tinygamecorner.png -------------------------------------------------------------------------------- /images/tinygamecorner.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alojzjakob/A-Maze/37e2305fcc4f17f021fd6352b4507513ae6cb762/images/tinygamecorner.xcf -------------------------------------------------------------------------------- /images/title.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alojzjakob/A-Maze/37e2305fcc4f17f021fd6352b4507513ae6cb762/images/title.bmp -------------------------------------------------------------------------------- /images/title.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alojzjakob/A-Maze/37e2305fcc4f17f021fd6352b4507513ae6cb762/images/title.xcf -------------------------------------------------------------------------------- /images/title2.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alojzjakob/A-Maze/37e2305fcc4f17f021fd6352b4507513ae6cb762/images/title2.bmp -------------------------------------------------------------------------------- /images/title3.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alojzjakob/A-Maze/37e2305fcc4f17f021fd6352b4507513ae6cb762/images/title3.bmp -------------------------------------------------------------------------------- /images/title4.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alojzjakob/A-Maze/37e2305fcc4f17f021fd6352b4507513ae6cb762/images/title4.bmp --------------------------------------------------------------------------------