Class containing all the bitmaps for the 10 different mazes used throughout the game.

Committer:
el15mh
Date:
Thu May 04 14:01:45 2017 +0000
Revision:
3:8547399e8c29
Parent:
2:834bd321a30d
Doxygen commenting added

Who changed what in which revision?

UserRevisionLine numberNew contents of line
el15mh 0:d5a32831fa28 1 #include "Maze.h"
el15mh 0:d5a32831fa28 2
el15mh 3:8547399e8c29 3 /**
el15mh 3:8547399e8c29 4 * @details - constructor
el15mh 3:8547399e8c29 5 */
el15mh 0:d5a32831fa28 6 Maze::Maze()
el15mh 0:d5a32831fa28 7 {
el15mh 0:d5a32831fa28 8
el15mh 0:d5a32831fa28 9 }
el15mh 0:d5a32831fa28 10
el15mh 3:8547399e8c29 11 /**
el15mh 3:8547399e8c29 12 * @details - constructor
el15mh 3:8547399e8c29 13 */
el15mh 0:d5a32831fa28 14 Maze::~Maze()
el15mh 0:d5a32831fa28 15 {
el15mh 0:d5a32831fa28 16
el15mh 0:d5a32831fa28 17 }
el15mh 0:d5a32831fa28 18
el15mh 3:8547399e8c29 19 /**
el15mh 3:8547399e8c29 20 * @details - Initalise object with index value.
el15mh 3:8547399e8c29 21 */
el15mh 1:8ed19eb9e7e5 22 void Maze::init(int mazeIndex)
el15mh 1:8ed19eb9e7e5 23 {
el15mh 1:8ed19eb9e7e5 24 _mazeIndex = mazeIndex;
el15mh 1:8ed19eb9e7e5 25 }
el15mh 1:8ed19eb9e7e5 26
el15mh 3:8547399e8c29 27 /**
el15mh 3:8547399e8c29 28 * @details - Maze is drawn on LCD screen.
el15mh 3:8547399e8c29 29 */
el15mh 1:8ed19eb9e7e5 30 void Maze::draw(N5110 &lcd)
el15mh 1:8ed19eb9e7e5 31 {
el15mh 2:834bd321a30d 32 /// EASY MAZES ///
el15mh 1:8ed19eb9e7e5 33 if (_mazeIndex == 0){
el15mh 2:834bd321a30d 34 mazeIndexZero(lcd);
el15mh 1:8ed19eb9e7e5 35 }
el15mh 1:8ed19eb9e7e5 36 else if (_mazeIndex == 1){
el15mh 2:834bd321a30d 37 mazeIndexOne(lcd);
el15mh 1:8ed19eb9e7e5 38 }
el15mh 1:8ed19eb9e7e5 39 else if (_mazeIndex == 2){
el15mh 2:834bd321a30d 40 mazeIndexTwo(lcd);
el15mh 2:834bd321a30d 41 }
el15mh 2:834bd321a30d 42 /// MEDIUM MAZES ///
el15mh 2:834bd321a30d 43 else if (_mazeIndex == 3){
el15mh 2:834bd321a30d 44 mazeIndexThree(lcd);
el15mh 2:834bd321a30d 45 }
el15mh 2:834bd321a30d 46 else if (_mazeIndex == 4){
el15mh 2:834bd321a30d 47 mazeIndexFour(lcd);
el15mh 2:834bd321a30d 48 }
el15mh 2:834bd321a30d 49 else if (_mazeIndex == 5){
el15mh 2:834bd321a30d 50 mazeIndexFive(lcd);
el15mh 2:834bd321a30d 51 }
el15mh 2:834bd321a30d 52 /// HARD MAZES ///
el15mh 2:834bd321a30d 53 else if (_mazeIndex == 6){
el15mh 2:834bd321a30d 54 mazeIndexSix(lcd);
el15mh 2:834bd321a30d 55 }
el15mh 2:834bd321a30d 56 else if (_mazeIndex == 7){
el15mh 2:834bd321a30d 57 mazeIndexSeven(lcd);
el15mh 2:834bd321a30d 58 }
el15mh 2:834bd321a30d 59 else if (_mazeIndex == 8){
el15mh 2:834bd321a30d 60 mazeIndexEight(lcd);
el15mh 2:834bd321a30d 61 }
el15mh 2:834bd321a30d 62 /// EXTREME MAZE ///
el15mh 2:834bd321a30d 63 else if (_mazeIndex == 9){
el15mh 2:834bd321a30d 64 mazeIndexNine(lcd);
el15mh 1:8ed19eb9e7e5 65 }
el15mh 1:8ed19eb9e7e5 66 }
el15mh 1:8ed19eb9e7e5 67
el15mh 3:8547399e8c29 68 /**
el15mh 3:8547399e8c29 69 * @details - Creating lcd buffer for maze 0
el15mh 3:8547399e8c29 70 */
el15mh 2:834bd321a30d 71 void Maze::mazeIndexZero(N5110 &lcd)
el15mh 0:d5a32831fa28 72 {
el15mh 2:834bd321a30d 73 // easy maze 1
el15mh 2:834bd321a30d 74 // index 0
el15mh 2:834bd321a30d 75 lcd.drawRect(0, 0, 84, 48, FILL_TRANSPARENT);
el15mh 0:d5a32831fa28 76
el15mh 2:834bd321a30d 77 lcd.drawLine(10, 0, 10, 39, FILL_BLACK);
el15mh 2:834bd321a30d 78 lcd.drawLine(10, 39, 20, 39, FILL_BLACK);
el15mh 0:d5a32831fa28 79 lcd.drawLine(20, 0, 20, 20, FILL_BLACK);
el15mh 2:834bd321a30d 80 lcd.drawLine(30, 10, 39, 10, FILL_BLACK);
el15mh 0:d5a32831fa28 81 lcd.drawLine(20, 30, 30, 30, FILL_BLACK);
el15mh 0:d5a32831fa28 82 lcd.drawLine(20, 20, 40, 20, FILL_BLACK);
el15mh 0:d5a32831fa28 83 lcd.drawLine(40, 0, 40, 10, FILL_BLACK);
el15mh 0:d5a32831fa28 84 lcd.drawLine(30, 30, 30, HEIGHT - 1, FILL_BLACK);
el15mh 2:834bd321a30d 85 lcd.drawLine(30, 39, 50, 39, FILL_BLACK);
el15mh 0:d5a32831fa28 86 lcd.drawLine(40, 20, 40, 30, FILL_BLACK);
el15mh 0:d5a32831fa28 87 lcd.drawLine(40, 30, 60, 30, FILL_BLACK);
el15mh 2:834bd321a30d 88 lcd.drawLine(50, 20, 71, 20, FILL_BLACK);
el15mh 0:d5a32831fa28 89 lcd.drawLine(50, 10, 50, 20, FILL_BLACK);
el15mh 2:834bd321a30d 90 lcd.drawLine(60, 30, 60, 39, FILL_BLACK);
el15mh 2:834bd321a30d 91 lcd.drawLine(71, 20, 71, 39, FILL_BLACK);
el15mh 0:d5a32831fa28 92 lcd.drawLine(50, 10, WIDTH - 1, 10, FILL_BLACK);
el15mh 0:d5a32831fa28 93
el15mh 2:834bd321a30d 94 // drawing the goal
el15mh 2:834bd321a30d 95 for (int j = 1; j < 10; j++){
el15mh 2:834bd321a30d 96 lcd.clearPixel(83, j);
el15mh 2:834bd321a30d 97 }
el15mh 2:834bd321a30d 98 }
el15mh 2:834bd321a30d 99
el15mh 3:8547399e8c29 100 /**
el15mh 3:8547399e8c29 101 * @details - Creating lcd buffer for maze 1
el15mh 3:8547399e8c29 102 */
el15mh 2:834bd321a30d 103 void Maze::mazeIndexOne(N5110 &lcd)
el15mh 2:834bd321a30d 104 {
el15mh 2:834bd321a30d 105 // easy maze 2
el15mh 2:834bd321a30d 106 // index 1
el15mh 2:834bd321a30d 107 lcd.drawRect(0, 0, 84, 48, FILL_TRANSPARENT);
el15mh 2:834bd321a30d 108
el15mh 2:834bd321a30d 109 lcd.drawLine(10, 0, 10, 20, FILL_BLACK);
el15mh 2:834bd321a30d 110 lcd.drawLine(20, 10, 40, 10, FILL_BLACK);
el15mh 2:834bd321a30d 111 lcd.drawLine(50, 10, 71, 10, FILL_BLACK);
el15mh 2:834bd321a30d 112 lcd.drawLine(30, 10, 30, 30, FILL_BLACK);
el15mh 2:834bd321a30d 113 lcd.drawLine(50, 10, 50, 30, FILL_BLACK);
el15mh 2:834bd321a30d 114 lcd.drawLine(10, 20, 20, 20, FILL_BLACK);
el15mh 2:834bd321a30d 115 lcd.drawLine(40, 20, 50, 20, FILL_BLACK);
el15mh 2:834bd321a30d 116 lcd.drawLine(71, 20, 83, 20, FILL_BLACK);
el15mh 2:834bd321a30d 117 lcd.drawLine(60, 20, 60, 39, FILL_BLACK);
el15mh 2:834bd321a30d 118 lcd.drawLine(71, 20, 71, 30, FILL_BLACK);
el15mh 2:834bd321a30d 119 lcd.drawLine(20, 30, 40, 30, FILL_BLACK);
el15mh 2:834bd321a30d 120 lcd.drawLine(10, 30, 10, 39, FILL_BLACK);
el15mh 2:834bd321a30d 121 lcd.drawLine(40, 30, 40, 47, FILL_BLACK);
el15mh 2:834bd321a30d 122 lcd.drawLine(60, 10, 60, 20, FILL_BLACK);
el15mh 2:834bd321a30d 123 lcd.drawLine(10, 39, 40, 39, FILL_BLACK);
el15mh 2:834bd321a30d 124 lcd.drawLine(50, 39, 83, 39, FILL_BLACK);
el15mh 2:834bd321a30d 125
el15mh 2:834bd321a30d 126 // drawing the goal
el15mh 2:834bd321a30d 127 for (int j = 21; j < 30; j++){
el15mh 2:834bd321a30d 128 lcd.clearPixel(83, j);
el15mh 2:834bd321a30d 129 }
el15mh 2:834bd321a30d 130 }
el15mh 2:834bd321a30d 131
el15mh 3:8547399e8c29 132 /**
el15mh 3:8547399e8c29 133 * @details - Creating lcd buffer for maze 2
el15mh 3:8547399e8c29 134 */
el15mh 2:834bd321a30d 135 void Maze::mazeIndexTwo(N5110 &lcd)
el15mh 2:834bd321a30d 136 {
el15mh 2:834bd321a30d 137 // easy maze 3
el15mh 2:834bd321a30d 138 // index 2
el15mh 2:834bd321a30d 139 lcd.drawRect(0, 0, 84, 48, FILL_TRANSPARENT);
el15mh 2:834bd321a30d 140
el15mh 2:834bd321a30d 141 lcd.drawLine(20, 0, 20, 20, FILL_BLACK);
el15mh 2:834bd321a30d 142 lcd.drawLine(40, 0, 40, 20, FILL_BLACK);
el15mh 2:834bd321a30d 143 lcd.drawLine(0, 10, 10, 10, FILL_BLACK);
el15mh 2:834bd321a30d 144 lcd.drawLine(10, 30, 40, 30, FILL_BLACK);
el15mh 2:834bd321a30d 145 lcd.drawLine(71, 0, 71, 10, FILL_BLACK);
el15mh 2:834bd321a30d 146 lcd.drawLine(10, 10, 10, 20, FILL_BLACK);
el15mh 2:834bd321a30d 147 lcd.drawLine(50, 10, 60, 10, FILL_BLACK);
el15mh 2:834bd321a30d 148 lcd.drawLine(60, 20, 60, 30, FILL_BLACK);
el15mh 2:834bd321a30d 149 lcd.drawLine(71, 30, 83, 30, FILL_BLACK);
el15mh 2:834bd321a30d 150 lcd.drawLine(30, 10, 30, 39, FILL_BLACK);
el15mh 2:834bd321a30d 151 lcd.drawLine(50, 10, 50, 39, FILL_BLACK);
el15mh 2:834bd321a30d 152 lcd.drawLine(60, 20, 83, 20, FILL_BLACK);
el15mh 2:834bd321a30d 153 lcd.drawLine(10, 30, 10, 39, FILL_BLACK);
el15mh 2:834bd321a30d 154 lcd.drawLine(40, 30, 40, 47, FILL_BLACK);
el15mh 2:834bd321a30d 155 lcd.drawLine(71, 30, 71, 39, FILL_BLACK);
el15mh 2:834bd321a30d 156 lcd.drawLine(20, 39, 20, 47, FILL_BLACK);
el15mh 2:834bd321a30d 157 lcd.drawLine(50, 39, 71, 39, FILL_BLACK);
el15mh 2:834bd321a30d 158
el15mh 2:834bd321a30d 159 // drawing the goal
el15mh 2:834bd321a30d 160 for (int j = 21; j < 30; j++){
el15mh 2:834bd321a30d 161 lcd.clearPixel(83, j);
el15mh 2:834bd321a30d 162 }
el15mh 2:834bd321a30d 163
el15mh 2:834bd321a30d 164 }
el15mh 2:834bd321a30d 165
el15mh 3:8547399e8c29 166 /**
el15mh 3:8547399e8c29 167 * @details - Creating lcd buffer for maze 3
el15mh 3:8547399e8c29 168 */
el15mh 2:834bd321a30d 169 void Maze::mazeIndexThree(N5110 &lcd)
el15mh 2:834bd321a30d 170 {
el15mh 2:834bd321a30d 171 // medium maze 1
el15mh 2:834bd321a30d 172 // maze index 3
el15mh 2:834bd321a30d 173 lcd.drawRect(0, 0, 84, 48, FILL_TRANSPARENT);
el15mh 2:834bd321a30d 174
el15mh 2:834bd321a30d 175 lcd.drawLine(16, 0, 16, 8, FILL_BLACK);
el15mh 2:834bd321a30d 176 lcd.drawLine(56, 0, 56, 16, FILL_BLACK);
el15mh 2:834bd321a30d 177 lcd.drawLine(80, 0, 80, 16, FILL_BLACK);
el15mh 2:834bd321a30d 178 lcd.drawLine(8, 8, 24, 8, FILL_BLACK);
el15mh 2:834bd321a30d 179 lcd.drawLine(32, 8, 48, 8, FILL_BLACK);
el15mh 2:834bd321a30d 180 lcd.drawLine(64, 8, 72, 8, FILL_BLACK);
el15mh 2:834bd321a30d 181 lcd.drawLine(8, 8, 8, 40, FILL_BLACK);
el15mh 2:834bd321a30d 182 lcd.drawLine(24, 8, 24, 16, FILL_BLACK);
el15mh 2:834bd321a30d 183 lcd.drawLine(32, 8, 32, 40, FILL_BLACK);
el15mh 2:834bd321a30d 184 lcd.drawLine(48, 8, 48, 16, FILL_BLACK);
el15mh 2:834bd321a30d 185 lcd.drawLine(64, 8, 64, 24, FILL_BLACK);
el15mh 2:834bd321a30d 186 lcd.drawLine(72, 8, 72, 24, FILL_BLACK);
el15mh 2:834bd321a30d 187 lcd.drawLine(16, 16, 16, 24, FILL_BLACK);
el15mh 2:834bd321a30d 188 lcd.drawLine(40, 16, 40, 24, FILL_BLACK);
el15mh 2:834bd321a30d 189 lcd.drawLine(80, 16, 84, 16, FILL_BLACK);
el15mh 2:834bd321a30d 190 lcd.drawLine(16, 24, 32, 24, FILL_BLACK);
el15mh 2:834bd321a30d 191 lcd.drawLine(40, 24, 64, 24, FILL_BLACK);
el15mh 2:834bd321a30d 192 lcd.drawLine(8, 32, 24, 32, FILL_BLACK);
el15mh 2:834bd321a30d 193 lcd.drawLine(40, 32, 40, 40, FILL_BLACK);
el15mh 2:834bd321a30d 194 lcd.drawLine(48, 32, 48, 48, FILL_BLACK);
el15mh 2:834bd321a30d 195 lcd.drawLine(64, 32, 72, 32, FILL_BLACK);
el15mh 2:834bd321a30d 196 lcd.drawLine(72, 32, 72, 40, FILL_BLACK);
el15mh 2:834bd321a30d 197 lcd.drawLine(32, 40, 40, 40, FILL_BLACK);
el15mh 2:834bd321a30d 198 lcd.drawLine(72, 40, 84, 40, FILL_BLACK);
el15mh 2:834bd321a30d 199 lcd.drawLine(16, 40, 16, 48, FILL_BLACK);
el15mh 2:834bd321a30d 200 lcd.drawLine(64, 40, 64, 48, FILL_BLACK);
el15mh 2:834bd321a30d 201 lcd.drawLine(24, 32, 24, 40, FILL_BLACK);
el15mh 2:834bd321a30d 202 lcd.drawLine(40, 24, 40, 40, FILL_BLACK);
el15mh 2:834bd321a30d 203 lcd.drawLine(56, 24, 56, 40, FILL_BLACK);
el15mh 2:834bd321a30d 204 lcd.drawLine(64, 32, 72, 32, FILL_BLACK);
el15mh 2:834bd321a30d 205 lcd.drawLine(56, 40, 64, 40, FILL_BLACK);
el15mh 2:834bd321a30d 206
el15mh 2:834bd321a30d 207 // drawing the goal
el15mh 2:834bd321a30d 208 for (int j = 41; j < 47; j++){
el15mh 2:834bd321a30d 209 lcd.clearPixel(83, j);
el15mh 2:834bd321a30d 210 }
el15mh 2:834bd321a30d 211 }
el15mh 2:834bd321a30d 212
el15mh 3:8547399e8c29 213 /**
el15mh 3:8547399e8c29 214 * @details - Creating lcd buffer for maze 4
el15mh 3:8547399e8c29 215 */
el15mh 2:834bd321a30d 216 void Maze::mazeIndexFour(N5110 &lcd)
el15mh 2:834bd321a30d 217 {
el15mh 2:834bd321a30d 218 // medium maze 2
el15mh 2:834bd321a30d 219 // index 4
el15mh 2:834bd321a30d 220 lcd.drawRect(0, 0, 84, 48, FILL_TRANSPARENT);
el15mh 2:834bd321a30d 221
el15mh 2:834bd321a30d 222 // vertical
el15mh 2:834bd321a30d 223 lcd.drawLine(8, 0, 8, 8, FILL_BLACK);
el15mh 2:834bd321a30d 224 lcd.drawLine(32, 0, 32, 16, FILL_BLACK);
el15mh 2:834bd321a30d 225 lcd.drawLine(64, 0, 64, 16, FILL_BLACK);
el15mh 2:834bd321a30d 226
el15mh 2:834bd321a30d 227 //horizontal
el15mh 2:834bd321a30d 228 lcd.drawLine(16, 8, 24, 8, FILL_BLACK);
el15mh 2:834bd321a30d 229 lcd.drawLine(40, 8, 56, 8, FILL_BLACK);
el15mh 2:834bd321a30d 230 //vertical
el15mh 2:834bd321a30d 231 lcd.drawLine(16, 8, 16, 24, FILL_BLACK);
el15mh 2:834bd321a30d 232 lcd.drawLine(40, 8, 40, 32, FILL_BLACK);
el15mh 2:834bd321a30d 233 lcd.drawLine(73, 8, 73, 32, FILL_BLACK);
el15mh 2:834bd321a30d 234
el15mh 2:834bd321a30d 235 // horizontal
el15mh 2:834bd321a30d 236 lcd.drawLine(0, 16, 8, 16, FILL_BLACK);
el15mh 2:834bd321a30d 237 lcd.drawLine(24, 16, 32, 16, FILL_BLACK);
el15mh 2:834bd321a30d 238 lcd.drawLine(48, 16, 64, 16, FILL_BLACK);
el15mh 2:834bd321a30d 239 // vertical
el15mh 2:834bd321a30d 240 lcd.drawLine(56, 16, 56, 32, FILL_BLACK);
el15mh 2:834bd321a30d 241
el15mh 2:834bd321a30d 242 // horizontal
el15mh 2:834bd321a30d 243 lcd.drawLine(8, 24, 48, 24, FILL_BLACK);
el15mh 2:834bd321a30d 244 lcd.drawLine(64, 24, 73, 24, FILL_BLACK);
el15mh 2:834bd321a30d 245 // vertical
el15mh 2:834bd321a30d 246 lcd.drawLine(8, 24, 8, 40, FILL_BLACK);
el15mh 2:834bd321a30d 247 lcd.drawLine(64, 24, 64, 40, FILL_BLACK);
el15mh 2:834bd321a30d 248
el15mh 2:834bd321a30d 249 // horizontal
el15mh 2:834bd321a30d 250 lcd.drawLine(24, 32, 56, 32, FILL_BLACK);
el15mh 2:834bd321a30d 251 // vertical
el15mh 2:834bd321a30d 252 lcd.drawLine(16, 32, 16, 40, FILL_BLACK);
el15mh 2:834bd321a30d 253 lcd.drawLine(32, 32, 32, 40, FILL_BLACK);
el15mh 2:834bd321a30d 254 lcd.drawLine(48, 32, 48, 40, FILL_BLACK);
el15mh 2:834bd321a30d 255
el15mh 2:834bd321a30d 256 // horizontal
el15mh 2:834bd321a30d 257 lcd.drawLine(16, 40, 32, 40, FILL_BLACK);
el15mh 2:834bd321a30d 258 lcd.drawLine(64, 40, 83, 40, FILL_BLACK);
el15mh 2:834bd321a30d 259 // vertical
el15mh 2:834bd321a30d 260 lcd.drawLine(40, 40, 40, 47, FILL_BLACK);
el15mh 2:834bd321a30d 261 lcd.drawLine(56, 40, 56, 47, FILL_BLACK);
el15mh 2:834bd321a30d 262
el15mh 2:834bd321a30d 263 // drawing the goal
el15mh 2:834bd321a30d 264 for (int j = 41; j < 47; j++){
el15mh 2:834bd321a30d 265 lcd.clearPixel(83, j);
el15mh 2:834bd321a30d 266 }
el15mh 2:834bd321a30d 267
el15mh 2:834bd321a30d 268 }
el15mh 2:834bd321a30d 269
el15mh 3:8547399e8c29 270 /**
el15mh 3:8547399e8c29 271 * @details - Creating lcd buffer for maze 5
el15mh 3:8547399e8c29 272 */
el15mh 2:834bd321a30d 273 void Maze::mazeIndexFive(N5110 &lcd)
el15mh 2:834bd321a30d 274 {
el15mh 2:834bd321a30d 275 // medium maze 3
el15mh 2:834bd321a30d 276 // maze index 5
el15mh 2:834bd321a30d 277
el15mh 2:834bd321a30d 278 lcd.drawRect(0, 0, 84, 48, FILL_TRANSPARENT);
el15mh 2:834bd321a30d 279
el15mh 2:834bd321a30d 280 // vertical
el15mh 2:834bd321a30d 281 lcd.drawLine(8, 0, 8, 16, FILL_BLACK);
el15mh 2:834bd321a30d 282 lcd.drawLine(24, 0, 24, 16, FILL_BLACK);
el15mh 2:834bd321a30d 283 lcd.drawLine(48, 0, 48, 16, FILL_BLACK);
el15mh 2:834bd321a30d 284 lcd.drawLine(64, 0, 64, 8, FILL_BLACK);
el15mh 2:834bd321a30d 285
el15mh 2:834bd321a30d 286 // horizontal
el15mh 2:834bd321a30d 287 lcd.drawLine(32, 8, 40, 8, FILL_BLACK);
el15mh 2:834bd321a30d 288 // vertical
el15mh 2:834bd321a30d 289 lcd.drawLine(16, 8, 16, 16, FILL_BLACK);
el15mh 2:834bd321a30d 290 lcd.drawLine(32, 8, 32, 24, FILL_BLACK);
el15mh 2:834bd321a30d 291 lcd.drawLine(56, 8, 56, 24, FILL_BLACK);
el15mh 2:834bd321a30d 292 lcd.drawLine(73, 8, 73, 16, FILL_BLACK);
el15mh 2:834bd321a30d 293
el15mh 2:834bd321a30d 294 // horizontal
el15mh 2:834bd321a30d 295 lcd.drawLine(16, 16, 24, 16, FILL_BLACK);
el15mh 2:834bd321a30d 296 lcd.drawLine(40, 16, 48, 16, FILL_BLACK);
el15mh 2:834bd321a30d 297 lcd.drawLine(56, 16, 73, 16, FILL_BLACK);
el15mh 2:834bd321a30d 298 // vertical
el15mh 2:834bd321a30d 299
el15mh 2:834bd321a30d 300 // horizontal
el15mh 2:834bd321a30d 301 lcd.drawLine(0, 24, 8, 24, FILL_BLACK);
el15mh 2:834bd321a30d 302 lcd.drawLine(16, 24, 56, 24, FILL_BLACK);
el15mh 2:834bd321a30d 303 lcd.drawLine(64, 24, 83, 24, FILL_BLACK);
el15mh 2:834bd321a30d 304 // vertical
el15mh 2:834bd321a30d 305 lcd.drawLine(16, 24, 16, 32, FILL_BLACK);
el15mh 2:834bd321a30d 306 lcd.drawLine(40, 24, 40, 40, FILL_BLACK);
el15mh 2:834bd321a30d 307
el15mh 2:834bd321a30d 308 // horizontal
el15mh 2:834bd321a30d 309 lcd.drawLine(8, 32, 32, 32, FILL_BLACK);
el15mh 2:834bd321a30d 310 lcd.drawLine(48, 32, 73, 32, FILL_BLACK);
el15mh 2:834bd321a30d 311 // vertical
el15mh 2:834bd321a30d 312 lcd.drawLine(8, 32, 8, 40, FILL_BLACK);
el15mh 2:834bd321a30d 313 lcd.drawLine(48, 32, 48, 40, FILL_BLACK);
el15mh 2:834bd321a30d 314 lcd.drawLine(64, 32, 64, 40, FILL_BLACK);
el15mh 2:834bd321a30d 315 lcd.drawLine(73, 32, 73, 47, FILL_BLACK);
el15mh 2:834bd321a30d 316
el15mh 2:834bd321a30d 317 // horizontal
el15mh 2:834bd321a30d 318 lcd.drawLine(16, 40, 40, 40, FILL_BLACK);
el15mh 2:834bd321a30d 319 // vertical
el15mh 2:834bd321a30d 320 lcd.drawLine(16, 40, 16, 47, FILL_BLACK);
el15mh 2:834bd321a30d 321 lcd.drawLine(56, 40, 56, 47, FILL_BLACK);
el15mh 2:834bd321a30d 322
el15mh 2:834bd321a30d 323 // drawing the goal
el15mh 2:834bd321a30d 324 for (int j = 41; j < 47; j++){
el15mh 2:834bd321a30d 325 lcd.clearPixel(83, j);
el15mh 2:834bd321a30d 326 }
el15mh 2:834bd321a30d 327
el15mh 2:834bd321a30d 328 }
el15mh 2:834bd321a30d 329
el15mh 3:8547399e8c29 330 /**
el15mh 3:8547399e8c29 331 * @details - Creating lcd buffer for maze 6
el15mh 3:8547399e8c29 332 */
el15mh 2:834bd321a30d 333 void Maze::mazeIndexSix(N5110 &lcd)
el15mh 2:834bd321a30d 334 {
el15mh 2:834bd321a30d 335 // hard maze 1
el15mh 2:834bd321a30d 336 // maze index 6
el15mh 2:834bd321a30d 337
el15mh 2:834bd321a30d 338 lcd.drawRect(2, 0, 81, 47, FILL_TRANSPARENT);
el15mh 2:834bd321a30d 339
el15mh 2:834bd321a30d 340 lcd.drawLine(7, 1, 7, 6, FILL_BLACK);
el15mh 2:834bd321a30d 341 lcd.drawLine(22, 1, 22, 11, FILL_BLACK);
el15mh 2:834bd321a30d 342 lcd.drawLine(42, 1, 42, 21, FILL_BLACK);
el15mh 2:834bd321a30d 343 lcd.drawLine(57, 1, 57, 16, FILL_BLACK);
el15mh 2:834bd321a30d 344 lcd.drawLine(12, 6, 17, 6, FILL_BLACK);
el15mh 2:834bd321a30d 345 lcd.drawLine(27, 6, 37, 6, FILL_BLACK);
el15mh 2:834bd321a30d 346 lcd.drawLine(47, 6, 52, 6, FILL_BLACK);
el15mh 2:834bd321a30d 347 lcd.drawLine(72, 6, 82, 6, FILL_BLACK);
el15mh 2:834bd321a30d 348 lcd.drawLine(12, 6, 12, 26, FILL_BLACK);
el15mh 2:834bd321a30d 349 lcd.drawLine(37, 6, 37, 16, FILL_BLACK);
el15mh 2:834bd321a30d 350 lcd.drawLine(47, 6, 47, 21, FILL_BLACK);
el15mh 2:834bd321a30d 351 lcd.drawLine(62, 6, 62, 21, FILL_BLACK);
el15mh 2:834bd321a30d 352 lcd.drawLine(67, 6, 67, 11, FILL_BLACK);
el15mh 2:834bd321a30d 353 lcd.drawLine(2, 11, 7, 11, FILL_BLACK);
el15mh 2:834bd321a30d 354 lcd.drawLine(17, 11, 32, 11, FILL_BLACK);
el15mh 2:834bd321a30d 355 lcd.drawLine(52, 11, 57, 11, FILL_BLACK);
el15mh 2:834bd321a30d 356 lcd.drawLine(67, 11, 77, 11, FILL_BLACK);
el15mh 2:834bd321a30d 357 lcd.drawLine(32, 11, 32, 21, FILL_BLACK);
el15mh 2:834bd321a30d 358 lcd.drawLine(72, 11, 72, 21, FILL_BLACK);
el15mh 2:834bd321a30d 359 lcd.drawLine(7, 16, 17, 16, FILL_BLACK);
el15mh 2:834bd321a30d 360 lcd.drawLine(22, 16, 27, 16, FILL_BLACK);
el15mh 2:834bd321a30d 361 lcd.drawLine(37, 16, 42, 16, FILL_BLACK);
el15mh 2:834bd321a30d 362 lcd.drawLine(47, 16, 57, 16, FILL_BLACK);
el15mh 2:834bd321a30d 363 lcd.drawLine(62, 16, 67, 16, FILL_BLACK);
el15mh 2:834bd321a30d 364 lcd.drawLine(77, 16, 82, 16, FILL_BLACK);
el15mh 2:834bd321a30d 365 lcd.drawLine(17, 16, 17, 21, FILL_BLACK);
el15mh 2:834bd321a30d 366 lcd.drawLine(27, 16, 27, 26, FILL_BLACK);
el15mh 2:834bd321a30d 367 lcd.drawLine(2, 21, 7, 21, FILL_BLACK);
el15mh 2:834bd321a30d 368 lcd.drawLine(17, 21, 22, 21, FILL_BLACK);
el15mh 2:834bd321a30d 369 lcd.drawLine(17, 31, 17, 36, FILL_BLACK);
el15mh 2:834bd321a30d 370 lcd.drawLine(32, 21, 37, 21, FILL_BLACK);
el15mh 2:834bd321a30d 371 lcd.drawLine(52, 21, 62, 21, FILL_BLACK);
el15mh 2:834bd321a30d 372 lcd.drawLine(67, 21, 77, 21, FILL_BLACK);
el15mh 2:834bd321a30d 373 lcd.drawLine(22, 21, 22, 26, FILL_BLACK);
el15mh 2:834bd321a30d 374 lcd.drawLine(37, 21, 37, 26, FILL_BLACK);
el15mh 2:834bd321a30d 375 lcd.drawLine(52, 21, 52, 31, FILL_BLACK);
el15mh 2:834bd321a30d 376 lcd.drawLine(77, 21, 77, 31, FILL_BLACK);
el15mh 2:834bd321a30d 377 lcd.drawLine(7, 26, 17, 26, FILL_BLACK);
el15mh 2:834bd321a30d 378 lcd.drawLine(27, 26, 32, 26, FILL_BLACK);
el15mh 2:834bd321a30d 379 lcd.drawLine(37, 26, 52, 26, FILL_BLACK);
el15mh 2:834bd321a30d 380 lcd.drawLine(57, 26, 77, 26, FILL_BLACK);
el15mh 2:834bd321a30d 381 lcd.drawLine(7, 26, 7, 31, FILL_BLACK);
el15mh 2:834bd321a30d 382 lcd.drawLine(17, 26, 17, 26, FILL_BLACK);
el15mh 2:834bd321a30d 383 lcd.drawLine(32, 26, 32, 41, FILL_BLACK);
el15mh 2:834bd321a30d 384 lcd.drawLine(42, 26, 42, 41, FILL_BLACK);
el15mh 2:834bd321a30d 385 lcd.drawLine(67, 26, 67, 41, FILL_BLACK);
el15mh 2:834bd321a30d 386 lcd.drawLine(17, 31, 27, 31, FILL_BLACK);
el15mh 2:834bd321a30d 387 lcd.drawLine(32, 31, 42, 31, FILL_BLACK);
el15mh 2:834bd321a30d 388 lcd.drawLine(52, 31, 62, 31, FILL_BLACK);
el15mh 2:834bd321a30d 389 lcd.drawLine(72, 31, 77, 31, FILL_BLACK);
el15mh 2:834bd321a30d 390 lcd.drawLine(12, 31, 12, 36, FILL_BLACK);
el15mh 2:834bd321a30d 391 lcd.drawLine(47, 31, 47, 46, FILL_BLACK);
el15mh 2:834bd321a30d 392 lcd.drawLine(62, 31, 62, 41, FILL_BLACK);
el15mh 2:834bd321a30d 393 lcd.drawLine(72, 31, 72, 46, FILL_BLACK);
el15mh 2:834bd321a30d 394 lcd.drawLine(2, 36, 12, 36, FILL_BLACK);
el15mh 2:834bd321a30d 395 lcd.drawLine(22, 36, 27, 36, FILL_BLACK);
el15mh 2:834bd321a30d 396 lcd.drawLine(32, 36, 37, 36, FILL_BLACK);
el15mh 2:834bd321a30d 397 lcd.drawLine(47, 36, 57, 36, FILL_BLACK);
el15mh 2:834bd321a30d 398 lcd.drawLine(77, 36, 82, 36, FILL_BLACK);
el15mh 2:834bd321a30d 399 lcd.drawLine(22, 36, 22, 46, FILL_BLACK);
el15mh 2:834bd321a30d 400 lcd.drawLine(7, 41, 22, 41, FILL_BLACK);
el15mh 2:834bd321a30d 401 lcd.drawLine(27, 41, 31, 41, FILL_BLACK);
el15mh 2:834bd321a30d 402 lcd.drawLine(37, 41, 42, 41, FILL_BLACK);
el15mh 2:834bd321a30d 403 lcd.drawLine(52, 41, 62, 41, FILL_BLACK);
el15mh 2:834bd321a30d 404 lcd.drawLine(77, 37, 77, 41, FILL_BLACK);
el15mh 2:834bd321a30d 405
el15mh 2:834bd321a30d 406 // drawing the goal
el15mh 2:834bd321a30d 407 for (int j = 37; j < 42; j++){
el15mh 2:834bd321a30d 408 lcd.clearPixel(82, j);
el15mh 2:834bd321a30d 409 }
el15mh 2:834bd321a30d 410 }
el15mh 2:834bd321a30d 411
el15mh 3:8547399e8c29 412 /**
el15mh 3:8547399e8c29 413 * @details - Creating lcd buffer for maze 7
el15mh 3:8547399e8c29 414 */
el15mh 2:834bd321a30d 415 void Maze::mazeIndexSeven(N5110 &lcd)
el15mh 2:834bd321a30d 416 {
el15mh 2:834bd321a30d 417 // hard maze 2
el15mh 2:834bd321a30d 418 // maze index 7
el15mh 2:834bd321a30d 419 lcd.drawRect(2, 1, 82, 46, FILL_TRANSPARENT);
el15mh 2:834bd321a30d 420
el15mh 2:834bd321a30d 421 //vertical
el15mh 2:834bd321a30d 422 lcd.drawLine(12, 1, 12, 11, FILL_BLACK);
el15mh 2:834bd321a30d 423 lcd.drawLine(52, 1, 52, 16, FILL_BLACK);
el15mh 2:834bd321a30d 424 lcd.drawLine(67, 1, 67, 11, FILL_BLACK);
el15mh 2:834bd321a30d 425 lcd.drawLine(77, 1, 77, 31, FILL_BLACK);
el15mh 2:834bd321a30d 426
el15mh 2:834bd321a30d 427 // horizontal
el15mh 2:834bd321a30d 428 lcd.drawLine(2, 6, 7, 6, FILL_BLACK);
el15mh 2:834bd321a30d 429 lcd.drawLine(17, 6, 32, 6, FILL_BLACK);
el15mh 2:834bd321a30d 430 lcd.drawLine(37, 6, 47, 6, FILL_BLACK);
el15mh 2:834bd321a30d 431 lcd.drawLine(57, 6, 62, 6, FILL_BLACK);
el15mh 2:834bd321a30d 432 // vertical
el15mh 2:834bd321a30d 433 lcd.drawLine(32, 6, 32, 21, FILL_BLACK);
el15mh 2:834bd321a30d 434 lcd.drawLine(37, 6, 37, 26, FILL_BLACK);
el15mh 2:834bd321a30d 435 lcd.drawLine(47, 6, 47, 31, FILL_BLACK);
el15mh 2:834bd321a30d 436 lcd.drawLine(62, 6, 62, 36, FILL_BLACK);
el15mh 2:834bd321a30d 437 lcd.drawLine(72, 6, 72, 16, FILL_BLACK);
el15mh 2:834bd321a30d 438
el15mh 2:834bd321a30d 439 // horizontal
el15mh 2:834bd321a30d 440 lcd.drawLine(17, 11, 27, 11, FILL_BLACK);
el15mh 2:834bd321a30d 441 lcd.drawLine(17, 11, 27, 11, FILL_BLACK);
el15mh 2:834bd321a30d 442 lcd.drawLine(52, 11, 57, 11, FILL_BLACK);
el15mh 2:834bd321a30d 443 // vertical
el15mh 2:834bd321a30d 444 lcd.drawLine(7, 11, 7, 16, FILL_BLACK);
el15mh 2:834bd321a30d 445 lcd.drawLine(17, 11, 17, 31, FILL_BLACK);
el15mh 2:834bd321a30d 446 lcd.drawLine(42, 11, 42, 36, FILL_BLACK);
el15mh 2:834bd321a30d 447
el15mh 2:834bd321a30d 448 // horizontal
el15mh 2:834bd321a30d 449 lcd.drawLine(7, 16, 17, 16, FILL_BLACK);
el15mh 2:834bd321a30d 450 lcd.drawLine(22, 16, 27, 16, FILL_BLACK);
el15mh 2:834bd321a30d 451 lcd.drawLine(57, 16, 72, 16, FILL_BLACK);
el15mh 2:834bd321a30d 452 // vertical
el15mh 2:834bd321a30d 453 lcd.drawLine(27, 16, 27, 31, FILL_BLACK);
el15mh 2:834bd321a30d 454
el15mh 2:834bd321a30d 455 // horizontal
el15mh 2:834bd321a30d 456 lcd.drawLine(2, 21, 12, 21, FILL_BLACK);
el15mh 2:834bd321a30d 457 lcd.drawLine(17, 21, 22, 21, FILL_BLACK);
el15mh 2:834bd321a30d 458 lcd.drawLine(32, 21, 37, 21, FILL_BLACK);
el15mh 2:834bd321a30d 459 lcd.drawLine(47, 21, 57, 21, FILL_BLACK);
el15mh 2:834bd321a30d 460 lcd.drawLine(67, 21, 77, 21, FILL_BLACK);
el15mh 2:834bd321a30d 461 // vertical
el15mh 2:834bd321a30d 462 lcd.drawLine(22, 21, 22, 26, FILL_BLACK);
el15mh 2:834bd321a30d 463
el15mh 2:834bd321a30d 464 // horizontal
el15mh 2:834bd321a30d 465 lcd.drawLine(7, 26, 12, 26, FILL_BLACK);
el15mh 2:834bd321a30d 466 lcd.drawLine(27, 26, 37, 26, FILL_BLACK);
el15mh 2:834bd321a30d 467 lcd.drawLine(52, 26, 72, 26, FILL_BLACK);
el15mh 2:834bd321a30d 468 // vertical
el15mh 2:834bd321a30d 469 lcd.drawLine(7, 26, 7, 41, FILL_BLACK);
el15mh 2:834bd321a30d 470 lcd.drawLine(72, 26, 72, 31, FILL_BLACK);
el15mh 2:834bd321a30d 471
el15mh 2:834bd321a30d 472 // horizontal
el15mh 2:834bd321a30d 473 lcd.drawLine(12, 31, 27, 31, FILL_BLACK);
el15mh 2:834bd321a30d 474 lcd.drawLine(32, 31, 41, 31, FILL_BLACK);
el15mh 2:834bd321a30d 475 lcd.drawLine(47, 31, 62, 31, FILL_BLACK);
el15mh 2:834bd321a30d 476 lcd.drawLine(72, 31, 77, 31, FILL_BLACK);
el15mh 2:834bd321a30d 477 // vertical
el15mh 2:834bd321a30d 478 lcd.drawLine(12, 31, 12, 36, FILL_BLACK);
el15mh 2:834bd321a30d 479 lcd.drawLine(22, 31, 22, 36, FILL_BLACK);
el15mh 2:834bd321a30d 480 lcd.drawLine(37, 31, 37, 41, FILL_BLACK);
el15mh 2:834bd321a30d 481 lcd.drawLine(67, 31, 67, 36, FILL_BLACK);
el15mh 2:834bd321a30d 482
el15mh 2:834bd321a30d 483 // horizontal
el15mh 2:834bd321a30d 484 lcd.drawLine(22, 36, 32, 36, FILL_BLACK);
el15mh 2:834bd321a30d 485 lcd.drawLine(42, 36, 57, 36, FILL_BLACK);
el15mh 2:834bd321a30d 486 lcd.drawLine(67, 36, 82, 36, FILL_BLACK);
el15mh 2:834bd321a30d 487 // vertical
el15mh 2:834bd321a30d 488 lcd.drawLine(17, 36, 17, 41, FILL_BLACK);
el15mh 2:834bd321a30d 489 lcd.drawLine(32, 36, 32, 41, FILL_BLACK);
el15mh 2:834bd321a30d 490 lcd.drawLine(57, 36, 57, 45, FILL_BLACK);
el15mh 2:834bd321a30d 491 lcd.drawLine(72, 36, 72, 41, FILL_BLACK);
el15mh 2:834bd321a30d 492
el15mh 2:834bd321a30d 493 // horizontal
el15mh 2:834bd321a30d 494 lcd.drawLine(7, 41, 27, 41, FILL_BLACK);
el15mh 2:834bd321a30d 495 lcd.drawLine(37, 41, 52, 41, FILL_BLACK);
el15mh 2:834bd321a30d 496 lcd.drawLine(62, 41, 77, 41, FILL_BLACK);
el15mh 2:834bd321a30d 497 // vertical
el15mh 2:834bd321a30d 498 lcd.drawLine(27, 41, 27, 45, FILL_BLACK);
el15mh 2:834bd321a30d 499
el15mh 2:834bd321a30d 500 // drawing the goal
el15mh 2:834bd321a30d 501 for (int j = 2; j < 6; j++){
el15mh 2:834bd321a30d 502 lcd.clearPixel(83, j);
el15mh 2:834bd321a30d 503 }
el15mh 0:d5a32831fa28 504
el15mh 0:d5a32831fa28 505 }
el15mh 0:d5a32831fa28 506
el15mh 3:8547399e8c29 507 /**
el15mh 3:8547399e8c29 508 * @details - Creating lcd buffer for maze 8
el15mh 3:8547399e8c29 509 */
el15mh 2:834bd321a30d 510 void Maze::mazeIndexEight(N5110 &lcd)
el15mh 0:d5a32831fa28 511 {
el15mh 2:834bd321a30d 512 // hard maze 3
el15mh 2:834bd321a30d 513 // maze index 8
el15mh 2:834bd321a30d 514
el15mh 2:834bd321a30d 515 lcd.drawRect(1, 1, 82, 46, FILL_TRANSPARENT);
el15mh 2:834bd321a30d 516
el15mh 2:834bd321a30d 517 // vertical
el15mh 2:834bd321a30d 518 lcd.drawLine(7, 1, 7, 11, FILL_BLACK);
el15mh 2:834bd321a30d 519 lcd.drawLine(32, 1, 32, 21, FILL_BLACK);
el15mh 2:834bd321a30d 520 lcd.drawLine(62, 1, 62, 21, FILL_BLACK);
el15mh 2:834bd321a30d 521 lcd.drawLine(67, 1, 67, 6, FILL_BLACK);
el15mh 2:834bd321a30d 522 lcd.drawLine(77, 1, 77, 6, FILL_BLACK);
el15mh 2:834bd321a30d 523
el15mh 2:834bd321a30d 524 // horizontal
el15mh 2:834bd321a30d 525 lcd.drawLine(7, 6, 17, 6, FILL_BLACK);
el15mh 2:834bd321a30d 526 lcd.drawLine(22, 6, 27, 6, FILL_BLACK);
el15mh 2:834bd321a30d 527 lcd.drawLine(37, 6, 57, 6, FILL_BLACK);
el15mh 2:834bd321a30d 528 // vertical
el15mh 2:834bd321a30d 529 lcd.drawLine(22, 6, 22, 11, FILL_BLACK);
el15mh 2:834bd321a30d 530 lcd.drawLine(27, 6, 27, 21, FILL_BLACK);
el15mh 2:834bd321a30d 531 lcd.drawLine(57, 6, 57, 16, FILL_BLACK);
el15mh 2:834bd321a30d 532 lcd.drawLine(72, 6, 72, 11, FILL_BLACK);
el15mh 2:834bd321a30d 533
el15mh 2:834bd321a30d 534 // horizontal
el15mh 2:834bd321a30d 535 lcd.drawLine(17, 11, 22, 11, FILL_BLACK);
el15mh 2:834bd321a30d 536 lcd.drawLine(32, 11, 37, 11, FILL_BLACK);
el15mh 2:834bd321a30d 537 lcd.drawLine(47, 11, 52, 11, FILL_BLACK);
el15mh 2:834bd321a30d 538 lcd.drawLine(62, 11, 77, 11, FILL_BLACK);
el15mh 2:834bd321a30d 539 // vertical
el15mh 2:834bd321a30d 540 lcd.drawLine(12, 11, 12, 21, FILL_BLACK);
el15mh 2:834bd321a30d 541 lcd.drawLine(42, 11, 42, 26, FILL_BLACK);
el15mh 2:834bd321a30d 542 lcd.drawLine(52, 11, 52, 21, FILL_BLACK);
el15mh 2:834bd321a30d 543
el15mh 2:834bd321a30d 544 // horizontal
el15mh 2:834bd321a30d 545 lcd.drawLine(2, 16, 7, 16, FILL_BLACK);
el15mh 2:834bd321a30d 546 lcd.drawLine(12, 16, 27, 16, FILL_BLACK);
el15mh 2:834bd321a30d 547 lcd.drawLine(37, 16, 52, 16, FILL_BLACK);
el15mh 2:834bd321a30d 548 lcd.drawLine(57, 16, 62, 16, FILL_BLACK);
el15mh 2:834bd321a30d 549 lcd.drawLine(67, 16, 82, 16, FILL_BLACK);
el15mh 2:834bd321a30d 550 // vertical
el15mh 2:834bd321a30d 551 // NONE //
el15mh 2:834bd321a30d 552
el15mh 2:834bd321a30d 553 // horizontal
el15mh 2:834bd321a30d 554 lcd.drawLine(7, 21, 12, 21, FILL_BLACK);
el15mh 2:834bd321a30d 555 lcd.drawLine(17, 21, 22, 21, FILL_BLACK);
el15mh 2:834bd321a30d 556 lcd.drawLine(27, 21, 37, 21, FILL_BLACK);
el15mh 2:834bd321a30d 557 lcd.drawLine(47, 21, 57, 21, FILL_BLACK);
el15mh 2:834bd321a30d 558 lcd.drawLine(62, 21, 77, 21, FILL_BLACK);
el15mh 2:834bd321a30d 559 // vertical
el15mh 2:834bd321a30d 560 lcd.drawLine(7, 21, 7, 31, FILL_BLACK);
el15mh 2:834bd321a30d 561 lcd.drawLine(17, 21, 17, 41, FILL_BLACK);
el15mh 2:834bd321a30d 562 lcd.drawLine(37, 21, 37, 31, FILL_BLACK);
el15mh 2:834bd321a30d 563 lcd.drawLine(67, 21, 67, 31, FILL_BLACK);
el15mh 2:834bd321a30d 564
el15mh 2:834bd321a30d 565 // horizontal
el15mh 2:834bd321a30d 566 lcd.drawLine(22, 26, 32, 26, FILL_BLACK);
el15mh 2:834bd321a30d 567 lcd.drawLine(42, 26, 62, 26, FILL_BLACK);
el15mh 2:834bd321a30d 568 lcd.drawLine(72, 26, 77, 26, FILL_BLACK);
el15mh 2:834bd321a30d 569 // vertical
el15mh 2:834bd321a30d 570 lcd.drawLine(12, 26, 12, 36, FILL_BLACK);
el15mh 2:834bd321a30d 571 lcd.drawLine(22, 26, 22, 31, FILL_BLACK);
el15mh 2:834bd321a30d 572 lcd.drawLine(62, 26, 62, 36, FILL_BLACK);
el15mh 2:834bd321a30d 573 lcd.drawLine(77, 26, 77, 41, FILL_BLACK);
el15mh 2:834bd321a30d 574
el15mh 2:834bd321a30d 575 // horizontal
el15mh 2:834bd321a30d 576 lcd.drawLine(22, 31, 57, 31, FILL_BLACK);
el15mh 2:834bd321a30d 577 lcd.drawLine(67, 31, 72, 31, FILL_BLACK);
el15mh 2:834bd321a30d 578 // vertical
el15mh 2:834bd321a30d 579 lcd.drawLine(52, 31, 52, 41, FILL_BLACK);
el15mh 2:834bd321a30d 580
el15mh 2:834bd321a30d 581 // horizontal
el15mh 2:834bd321a30d 582 lcd.drawLine(2, 36, 12, 36, FILL_BLACK);
el15mh 2:834bd321a30d 583 lcd.drawLine(17, 36, 32, 36, FILL_BLACK);
el15mh 2:834bd321a30d 584 lcd.drawLine(37, 36, 47, 36, FILL_BLACK);
el15mh 2:834bd321a30d 585 lcd.drawLine(57, 36, 72, 36, FILL_BLACK);
el15mh 2:834bd321a30d 586 // vertical
el15mh 2:834bd321a30d 587 lcd.drawLine(32, 36, 32, 41, FILL_BLACK);
el15mh 2:834bd321a30d 588 lcd.drawLine(47, 36, 47, 46, FILL_BLACK);
el15mh 2:834bd321a30d 589 lcd.drawLine(57, 36, 57, 46, FILL_BLACK);
el15mh 2:834bd321a30d 590 lcd.drawLine(67, 36, 67, 41, FILL_BLACK);
el15mh 2:834bd321a30d 591
el15mh 2:834bd321a30d 592 // horizontal
el15mh 2:834bd321a30d 593 lcd.drawLine(7, 41, 17, 41, FILL_BLACK);
el15mh 2:834bd321a30d 594 lcd.drawLine(22, 41, 42, 41, FILL_BLACK);
el15mh 2:834bd321a30d 595 lcd.drawLine(62, 41, 67, 41, FILL_BLACK);
el15mh 2:834bd321a30d 596 lcd.drawLine(72, 41, 77, 41, FILL_BLACK);
el15mh 2:834bd321a30d 597 // vertical
el15mh 2:834bd321a30d 598 lcd.drawLine(72, 41, 72, 46, FILL_BLACK);
el15mh 2:834bd321a30d 599
el15mh 2:834bd321a30d 600 // drawing the goal
el15mh 2:834bd321a30d 601 for (int j = 2; j < 5; j++){
el15mh 2:834bd321a30d 602 lcd.clearPixel(82, j);
el15mh 2:834bd321a30d 603 }
el15mh 0:d5a32831fa28 604
el15mh 0:d5a32831fa28 605 }
el15mh 2:834bd321a30d 606
el15mh 3:8547399e8c29 607 /**
el15mh 3:8547399e8c29 608 * @details - Creating lcd buffer for maze 9
el15mh 3:8547399e8c29 609 */
el15mh 2:834bd321a30d 610 void Maze::mazeIndexNine(N5110 &lcd)
el15mh 2:834bd321a30d 611 {
el15mh 2:834bd321a30d 612 // maze index 9
el15mh 2:834bd321a30d 613 // extreme maze
el15mh 2:834bd321a30d 614
el15mh 2:834bd321a30d 615 lcd.drawRect(0, 0, 84, 48, FILL_TRANSPARENT);
el15mh 2:834bd321a30d 616
el15mh 2:834bd321a30d 617 // cycle through all rows/colums and set pixels
el15mh 2:834bd321a30d 618 int y = 3;
el15mh 2:834bd321a30d 619 lcd.drawLine(35, y, 37, y, FILL_BLACK);
el15mh 2:834bd321a30d 620 lcd.drawLine(47, y, 51, y, FILL_BLACK);
el15mh 2:834bd321a30d 621
el15mh 2:834bd321a30d 622 y++; // line 4
el15mh 2:834bd321a30d 623 lcd.drawLine(8, y, 12, y, FILL_BLACK);
el15mh 2:834bd321a30d 624 lcd.drawLine(20, y, 24, y, FILL_BLACK);
el15mh 2:834bd321a30d 625 lcd.drawLine(33, y, 34, y, FILL_BLACK);
el15mh 2:834bd321a30d 626 lcd.drawLine(51, y, 64, y, FILL_BLACK);
el15mh 2:834bd321a30d 627 lcd.drawLine(68, y, 79, y, FILL_BLACK);
el15mh 2:834bd321a30d 628
el15mh 2:834bd321a30d 629 y++; // line 5
el15mh 2:834bd321a30d 630 lcd.drawLine(31, y, 32, y, FILL_BLACK);
el15mh 2:834bd321a30d 631 lcd.drawLine(53, y, 54, y, FILL_BLACK);
el15mh 2:834bd321a30d 632 lcd.setPixel(30, y);
el15mh 2:834bd321a30d 633 lcd.setPixel(47, y);
el15mh 2:834bd321a30d 634
el15mh 2:834bd321a30d 635 y++; // line 6
el15mh 2:834bd321a30d 636 lcd.setPixel(30, y);
el15mh 2:834bd321a30d 637 lcd.drawLine(39, y, 42, y, FILL_BLACK);
el15mh 2:834bd321a30d 638 lcd.setPixel(47, y);
el15mh 2:834bd321a30d 639 lcd.setPixel(55, y);
el15mh 2:834bd321a30d 640
el15mh 2:834bd321a30d 641 y++; // line 7
el15mh 2:834bd321a30d 642 lcd.drawLine(28, y, 29, y, FILL_BLACK);
el15mh 2:834bd321a30d 643 lcd.drawLine(36, y, 38, y, FILL_BLACK);
el15mh 2:834bd321a30d 644 lcd.drawLine(47, y, 49, y, FILL_BLACK);
el15mh 2:834bd321a30d 645 lcd.drawLine(56, y, 57, y, FILL_BLACK);
el15mh 2:834bd321a30d 646
el15mh 2:834bd321a30d 647 y++; // line 8
el15mh 2:834bd321a30d 648 lcd.drawLine(0, y, 8, y, FILL_BLACK);
el15mh 2:834bd321a30d 649 lcd.drawLine(12, y, 20, y, FILL_BLACK);
el15mh 2:834bd321a30d 650 lcd.setPixel(27, y);
el15mh 2:834bd321a30d 651 lcd.drawLine(34, y, 35, y, FILL_BLACK);
el15mh 2:834bd321a30d 652 lcd.drawLine(50, y, 51, y, FILL_BLACK);
el15mh 2:834bd321a30d 653 lcd.drawLine(58, y, 68, y, FILL_BLACK);
el15mh 2:834bd321a30d 654 lcd.drawLine(77, y, 83, y, FILL_BLACK);
el15mh 2:834bd321a30d 655
el15mh 2:834bd321a30d 656 y++; // line 9
el15mh 2:834bd321a30d 657 lcd.setPixel(26, y);
el15mh 2:834bd321a30d 658 lcd.drawLine(32, y, 33, y, FILL_BLACK);
el15mh 2:834bd321a30d 659 lcd.drawLine(52, y, 53, y, FILL_BLACK);
el15mh 2:834bd321a30d 660 lcd.setPixel(59, y);
el15mh 2:834bd321a30d 661
el15mh 2:834bd321a30d 662 y++; // line 10
el15mh 2:834bd321a30d 663 lcd.setPixel(26, y);
el15mh 2:834bd321a30d 664 lcd.setPixel(31, y);
el15mh 2:834bd321a30d 665 lcd.setPixel(53, y);
el15mh 2:834bd321a30d 666 lcd.setPixel(59, y);
el15mh 2:834bd321a30d 667
el15mh 2:834bd321a30d 668 y++; // line 11
el15mh 2:834bd321a30d 669 lcd.drawLine(24, y, 25, y, FILL_BLACK);
el15mh 2:834bd321a30d 670 lcd.setPixel(30, y);
el15mh 2:834bd321a30d 671 lcd.setPixel(52, y);
el15mh 2:834bd321a30d 672 lcd.setPixel(60, y);
el15mh 2:834bd321a30d 673
el15mh 2:834bd321a30d 674 y++; // line 12
el15mh 2:834bd321a30d 675 lcd.drawLine(4, y, 12, y, FILL_BLACK);
el15mh 2:834bd321a30d 676 lcd.drawLine(16, y, 20, y, FILL_BLACK);
el15mh 2:834bd321a30d 677 lcd.setPixel(29, y);
el15mh 2:834bd321a30d 678 lcd.drawLine(40, y, 45, y, FILL_BLACK);
el15mh 2:834bd321a30d 679 lcd.setPixel(51, y);
el15mh 2:834bd321a30d 680 lcd.setPixel(61, y);
el15mh 2:834bd321a30d 681 lcd.drawLine(66, y, 72, y, FILL_BLACK);
el15mh 2:834bd321a30d 682 lcd.drawLine(76, y, 79, y, FILL_BLACK);
el15mh 2:834bd321a30d 683
el15mh 2:834bd321a30d 684 y++; // line 13
el15mh 2:834bd321a30d 685 lcd.setPixel(24, y);
el15mh 2:834bd321a30d 686 lcd.setPixel(28, y);
el15mh 2:834bd321a30d 687 lcd.drawLine(37, y, 39, y, FILL_BLACK);
el15mh 2:834bd321a30d 688 lcd.drawLine(46, y, 48, y, FILL_BLACK);
el15mh 2:834bd321a30d 689 lcd.setPixel(50, y);
el15mh 2:834bd321a30d 690 lcd.setPixel(57, y);
el15mh 2:834bd321a30d 691 lcd.setPixel(61, y);
el15mh 2:834bd321a30d 692
el15mh 2:834bd321a30d 693 y++; // line 14
el15mh 2:834bd321a30d 694 lcd.setPixel(23, y);
el15mh 2:834bd321a30d 695 lcd.setPixel(28, y);
el15mh 2:834bd321a30d 696 lcd.setPixel(36, y);
el15mh 2:834bd321a30d 697 lcd.setPixel(49, y);
el15mh 2:834bd321a30d 698 lcd.setPixel(57, y);
el15mh 2:834bd321a30d 699 lcd.setPixel(62, y);
el15mh 2:834bd321a30d 700
el15mh 2:834bd321a30d 701 y++; // line 15
el15mh 2:834bd321a30d 702 lcd.setPixel(23, y);
el15mh 2:834bd321a30d 703 lcd.setPixel(27, y);
el15mh 2:834bd321a30d 704 lcd.setPixel(36, y);
el15mh 2:834bd321a30d 705 lcd.setPixel(50, y);
el15mh 2:834bd321a30d 706 lcd.setPixel(58, y);
el15mh 2:834bd321a30d 707 lcd.setPixel(62, y);
el15mh 2:834bd321a30d 708
el15mh 2:834bd321a30d 709 y++; // line 16
el15mh 2:834bd321a30d 710 lcd.drawLine(0, y, 8, y, FILL_BLACK);
el15mh 2:834bd321a30d 711 lcd.setPixel(22, y);
el15mh 2:834bd321a30d 712 lcd.setPixel(27, y);
el15mh 2:834bd321a30d 713 lcd.setPixel(37, y);
el15mh 2:834bd321a30d 714 lcd.drawLine(43, y, 45, y, FILL_BLACK);
el15mh 2:834bd321a30d 715 lcd.setPixel(51, y);
el15mh 2:834bd321a30d 716 lcd.setPixel(58, y);
el15mh 2:834bd321a30d 717 lcd.drawLine(63, y, 68, y, FILL_BLACK);
el15mh 2:834bd321a30d 718 lcd.drawLine(80, y, 83, y, FILL_BLACK);
el15mh 2:834bd321a30d 719
el15mh 2:834bd321a30d 720 y++; // line 17
el15mh 2:834bd321a30d 721 lcd.setPixel(22, y);
el15mh 2:834bd321a30d 722 lcd.setPixel(26, y);
el15mh 2:834bd321a30d 723 lcd.setPixel(38, y);
el15mh 2:834bd321a30d 724 lcd.drawLine(46, y, 47, y, FILL_BLACK);
el15mh 2:834bd321a30d 725 lcd.setPixel(52, y);
el15mh 2:834bd321a30d 726 lcd.setPixel(59, y);
el15mh 2:834bd321a30d 727 lcd.setPixel(63, y);
el15mh 2:834bd321a30d 728
el15mh 2:834bd321a30d 729 y++; // line 18
el15mh 2:834bd321a30d 730 lcd.setPixel(22, y);
el15mh 2:834bd321a30d 731 lcd.setPixel(26, y);
el15mh 2:834bd321a30d 732 lcd.setPixel(32, y);
el15mh 2:834bd321a30d 733 lcd.drawLine(37, y, 38, y, FILL_BLACK);
el15mh 2:834bd321a30d 734 lcd.setPixel(48, y);
el15mh 2:834bd321a30d 735 lcd.setPixel(53, y);
el15mh 2:834bd321a30d 736 lcd.setPixel(59, y);
el15mh 2:834bd321a30d 737 lcd.setPixel(63, y);
el15mh 2:834bd321a30d 738
el15mh 2:834bd321a30d 739 y++; // line 19
el15mh 2:834bd321a30d 740 lcd.setPixel(26, y);
el15mh 2:834bd321a30d 741 lcd.setPixel(32, y);
el15mh 2:834bd321a30d 742 lcd.setPixel(36, y);
el15mh 2:834bd321a30d 743 lcd.setPixel(39, y);
el15mh 2:834bd321a30d 744 lcd.setPixel(49, y);
el15mh 2:834bd321a30d 745 lcd.setPixel(53, y);
el15mh 2:834bd321a30d 746 lcd.setPixel(59, y);
el15mh 2:834bd321a30d 747
el15mh 2:834bd321a30d 748 y++; // line 20
el15mh 2:834bd321a30d 749 lcd.drawLine(4, y, 16, y, FILL_BLACK);
el15mh 2:834bd321a30d 750 lcd.setPixel(25, y);
el15mh 2:834bd321a30d 751 lcd.setPixel(32, y);
el15mh 2:834bd321a30d 752 lcd.setPixel(36, y);
el15mh 2:834bd321a30d 753 lcd.drawLine(40, y, 44, y, FILL_BLACK);
el15mh 2:834bd321a30d 754 lcd.setPixel(49, y);
el15mh 2:834bd321a30d 755 lcd.setPixel(53, y);
el15mh 2:834bd321a30d 756
el15mh 2:834bd321a30d 757 y++; // line 21
el15mh 2:834bd321a30d 758 lcd.setPixel(45, y);
el15mh 2:834bd321a30d 759
el15mh 2:834bd321a30d 760 y++; // line 22
el15mh 2:834bd321a30d 761 /// NO INDIVIDUAL PIXELS/LINES TO DRAW ///
el15mh 2:834bd321a30d 762
el15mh 2:834bd321a30d 763 y++; // line 23
el15mh 2:834bd321a30d 764 /// NO INDIVIDUAL PIXELS/LINES TO DRAW ///
el15mh 2:834bd321a30d 765
el15mh 2:834bd321a30d 766 y++; // line 24
el15mh 2:834bd321a30d 767 lcd.drawLine(0, y, 4, y, FILL_BLACK);
el15mh 2:834bd321a30d 768 lcd.drawLine(21, y, 31, y, FILL_BLACK);
el15mh 2:834bd321a30d 769 lcd.setPixel(39, y);
el15mh 2:834bd321a30d 770 lcd.drawLine(64, y, 72, y, FILL_BLACK);
el15mh 2:834bd321a30d 771
el15mh 2:834bd321a30d 772 y++; // line 25
el15mh 2:834bd321a30d 773 lcd.setPixel(39, y);
el15mh 2:834bd321a30d 774
el15mh 2:834bd321a30d 775 y++; // line 26
el15mh 2:834bd321a30d 776 lcd.setPixel(40, y);
el15mh 2:834bd321a30d 777 lcd.setPixel(45, y);
el15mh 2:834bd321a30d 778
el15mh 2:834bd321a30d 779 y++; // line 27
el15mh 2:834bd321a30d 780 lcd.setPixel(32, y);
el15mh 2:834bd321a30d 781 lcd.setPixel(36, y);
el15mh 2:834bd321a30d 782 lcd.drawLine(41, y, 44, y, FILL_BLACK);
el15mh 2:834bd321a30d 783 lcd.setPixel(49, y);
el15mh 2:834bd321a30d 784
el15mh 2:834bd321a30d 785 y++; // line 28
el15mh 2:834bd321a30d 786 lcd.drawLine(4, y, 12, y, FILL_BLACK);
el15mh 2:834bd321a30d 787 lcd.drawLine(16, y, 21, y, FILL_BLACK);
el15mh 2:834bd321a30d 788 lcd.setPixel(26, y);
el15mh 2:834bd321a30d 789 lcd.setPixel(32, y);
el15mh 2:834bd321a30d 790 lcd.setPixel(36, y);
el15mh 2:834bd321a30d 791 lcd.setPixel(49, y);
el15mh 2:834bd321a30d 792 lcd.setPixel(59, y);
el15mh 2:834bd321a30d 793 lcd.drawLine(68, y, 83, y, FILL_BLACK);
el15mh 2:834bd321a30d 794
el15mh 2:834bd321a30d 795 y++; // line 29
el15mh 2:834bd321a30d 796 lcd.setPixel(22, y);
el15mh 2:834bd321a30d 797 lcd.setPixel(26, y);
el15mh 2:834bd321a30d 798 lcd.setPixel(32, y);
el15mh 2:834bd321a30d 799 lcd.setPixel(37, y);
el15mh 2:834bd321a30d 800 lcd.setPixel(48, y);
el15mh 2:834bd321a30d 801 lcd.setPixel(59, y);
el15mh 2:834bd321a30d 802 lcd.setPixel(63, y);
el15mh 2:834bd321a30d 803
el15mh 2:834bd321a30d 804 y++; // line 30
el15mh 2:834bd321a30d 805 lcd.setPixel(22, y);
el15mh 2:834bd321a30d 806 lcd.setPixel(26, y);
el15mh 2:834bd321a30d 807 lcd.setPixel(33, y);
el15mh 2:834bd321a30d 808 lcd.drawLine(38, y, 39, y, FILL_BLACK);
el15mh 2:834bd321a30d 809 lcd.drawLine(46, y, 47, y, FILL_BLACK);
el15mh 2:834bd321a30d 810 lcd.setPixel(59, y);
el15mh 2:834bd321a30d 811 lcd.setPixel(63, y);
el15mh 2:834bd321a30d 812
el15mh 2:834bd321a30d 813 y++; // line 31
el15mh 2:834bd321a30d 814 lcd.setPixel(22, y);
el15mh 2:834bd321a30d 815 lcd.setPixel(27, y);
el15mh 2:834bd321a30d 816 lcd.setPixel(34, y);
el15mh 2:834bd321a30d 817 lcd.drawLine(40, y, 45, y, FILL_BLACK);
el15mh 2:834bd321a30d 818 lcd.setPixel(51, y);
el15mh 2:834bd321a30d 819 lcd.setPixel(58, y);
el15mh 2:834bd321a30d 820 lcd.setPixel(63, y);
el15mh 2:834bd321a30d 821
el15mh 2:834bd321a30d 822 y++; // line 32
el15mh 2:834bd321a30d 823 lcd.drawLine(12, y, 17, y, FILL_BLACK);
el15mh 2:834bd321a30d 824 lcd.setPixel(23, y);
el15mh 2:834bd321a30d 825 lcd.setPixel(27, y);
el15mh 2:834bd321a30d 826 lcd.setPixel(35, y);
el15mh 2:834bd321a30d 827 lcd.setPixel(50, y);
el15mh 2:834bd321a30d 828 lcd.setPixel(58, y);
el15mh 2:834bd321a30d 829 lcd.drawLine(62, y, 72, y, FILL_BLACK);
el15mh 2:834bd321a30d 830
el15mh 2:834bd321a30d 831 y++; // line 33
el15mh 2:834bd321a30d 832 lcd.setPixel(23, y);
el15mh 2:834bd321a30d 833 lcd.setPixel(28, y);
el15mh 2:834bd321a30d 834 lcd.setPixel(36, y);
el15mh 2:834bd321a30d 835 lcd.setPixel(49, y);
el15mh 2:834bd321a30d 836 lcd.setPixel(57, y);
el15mh 2:834bd321a30d 837 lcd.setPixel(62, y);
el15mh 2:834bd321a30d 838
el15mh 2:834bd321a30d 839 y++; // line 34
el15mh 2:834bd321a30d 840 lcd.setPixel(28, y);
el15mh 2:834bd321a30d 841 lcd.drawLine(37, y, 38, y, FILL_BLACK);
el15mh 2:834bd321a30d 842 lcd.drawLine(46, y, 48, y, FILL_BLACK);
el15mh 2:834bd321a30d 843 lcd.setPixel(57, y);
el15mh 2:834bd321a30d 844 lcd.setPixel(61, y);
el15mh 2:834bd321a30d 845
el15mh 2:834bd321a30d 846 y++; // line 35
el15mh 2:834bd321a30d 847 lcd.setPixel(29, y);
el15mh 2:834bd321a30d 848 lcd.drawLine(42, y, 45, y, FILL_BLACK);
el15mh 2:834bd321a30d 849 lcd.setPixel(56, y);
el15mh 2:834bd321a30d 850 lcd.setPixel(61, y);
el15mh 2:834bd321a30d 851
el15mh 2:834bd321a30d 852 y++; // line 36
el15mh 2:834bd321a30d 853 lcd.drawLine(0, y, 8, y, FILL_BLACK);
el15mh 2:834bd321a30d 854 lcd.drawLine(12, y, 25, y, FILL_BLACK);
el15mh 2:834bd321a30d 855 lcd.setPixel(30, y);
el15mh 2:834bd321a30d 856 lcd.setPixel(55, y);
el15mh 2:834bd321a30d 857 lcd.setPixel(60, y);
el15mh 2:834bd321a30d 858 lcd.drawLine(64, y, 76, y, FILL_BLACK);
el15mh 2:834bd321a30d 859
el15mh 2:834bd321a30d 860 y++; // line 37
el15mh 2:834bd321a30d 861 lcd.setPixel(26, y);
el15mh 2:834bd321a30d 862 lcd.setPixel(31, y);
el15mh 2:834bd321a30d 863 lcd.setPixel(54, y);
el15mh 2:834bd321a30d 864 lcd.setPixel(59, y);
el15mh 2:834bd321a30d 865
el15mh 2:834bd321a30d 866 y++; // line 38
el15mh 2:834bd321a30d 867 lcd.setPixel(26, y);
el15mh 2:834bd321a30d 868 lcd.drawLine(32, y, 33, y, FILL_BLACK);
el15mh 2:834bd321a30d 869 lcd.drawLine(52, y, 53, y, FILL_BLACK);
el15mh 2:834bd321a30d 870 lcd.setPixel(59, y);
el15mh 2:834bd321a30d 871
el15mh 2:834bd321a30d 872 y++; // line 39
el15mh 2:834bd321a30d 873 lcd.setPixel(27, y);
el15mh 2:834bd321a30d 874 lcd.drawLine(34, y, 35, y, FILL_BLACK);
el15mh 2:834bd321a30d 875 lcd.drawLine(50, y, 51, y, FILL_BLACK);
el15mh 2:834bd321a30d 876 lcd.setPixel(58, y);
el15mh 2:834bd321a30d 877
el15mh 2:834bd321a30d 878 y++; // line 40
el15mh 2:834bd321a30d 879 lcd.drawLine(4, y, 12, y, FILL_BLACK);
el15mh 2:834bd321a30d 880 lcd.drawLine(16, y, 20, y, FILL_BLACK);
el15mh 2:834bd321a30d 881 lcd.drawLine(28, y, 29, y, FILL_BLACK);
el15mh 2:834bd321a30d 882 lcd.drawLine(36, y, 38, y, FILL_BLACK);
el15mh 2:834bd321a30d 883 lcd.drawLine(47, y, 49, y, FILL_BLACK);
el15mh 2:834bd321a30d 884 lcd.drawLine(56, y, 68, y, FILL_BLACK);
el15mh 2:834bd321a30d 885 lcd.drawLine(72, y, 80, y, FILL_BLACK);
el15mh 2:834bd321a30d 886
el15mh 2:834bd321a30d 887 y++; // line 41
el15mh 2:834bd321a30d 888 lcd.setPixel(30, y);
el15mh 2:834bd321a30d 889 lcd.drawLine(39, y, 46, y, FILL_BLACK);
el15mh 2:834bd321a30d 890 lcd.setPixel(55, y);
el15mh 2:834bd321a30d 891
el15mh 2:834bd321a30d 892 y++; // line 42
el15mh 2:834bd321a30d 893 lcd.setPixel(32, y);
el15mh 2:834bd321a30d 894 lcd.drawLine(31, y, 31, y, FILL_BLACK);
el15mh 2:834bd321a30d 895 lcd.drawLine(53, y, 54, y, FILL_BLACK);
el15mh 2:834bd321a30d 896
el15mh 2:834bd321a30d 897 y++; // line 43
el15mh 2:834bd321a30d 898 lcd.drawLine(12, y, 16, y, FILL_BLACK);
el15mh 2:834bd321a30d 899 lcd.drawLine(33, y, 34, y, FILL_BLACK);
el15mh 2:834bd321a30d 900 lcd.drawLine(51, y, 52, y, FILL_BLACK);
el15mh 2:834bd321a30d 901
el15mh 2:834bd321a30d 902 y++; // line 44
el15mh 2:834bd321a30d 903 lcd.drawLine(35, y, 36, y, FILL_BLACK);
el15mh 2:834bd321a30d 904 lcd.drawLine(48, y, 50, y, FILL_BLACK);
el15mh 2:834bd321a30d 905 lcd.drawLine(60, y, 72, y, FILL_BLACK);
el15mh 2:834bd321a30d 906
el15mh 2:834bd321a30d 907 /// NO OTHER NON-VERTICAL LINES ON 45 - 47 (END) ///
el15mh 2:834bd321a30d 908
el15mh 2:834bd321a30d 909 int x = 4; // column 4
el15mh 2:834bd321a30d 910 lcd.drawLine(x, 0, x, 4, FILL_BLACK);
el15mh 2:834bd321a30d 911 lcd.drawLine(x, 28, x, 32, FILL_BLACK);
el15mh 2:834bd321a30d 912 lcd.drawLine(x, 40, x, 43, FILL_BLACK);
el15mh 2:834bd321a30d 913
el15mh 2:834bd321a30d 914 x += 4; // column 8
el15mh 2:834bd321a30d 915 lcd.drawLine(x, 20, x, 24, FILL_BLACK);
el15mh 2:834bd321a30d 916 lcd.drawLine(x, 32, x, 36, FILL_BLACK);
el15mh 2:834bd321a30d 917 lcd.drawLine(x, 44, x, 47, FILL_BLACK);
el15mh 2:834bd321a30d 918
el15mh 2:834bd321a30d 919 x += 4; // column 12
el15mh 2:834bd321a30d 920 lcd.drawLine(x, 4, x, 20, FILL_BLACK);
el15mh 2:834bd321a30d 921 lcd.drawLine(x, 24, x, 43, FILL_BLACK);
el15mh 2:834bd321a30d 922
el15mh 2:834bd321a30d 923 x += 4; // column 16
el15mh 2:834bd321a30d 924 lcd.drawLine(x, 0, x, 4, FILL_BLACK);
el15mh 2:834bd321a30d 925 lcd.drawLine(x, 12, x, 28, FILL_BLACK);
el15mh 2:834bd321a30d 926
el15mh 2:834bd321a30d 927 x += 4; // column 20
el15mh 2:834bd321a30d 928 lcd.drawLine(x, 40, x, 47, FILL_BLACK);
el15mh 2:834bd321a30d 929
el15mh 2:834bd321a30d 930 x++; // column 21
el15mh 2:834bd321a30d 931 lcd.drawLine(x, 19, x, 28, FILL_BLACK);
el15mh 2:834bd321a30d 932
el15mh 2:834bd321a30d 933 x += 3; // column 24
el15mh 2:834bd321a30d 934 lcd.drawLine(x, 4, x, 13, FILL_BLACK);
el15mh 2:834bd321a30d 935 lcd.drawLine(x, 34, x, 43, FILL_BLACK);
el15mh 2:834bd321a30d 936
el15mh 2:834bd321a30d 937 x++; // column 25
el15mh 2:834bd321a30d 938 lcd.drawLine(x, 20, x, 24, FILL_BLACK);
el15mh 2:834bd321a30d 939
el15mh 2:834bd321a30d 940 x += 3; // column 28
el15mh 2:834bd321a30d 941 lcd.drawLine(x, 0, x, 2, FILL_BLACK);
el15mh 2:834bd321a30d 942 lcd.drawLine(x, 44, x, 47, FILL_BLACK);
el15mh 2:834bd321a30d 943
el15mh 2:834bd321a30d 944 x += 3; // column 31
el15mh 2:834bd321a30d 945 lcd.drawLine(x, 21, x, 26, FILL_BLACK);
el15mh 2:834bd321a30d 946
el15mh 2:834bd321a30d 947 x += 4; // column 35
el15mh 2:834bd321a30d 948 lcd.drawLine(x, 21, x, 26, FILL_BLACK);
el15mh 2:834bd321a30d 949
el15mh 2:834bd321a30d 950 x += 7; // column 42
el15mh 2:834bd321a30d 951 lcd.drawLine(x, 0, x, 6, FILL_BLACK);
el15mh 2:834bd321a30d 952 lcd.drawLine(x, 31, x, 47, FILL_BLACK);
el15mh 2:834bd321a30d 953
el15mh 2:834bd321a30d 954 x += 4; // column 46
el15mh 2:834bd321a30d 955 lcd.drawLine(x, 22, x, 25, FILL_BLACK);
el15mh 2:834bd321a30d 956
el15mh 2:834bd321a30d 957 x++; // column 47
el15mh 2:834bd321a30d 958 lcd.drawLine(x, 3, x, 7, FILL_BLACK);
el15mh 2:834bd321a30d 959
el15mh 2:834bd321a30d 960 x += 3; // column 50
el15mh 2:834bd321a30d 961 lcd.drawLine(x, 21, x, 26, FILL_BLACK);
el15mh 2:834bd321a30d 962
el15mh 2:834bd321a30d 963 x += 4; // column 54
el15mh 2:834bd321a30d 964 lcd.drawLine(x, 21, x, 26, FILL_BLACK);
el15mh 2:834bd321a30d 965
el15mh 2:834bd321a30d 966 x += 6; // column 60
el15mh 2:834bd321a30d 967 lcd.drawLine(x, 20, x, 27, FILL_BLACK);
el15mh 2:834bd321a30d 968 lcd.drawLine(x, 44, x, 47, FILL_BLACK);
el15mh 2:834bd321a30d 969
el15mh 2:834bd321a30d 970 x += 4; // column 64
el15mh 2:834bd321a30d 971 lcd.drawLine(x, 19, x, 28, FILL_BLACK);
el15mh 2:834bd321a30d 972
el15mh 2:834bd321a30d 973 x += 4;
el15mh 2:834bd321a30d 974 lcd.drawLine(x, 16, x, 20, FILL_BLACK);
el15mh 2:834bd321a30d 975
el15mh 2:834bd321a30d 976 x += 4; // column 72
el15mh 2:834bd321a30d 977 lcd.drawLine(x, 4, x, 24, FILL_BLACK);
el15mh 2:834bd321a30d 978 lcd.drawLine(x, 40, x, 44, FILL_BLACK);
el15mh 2:834bd321a30d 979
el15mh 2:834bd321a30d 980 x += 4; // column 76
el15mh 2:834bd321a30d 981 lcd.drawLine(x, 12, x, 36, FILL_BLACK);
el15mh 2:834bd321a30d 982 lcd.drawLine(x, 43, x, 47, FILL_BLACK);
el15mh 2:834bd321a30d 983
el15mh 2:834bd321a30d 984 x += 4; // column 80
el15mh 2:834bd321a30d 985 lcd.drawLine(x, 16, x, 24, FILL_BLACK);
el15mh 2:834bd321a30d 986 lcd.drawLine(x, 32, x, 44, FILL_BLACK);
el15mh 2:834bd321a30d 987
el15mh 2:834bd321a30d 988 /// END OF EXTREME MAZE ///
el15mh 2:834bd321a30d 989 }
el15mh 2:834bd321a30d 990
el15mh 2:834bd321a30d 991