![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
A simple project utilizing the SRF02 Ultrasonic Distance Sensor
Dependencies: N5110 PowerControl SRF02 beep mbed
main.cpp@0:28446a476280, 2015-05-12 (annotated)
- Committer:
- adrenc94
- Date:
- Tue May 12 10:10:35 2015 +0000
- Revision:
- 0:28446a476280
Final Product
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
adrenc94 | 0:28446a476280 | 1 | /** |
adrenc94 | 0:28446a476280 | 2 | @file main.cpp |
adrenc94 | 0:28446a476280 | 3 | |
adrenc94 | 0:28446a476280 | 4 | @brief Program implementation |
adrenc94 | 0:28446a476280 | 5 | */ |
adrenc94 | 0:28446a476280 | 6 | #include "main.h" |
adrenc94 | 0:28446a476280 | 7 | |
adrenc94 | 0:28446a476280 | 8 | int main() //Main loop |
adrenc94 | 0:28446a476280 | 9 | { |
adrenc94 | 0:28446a476280 | 10 | |
adrenc94 | 0:28446a476280 | 11 | lcd.init(); //LCD display is initiated |
adrenc94 | 0:28446a476280 | 12 | welcomeMessage(); //Printing welcome message |
adrenc94 | 0:28446a476280 | 13 | wait(3); //3 second delay |
adrenc94 | 0:28446a476280 | 14 | lcd.clear(); //Clear the LCD and start main function |
adrenc94 | 0:28446a476280 | 15 | button.rise(&buttonPressed); //creates a rising edge when the button is pressed for an interrupt |
adrenc94 | 0:28446a476280 | 16 | //set_time(1431345864); //This code is commented out to prevent the time from resetting everytime the device is swithed on |
adrenc94 | 0:28446a476280 | 17 | |
adrenc94 | 0:28446a476280 | 18 | PHY_PowerDown(); //Power down ehternet module of the microcontroller to reduce power consumption |
adrenc94 | 0:28446a476280 | 19 | |
adrenc94 | 0:28446a476280 | 20 | while (1) { |
adrenc94 | 0:28446a476280 | 21 | |
adrenc94 | 0:28446a476280 | 22 | if (buttonFlag) { //Check flag status |
adrenc94 | 0:28446a476280 | 23 | setTimeFlag = ~setTimeFlag; //Return TimeFlag to 0 when button is pressed again |
adrenc94 | 0:28446a476280 | 24 | buttonFlag = 0; //Flag is reset |
adrenc94 | 0:28446a476280 | 25 | } |
adrenc94 | 0:28446a476280 | 26 | if (setTimeFlag) { //When mode is change to clock |
adrenc94 | 0:28446a476280 | 27 | lcd.clear(); //Clear LCD to prevent a "stacked display" |
adrenc94 | 0:28446a476280 | 28 | lcd.drawRect(22,30,40,10,0); //Boundary for sensor reading |
adrenc94 | 0:28446a476280 | 29 | lcd.printChar('c',46,4); //Hard coded "c" |
adrenc94 | 0:28446a476280 | 30 | lcd.printChar('m',53,4); //Harc coded "m" |
adrenc94 | 0:28446a476280 | 31 | getTime(); //Retrieve current time from RTC |
adrenc94 | 0:28446a476280 | 32 | getDistance(); //Read sensor for distance |
adrenc94 | 0:28446a476280 | 33 | beeperDistance(); //Beep based on distance |
adrenc94 | 0:28446a476280 | 34 | printDistance(); //Print distance based on sensor reading |
adrenc94 | 0:28446a476280 | 35 | } else { |
adrenc94 | 0:28446a476280 | 36 | lcd.drawRect(22,30,40,10,0); //Boundary for sensor reading |
adrenc94 | 0:28446a476280 | 37 | lcd.printChar('c',46,4); //Hard coded "c" |
adrenc94 | 0:28446a476280 | 38 | lcd.printChar('m',53,4); //Hard coded "m" |
adrenc94 | 0:28446a476280 | 39 | getDistance(); //Read sensor for distance |
adrenc94 | 0:28446a476280 | 40 | beeperDistance(); //Beep based on Distance |
adrenc94 | 0:28446a476280 | 41 | printDistance(); //Print distance based on sensor reading |
adrenc94 | 0:28446a476280 | 42 | readDistance(); //Animate the car by moving pixel coordinates |
adrenc94 | 0:28446a476280 | 43 | wait(1); //1 second delay to ensure the beep timing and the reading intervals is the same as in clock mode |
adrenc94 | 0:28446a476280 | 44 | lcd.clear(); //clear the display |
adrenc94 | 0:28446a476280 | 45 | } |
adrenc94 | 0:28446a476280 | 46 | |
adrenc94 | 0:28446a476280 | 47 | } |
adrenc94 | 0:28446a476280 | 48 | |
adrenc94 | 0:28446a476280 | 49 | } |
adrenc94 | 0:28446a476280 | 50 | |
adrenc94 | 0:28446a476280 | 51 | void welcomeMessage() //Print a welcome message |
adrenc94 | 0:28446a476280 | 52 | { |
adrenc94 | 0:28446a476280 | 53 | lcd.printString("Reverse",0,0); //Print "Reverse" at coordinate 0,0 |
adrenc94 | 0:28446a476280 | 54 | wait(0.5); //0.5 seconds delay |
adrenc94 | 0:28446a476280 | 55 | lcd.printString("Parking",0,1); //Print "Parking" at coordinate 0,1 |
adrenc94 | 0:28446a476280 | 56 | wait(0.5); //0.5 seconds delay |
adrenc94 | 0:28446a476280 | 57 | lcd.printString("Sensor",0,2); //Print "Sensor" at coordinate 0,2 |
adrenc94 | 0:28446a476280 | 58 | wait(0.5); //0.5 seconds delay |
adrenc94 | 0:28446a476280 | 59 | lcd.printString("ELEC2645",0,3); //Print "ELEC2645 at coordinate 0,3 |
adrenc94 | 0:28446a476280 | 60 | wait(0.5); //0.5 seconds delay |
adrenc94 | 0:28446a476280 | 61 | lcd.printString("200823883",0,4); //Print "200823883" at coordinate 0,4 |
adrenc94 | 0:28446a476280 | 62 | wait(0.5); //0.5 seconds delay |
adrenc94 | 0:28446a476280 | 63 | lcd.printString("A N Chin",0,5); //Print "A N Chin at coordinate 0.5 |
adrenc94 | 0:28446a476280 | 64 | } |
adrenc94 | 0:28446a476280 | 65 | |
adrenc94 | 0:28446a476280 | 66 | |
adrenc94 | 0:28446a476280 | 67 | void getDistance() //Take reading from the sensor |
adrenc94 | 0:28446a476280 | 68 | { |
adrenc94 | 0:28446a476280 | 69 | distance = sensor.getDistanceCm(); //Take reading and input the value into the variable "distance" |
adrenc94 | 0:28446a476280 | 70 | } |
adrenc94 | 0:28446a476280 | 71 | |
adrenc94 | 0:28446a476280 | 72 | void readDistance() //Animate the car and show the distance to the user |
adrenc94 | 0:28446a476280 | 73 | { |
adrenc94 | 0:28446a476280 | 74 | if (distance >= 205) { //Pixel increment 1 |
adrenc94 | 0:28446a476280 | 75 | walls(); //Draw zones and object |
adrenc94 | 0:28446a476280 | 76 | carDistance1(); //Move x pixel to position 1 (Front of car at 1 and back of car at 22) |
adrenc94 | 0:28446a476280 | 77 | drawCar(); //Draw car at pixel |
adrenc94 | 0:28446a476280 | 78 | } else if (distance >= 195 & distance <= 204) { //Pixel increment 2 |
adrenc94 | 0:28446a476280 | 79 | walls(); //Draw zones and object |
adrenc94 | 0:28446a476280 | 80 | carDistance2(); //Move x pixel to position 2 (Front of car at 4 and back of car at 25) |
adrenc94 | 0:28446a476280 | 81 | drawCar(); //Draw car at pixel |
adrenc94 | 0:28446a476280 | 82 | } else if (distance >= 180 & distance <= 194) { //Pixel increment 3 |
adrenc94 | 0:28446a476280 | 83 | walls(); //Draw zones and object |
adrenc94 | 0:28446a476280 | 84 | carDistance3(); //Move x pixel to position 2 (Front of car at 7 and back of car at 28) |
adrenc94 | 0:28446a476280 | 85 | drawCar(); //Draw car at pixel |
adrenc94 | 0:28446a476280 | 86 | } else if (distance >= 165 & distance <= 179) { //Pixel increment 4 |
adrenc94 | 0:28446a476280 | 87 | walls(); //Draw zones and object |
adrenc94 | 0:28446a476280 | 88 | carDistance4(); //Move x pixel to position 2 (Front of car at 10 and back of car at 31) |
adrenc94 | 0:28446a476280 | 89 | drawCar(); //Draw car at pixel |
adrenc94 | 0:28446a476280 | 90 | } else if (distance >= 150 & distance <= 164) { //Pixel increment 5 |
adrenc94 | 0:28446a476280 | 91 | walls(); //Draw zones and object |
adrenc94 | 0:28446a476280 | 92 | carDistance5(); //Move x pixel to position 2 (Front of car at 13 and back of car at 34) |
adrenc94 | 0:28446a476280 | 93 | drawCar(); //Draw car at pixel |
adrenc94 | 0:28446a476280 | 94 | } else if (distance >= 135 & distance <= 149) { //Pixel increment 6 |
adrenc94 | 0:28446a476280 | 95 | walls(); //Draw zones and object |
adrenc94 | 0:28446a476280 | 96 | carDistance6(); //Move x pixel to position 2 (Front of car at 16 and back of car at 37) |
adrenc94 | 0:28446a476280 | 97 | drawCar(); //Draw car at pixel |
adrenc94 | 0:28446a476280 | 98 | } else if (distance >= 120 & distance <= 134) { //Pixel increment 7 |
adrenc94 | 0:28446a476280 | 99 | walls(); //Draw zones and object |
adrenc94 | 0:28446a476280 | 100 | carDistance7(); //Move x pixel to position 2 (Front of car at 19 and back of car at 40) |
adrenc94 | 0:28446a476280 | 101 | drawCar(); //Draw car at pixel |
adrenc94 | 0:28446a476280 | 102 | } else if (distance >= 105 & distance <= 119) { //Pixel increment 8 |
adrenc94 | 0:28446a476280 | 103 | walls(); //Draw zones and object |
adrenc94 | 0:28446a476280 | 104 | carDistance8(); //Move x pixel to position 2 (Front of car at 22 and back of car at 43) |
adrenc94 | 0:28446a476280 | 105 | drawCar(); //Draw car at pixel |
adrenc94 | 0:28446a476280 | 106 | } else if (distance >= 90 & distance <= 104) { //Pixel increment 9 |
adrenc94 | 0:28446a476280 | 107 | walls(); //Draw zones and object |
adrenc94 | 0:28446a476280 | 108 | carDistance9(); //Move x pixel to position 2 (Front of car at 25 and back of car at 46) |
adrenc94 | 0:28446a476280 | 109 | drawCar(); //Draw car at pixel |
adrenc94 | 0:28446a476280 | 110 | } else if (distance >= 75 & distance <= 89) { //Pixel increment 10 |
adrenc94 | 0:28446a476280 | 111 | walls(); //Draw zones and object |
adrenc94 | 0:28446a476280 | 112 | carDistance10(); //Move x pixel to position 2 (Front of car at 28 and back of car at 49) |
adrenc94 | 0:28446a476280 | 113 | drawCar(); //Draw car at pixel |
adrenc94 | 0:28446a476280 | 114 | } else if (distance >= 60 & distance <= 74) { //Pixel increment 11 |
adrenc94 | 0:28446a476280 | 115 | walls(); //Draw zones and object |
adrenc94 | 0:28446a476280 | 116 | carDistance11(); //Move x pixel to position 2 (Front of car at 31 and back of car at 52) |
adrenc94 | 0:28446a476280 | 117 | drawCar(); //Draw car at pixel |
adrenc94 | 0:28446a476280 | 118 | } else if (distance >= 45 & distance <= 59) { //Pixel increment 12 |
adrenc94 | 0:28446a476280 | 119 | walls(); //Draw zones and object |
adrenc94 | 0:28446a476280 | 120 | carDistance12(); //Move x pixel to position 2 (Front of car at 34 and back of car at 55) |
adrenc94 | 0:28446a476280 | 121 | drawCar(); //Draw car at pixel |
adrenc94 | 0:28446a476280 | 122 | } else if (distance >= 30 & distance <= 44) { //Pixel increment 13 |
adrenc94 | 0:28446a476280 | 123 | walls(); //Draw zones and object |
adrenc94 | 0:28446a476280 | 124 | carDistance13(); //Move x pixel to position 2 (Front of car at 37 and back of car at 58) |
adrenc94 | 0:28446a476280 | 125 | drawCar(); //Draw car at pixel |
adrenc94 | 0:28446a476280 | 126 | } else if (distance >= 21 & distance <= 29) { //Pixel increment 14 |
adrenc94 | 0:28446a476280 | 127 | walls(); //Draw zones and object |
adrenc94 | 0:28446a476280 | 128 | carDistance14(); //Move x pixel to position 2 (Front of car at 40 and back of car at 61) |
adrenc94 | 0:28446a476280 | 129 | drawCar(); //Draw car at pixel |
adrenc94 | 0:28446a476280 | 130 | } else if (distance <= 20) { //Pixel increment 15 |
adrenc94 | 0:28446a476280 | 131 | walls(); //Draw zones and object |
adrenc94 | 0:28446a476280 | 132 | carDistance15(); //Move x pixel to position 2 (Front of car at 43 and back of car at 64) |
adrenc94 | 0:28446a476280 | 133 | drawCar(); //Draw car at pixel |
adrenc94 | 0:28446a476280 | 134 | } |
adrenc94 | 0:28446a476280 | 135 | } |
adrenc94 | 0:28446a476280 | 136 | |
adrenc94 | 0:28446a476280 | 137 | void beeperDistance() //Beeper and LED condition |
adrenc94 | 0:28446a476280 | 138 | { |
adrenc94 | 0:28446a476280 | 139 | if (distance >= 75) { //Buzzer and LED condition 1 |
adrenc94 | 0:28446a476280 | 140 | distance1(); //Green LED and a 0.05 sec beep at 800hz |
adrenc94 | 0:28446a476280 | 141 | } else if (distance >= 45 & distance <= 74) { //Buzzer and LED condition 2 |
adrenc94 | 0:28446a476280 | 142 | distance2(); //Yellow LED and a 0.2 sec beep at 800hz |
adrenc94 | 0:28446a476280 | 143 | } else if (distance >= 21 & distance <= 44) { //Buzzer and LED condition 3 |
adrenc94 | 0:28446a476280 | 144 | distance3(); //Red LED and a 0.7 sec beep at 800hz |
adrenc94 | 0:28446a476280 | 145 | } else if (distance <= 20) { //Buzzer and LED condition 4 |
adrenc94 | 0:28446a476280 | 146 | distanceDanger(); //Red LED and a 30 sec beep at 1khz |
adrenc94 | 0:28446a476280 | 147 | } |
adrenc94 | 0:28446a476280 | 148 | } |
adrenc94 | 0:28446a476280 | 149 | |
adrenc94 | 0:28446a476280 | 150 | void printDistance() //Display sensor reading to the user |
adrenc94 | 0:28446a476280 | 151 | { |
adrenc94 | 0:28446a476280 | 152 | char buffer1[4]; //Initiate buffer to print distance |
adrenc94 | 0:28446a476280 | 153 | int length = sprintf(buffer1,"%2d",distance); //Set the buffer to print distance |
adrenc94 | 0:28446a476280 | 154 | if (length <= 4) //If the characters can fit inside the buffer |
adrenc94 | 0:28446a476280 | 155 | lcd.printString(buffer1,27,4); //Print character (distance) |
adrenc94 | 0:28446a476280 | 156 | } |
adrenc94 | 0:28446a476280 | 157 | |
adrenc94 | 0:28446a476280 | 158 | void buttonPressed() //ISR for button |
adrenc94 | 0:28446a476280 | 159 | { |
adrenc94 | 0:28446a476280 | 160 | buttonFlag = 1; //Set a flag when button is pressed |
adrenc94 | 0:28446a476280 | 161 | } |
adrenc94 | 0:28446a476280 | 162 | |
adrenc94 | 0:28446a476280 | 163 | void getTime() //Clock main loop |
adrenc94 | 0:28446a476280 | 164 | { |
adrenc94 | 0:28446a476280 | 165 | |
adrenc94 | 0:28446a476280 | 166 | time_t seconds = time(NULL); // get current time |
adrenc94 | 0:28446a476280 | 167 | char time [30]; //Initiate buffer for "time" |
adrenc94 | 0:28446a476280 | 168 | char day [30]; //Initiate buffer for "day" |
adrenc94 | 0:28446a476280 | 169 | char date [30]; //Initiate buffer for "date" |
adrenc94 | 0:28446a476280 | 170 | strftime(time, 30, "%T", localtime(&seconds)); //Format time as string with ISO8601 time format |
adrenc94 | 0:28446a476280 | 171 | strftime(day, 30, "%A", localtime(&seconds)); //Format day as string with full weekday name |
adrenc94 | 0:28446a476280 | 172 | strftime(date, 30 , "%F", localtime(&seconds)); //Format date as string with Short YYYY-MM-DD date |
adrenc94 | 0:28446a476280 | 173 | lcd.printString (time,18,0); //Print string for time at coordinate 18,0 |
adrenc94 | 0:28446a476280 | 174 | lcd.printString (day,26,1); //Print string for day at coordinate 26,1 |
adrenc94 | 0:28446a476280 | 175 | lcd.printString (date,13,2); //Print string for date at coordinate 13,2 |
adrenc94 | 0:28446a476280 | 176 | wait(1.0); //delay for a second |
adrenc94 | 0:28446a476280 | 177 | lcd.clear(); //clear the LCD |
adrenc94 | 0:28446a476280 | 178 | } |
adrenc94 | 0:28446a476280 | 179 | |
adrenc94 | 0:28446a476280 | 180 | |
adrenc94 | 0:28446a476280 | 181 | void distance1() //Buzzer and LED condition 1 |
adrenc94 | 0:28446a476280 | 182 | { |
adrenc94 | 0:28446a476280 | 183 | red = 0; //Switch red LED off |
adrenc94 | 0:28446a476280 | 184 | yellow = 0; //Switch yellow LED off |
adrenc94 | 0:28446a476280 | 185 | green = 1; //Switch green LED on |
adrenc94 | 0:28446a476280 | 186 | buzzer.beep(800,0.05); //0.05 sec of buzzer beep at 800hz |
adrenc94 | 0:28446a476280 | 187 | } |
adrenc94 | 0:28446a476280 | 188 | |
adrenc94 | 0:28446a476280 | 189 | void distance2() //Buzzer and LED condition 2 |
adrenc94 | 0:28446a476280 | 190 | { |
adrenc94 | 0:28446a476280 | 191 | red = 0; //Switch red LED off |
adrenc94 | 0:28446a476280 | 192 | yellow = 1; //Switch yellow LED on |
adrenc94 | 0:28446a476280 | 193 | green = 0; //Switch green LED off |
adrenc94 | 0:28446a476280 | 194 | buzzer.beep(800,0.2); //0.2 sec of buzzer beep at 800hz |
adrenc94 | 0:28446a476280 | 195 | } |
adrenc94 | 0:28446a476280 | 196 | |
adrenc94 | 0:28446a476280 | 197 | void distance3() //Buzzer and LED condition 3 |
adrenc94 | 0:28446a476280 | 198 | { |
adrenc94 | 0:28446a476280 | 199 | red = 1; //Switch red LED on |
adrenc94 | 0:28446a476280 | 200 | yellow = 0; //Switch yellow LED off |
adrenc94 | 0:28446a476280 | 201 | green = 0; //Switch green LED off |
adrenc94 | 0:28446a476280 | 202 | buzzer.beep(800,0.7); //0.7 sec of buzzer beep at 800hz |
adrenc94 | 0:28446a476280 | 203 | } |
adrenc94 | 0:28446a476280 | 204 | void distanceDanger() //Buzzer and LED condition 4 |
adrenc94 | 0:28446a476280 | 205 | { |
adrenc94 | 0:28446a476280 | 206 | red = 1; //Switch red LED on |
adrenc94 | 0:28446a476280 | 207 | yellow = 0; //Switch yellow LED off |
adrenc94 | 0:28446a476280 | 208 | green = 0; //Switch green LED off |
adrenc94 | 0:28446a476280 | 209 | buzzer.beep(1000,30); //30 sec of buzzer beep at 1khz |
adrenc94 | 0:28446a476280 | 210 | } |
adrenc94 | 0:28446a476280 | 211 | |
adrenc94 | 0:28446a476280 | 212 | void drawCar() //This function draws a car graphic for the "reverse camera" mode of the project and draws a car at the set coordinate |
adrenc94 | 0:28446a476280 | 213 | { |
adrenc94 | 0:28446a476280 | 214 | |
adrenc94 | 0:28446a476280 | 215 | lcd.setPixel(a0,15); //set a pixel at coordinate a0,15 |
adrenc94 | 0:28446a476280 | 216 | lcd.setPixel(a1,15); //set a pixel at coordinate a1,15 |
adrenc94 | 0:28446a476280 | 217 | lcd.setPixel(a2,15); //set a pixel at coordinate a2,15 |
adrenc94 | 0:28446a476280 | 218 | lcd.setPixel(b0,15); //set a pixel at coordinate b0,15 |
adrenc94 | 0:28446a476280 | 219 | lcd.setPixel(b1,15); //set a pixel at coordinate b1,15 |
adrenc94 | 0:28446a476280 | 220 | lcd.setPixel(b2,15); //set a pixel at coordinate b2,15 |
adrenc94 | 0:28446a476280 | 221 | lcd.setPixel(b3,15); //set a pixel at coordinate b3,15 |
adrenc94 | 0:28446a476280 | 222 | lcd.setPixel(c0,15); //set a pixel at coordinate c0,15 |
adrenc94 | 0:28446a476280 | 223 | lcd.setPixel(c1,15); //set a pixel at coordinate c1,15 |
adrenc94 | 0:28446a476280 | 224 | lcd.setPixel(c2,15); //set a pixel at coordinate c2,15 |
adrenc94 | 0:28446a476280 | 225 | lcd.setPixel(d0,14); //set a pixel at coordinate d0,14 |
adrenc94 | 0:28446a476280 | 226 | lcd.setPixel(e0,14); //set a pixel at coordinate e0,14 |
adrenc94 | 0:28446a476280 | 227 | lcd.setPixel(e1,14); //set a pixel at coordinate e1,14 |
adrenc94 | 0:28446a476280 | 228 | lcd.setPixel(f0,13); //set a pixel at coordinate f0,13 |
adrenc94 | 0:28446a476280 | 229 | lcd.setPixel(g0,13); //set a pixel at coordinate g0,13 |
adrenc94 | 0:28446a476280 | 230 | lcd.setPixel(g1,13); //set a pixel at coordinate g1,13 |
adrenc94 | 0:28446a476280 | 231 | lcd.setPixel(h0,12); //set a pixel at coordinate h0,12 |
adrenc94 | 0:28446a476280 | 232 | lcd.setPixel(h1,12); //set a pixel at coordinate h1,12 |
adrenc94 | 0:28446a476280 | 233 | lcd.setPixel(h2,12); //set a pixel at coordinate h2,12 |
adrenc94 | 0:28446a476280 | 234 | lcd.setPixel(h3,12); //set a pixel at coordinate h3,12 |
adrenc94 | 0:28446a476280 | 235 | lcd.setPixel(i0,12); //set a pixel at coordinate i0,12 |
adrenc94 | 0:28446a476280 | 236 | lcd.setPixel(i1,12); //set a pixel at coordinate i1,12 |
adrenc94 | 0:28446a476280 | 237 | lcd.setPixel(i2,12); //set a pixel at coordinate i2,12 |
adrenc94 | 0:28446a476280 | 238 | lcd.setPixel(i3,12); //set a pixel at coordinate i3,12 |
adrenc94 | 0:28446a476280 | 239 | lcd.setPixel(j0,11); //set a pixel at coordinate j0,11 |
adrenc94 | 0:28446a476280 | 240 | lcd.setPixel(j1,11); //set a pixel at coordinate j1,11 |
adrenc94 | 0:28446a476280 | 241 | lcd.setPixel(k0,11); //set a pixel at coordinate k0,11 |
adrenc94 | 0:28446a476280 | 242 | lcd.setPixel(k1,11); //set a pixel at coordinate k1,11 |
adrenc94 | 0:28446a476280 | 243 | lcd.setPixel(l0,10); //set a pixel at coordinate l0,10 |
adrenc94 | 0:28446a476280 | 244 | lcd.setPixel(l1,10); //set a pixel at coordinate l1,10 |
adrenc94 | 0:28446a476280 | 245 | lcd.setPixel(m0,10); //set a pixel at coordinate m0,10 |
adrenc94 | 0:28446a476280 | 246 | lcd.setPixel(m1,10); //set a pixel at coordinate m1,10 |
adrenc94 | 0:28446a476280 | 247 | lcd.setPixel(n0,9); //set a pixel at coordinate n0,9 |
adrenc94 | 0:28446a476280 | 248 | lcd.setPixel(n1,9); //set a pixel at coordinate n1,9 |
adrenc94 | 0:28446a476280 | 249 | lcd.setPixel(o0,9); //set a pixel at coordinate o0,9 |
adrenc94 | 0:28446a476280 | 250 | lcd.setPixel(o1,9); //set a pixel at coordinate o1,9 |
adrenc94 | 0:28446a476280 | 251 | lcd.setPixel(q0,8); //set a pixel at coordinate q0,8 |
adrenc94 | 0:28446a476280 | 252 | lcd.setPixel(q1,8); //set a pixel at coordinate q1,8 |
adrenc94 | 0:28446a476280 | 253 | lcd.setPixel(q2,8); //set a pixel at coordinate q2,8 |
adrenc94 | 0:28446a476280 | 254 | lcd.setPixel(q3,8); //set a pixel at coordinate q3,8 |
adrenc94 | 0:28446a476280 | 255 | lcd.setPixel(q4,8); //set a pixel at coordinate q4,8 |
adrenc94 | 0:28446a476280 | 256 | lcd.setPixel(q5,8); //set a pixel at coordinate q5,8 |
adrenc94 | 0:28446a476280 | 257 | lcd.setPixel(q6,8); //set a pixel at coordinate q6,8 |
adrenc94 | 0:28446a476280 | 258 | lcd.setPixel(q7,8); //set a pixel at coordinate q7,8 |
adrenc94 | 0:28446a476280 | 259 | lcd.drawCircle(w0/2,30/2,2,1); //draw a circle at coordinate w0/2,15 |
adrenc94 | 0:28446a476280 | 260 | lcd.drawCircle(w1/2,30/2,2,1); //draw a circle at coordinate w1/2,15 |
adrenc94 | 0:28446a476280 | 261 | lcd.refresh(); |
adrenc94 | 0:28446a476280 | 262 | } |
adrenc94 | 0:28446a476280 | 263 | |
adrenc94 | 0:28446a476280 | 264 | void safeWall() //Draw Safe Zone |
adrenc94 | 0:28446a476280 | 265 | { |
adrenc94 | 0:28446a476280 | 266 | lcd.setPixel(38,4); //set a pixel at coordinate 38,4 |
adrenc94 | 0:28446a476280 | 267 | lcd.setPixel(49,4); //set a pixel at coordinate 49,4 |
adrenc94 | 0:28446a476280 | 268 | lcd.setPixel(40,4); //set a pixel at coordinate 40,4 |
adrenc94 | 0:28446a476280 | 269 | lcd.setPixel(41,4); //set a pixel at coordinate 41,4 |
adrenc94 | 0:28446a476280 | 270 | lcd.setPixel(42,4); //set a pixel at coordinate 42,4 |
adrenc94 | 0:28446a476280 | 271 | lcd.setPixel(43,4); //set a pixel at coordinate 43,4 |
adrenc94 | 0:28446a476280 | 272 | lcd.setPixel(44,4); //set a pixel at coordinate 44,4 |
adrenc94 | 0:28446a476280 | 273 | lcd.setPixel(45,4); //set a pixel at coordinate 45,4 |
adrenc94 | 0:28446a476280 | 274 | lcd.setPixel(45,5); //set a pixel at coordinate 45,5 |
adrenc94 | 0:28446a476280 | 275 | lcd.setPixel(45,6); //set a pixel at coordinate 45,6 |
adrenc94 | 0:28446a476280 | 276 | lcd.setPixel(45,7); //set a pixel at coordinate 45,7 |
adrenc94 | 0:28446a476280 | 277 | lcd.setPixel(44,8); //set a pixel at coordinate 44,8 |
adrenc94 | 0:28446a476280 | 278 | lcd.setPixel(44,9); //set a pixel at coordinate 44,9 |
adrenc94 | 0:28446a476280 | 279 | lcd.setPixel(44,10); //set a pixel at coordinate 44,10 |
adrenc94 | 0:28446a476280 | 280 | lcd.setPixel(44,11); //set a pixel at coordinate 44,11 |
adrenc94 | 0:28446a476280 | 281 | lcd.setPixel(44,12); //set a pixel at coordinate 44,12 |
adrenc94 | 0:28446a476280 | 282 | lcd.setPixel(43,13); //set a pixel at coordinate 43,13 |
adrenc94 | 0:28446a476280 | 283 | lcd.setPixel(43,14); //set a pixel at coordinate 43,14 |
adrenc94 | 0:28446a476280 | 284 | lcd.setPixel(43,15); //set a pixel at coordinate 43,15 |
adrenc94 | 0:28446a476280 | 285 | lcd.setPixel(43,16); //set a pixel at coordinate 43,16 |
adrenc94 | 0:28446a476280 | 286 | lcd.setPixel(43,17); //set a pixel at coordinate 43,17 |
adrenc94 | 0:28446a476280 | 287 | lcd.setPixel(42,18); //set a pixel at coordinate 42,18 |
adrenc94 | 0:28446a476280 | 288 | lcd.setPixel(42,19); //set a pixel at coordinate 42,19 |
adrenc94 | 0:28446a476280 | 289 | lcd.setPixel(42,20); //set a pixel at coordinate 42,20 |
adrenc94 | 0:28446a476280 | 290 | lcd.setPixel(42,21); //set a pixel at coordinate 42,21 |
adrenc94 | 0:28446a476280 | 291 | lcd.setPixel(41,21); //set a pixel at coordinate 41,21 |
adrenc94 | 0:28446a476280 | 292 | lcd.setPixel(40,21); //set a pixel at coordinate 40,21 |
adrenc94 | 0:28446a476280 | 293 | lcd.setPixel(39,21); //set a pixel at coordinate 39,21 |
adrenc94 | 0:28446a476280 | 294 | lcd.setPixel(38,21); //set a pixel at coordinate 38,21 |
adrenc94 | 0:28446a476280 | 295 | lcd.setPixel(37,21); //set a pixel at coordinate 37,21 |
adrenc94 | 0:28446a476280 | 296 | lcd.setPixel(36,21); //set a pixel at coordinate 36,21 |
adrenc94 | 0:28446a476280 | 297 | lcd.setPixel(35,21); //set a pixel at coordinate 35,21 |
adrenc94 | 0:28446a476280 | 298 | lcd.refresh(); //refresh the LCD to show the car |
adrenc94 | 0:28446a476280 | 299 | } |
adrenc94 | 0:28446a476280 | 300 | |
adrenc94 | 0:28446a476280 | 301 | void cautionWall() //Draw Caution Zone |
adrenc94 | 0:28446a476280 | 302 | { |
adrenc94 | 0:28446a476280 | 303 | lcd.setPixel(48,4); //set a pixel at coordinate 48,4 |
adrenc94 | 0:28446a476280 | 304 | lcd.setPixel(49,4); //set a pixel at coordinate 49,4 |
adrenc94 | 0:28446a476280 | 305 | lcd.setPixel(50,4); //set a pixel at coordinate 50,4 |
adrenc94 | 0:28446a476280 | 306 | lcd.setPixel(51,4); //set a pixel at coordinate 51,4 |
adrenc94 | 0:28446a476280 | 307 | lcd.setPixel(52,4); //set a pixel at coordinate 52,4 |
adrenc94 | 0:28446a476280 | 308 | lcd.setPixel(53,4); //set a pixel at coordinate 53,4 |
adrenc94 | 0:28446a476280 | 309 | lcd.setPixel(54,4); //set a pixel at coordinate 54,4 |
adrenc94 | 0:28446a476280 | 310 | lcd.setPixel(55,4); //set a pixel at coordinate 55,4 |
adrenc94 | 0:28446a476280 | 311 | lcd.setPixel(55,5); //set a pixel at coordinate 55,5 |
adrenc94 | 0:28446a476280 | 312 | lcd.setPixel(55,6); //set a pixel at coordinate 55,6 |
adrenc94 | 0:28446a476280 | 313 | lcd.setPixel(55,7); //set a pixel at coordinate 55,7 |
adrenc94 | 0:28446a476280 | 314 | lcd.setPixel(54,8); //set a pixel at coordinate 54,8 |
adrenc94 | 0:28446a476280 | 315 | lcd.setPixel(54,9); //set a pixel at coordinate 54,9 |
adrenc94 | 0:28446a476280 | 316 | lcd.setPixel(54,10); //set a pixel at coordinate 54,10 |
adrenc94 | 0:28446a476280 | 317 | lcd.setPixel(54,11); //set a pixel at coordinate 54,11 |
adrenc94 | 0:28446a476280 | 318 | lcd.setPixel(54,12); //set a pixel at coordinate 54,12 |
adrenc94 | 0:28446a476280 | 319 | lcd.setPixel(53,13); //set a pixel at coordinate 53,13 |
adrenc94 | 0:28446a476280 | 320 | lcd.setPixel(53,14); //set a pixel at coordinate 53,14 |
adrenc94 | 0:28446a476280 | 321 | lcd.setPixel(53,15); //set a pixel at coordinate 53,15 |
adrenc94 | 0:28446a476280 | 322 | lcd.setPixel(53,16); //set a pixel at coordinate 53,16 |
adrenc94 | 0:28446a476280 | 323 | lcd.setPixel(53,17); //set a pixel at coordinate 53,17 |
adrenc94 | 0:28446a476280 | 324 | lcd.setPixel(52,18); //set a pixel at coordinate 53,18 |
adrenc94 | 0:28446a476280 | 325 | lcd.setPixel(52,19); //set a pixel at coordinate 52,19 |
adrenc94 | 0:28446a476280 | 326 | lcd.setPixel(52,20); //set a pixel at coordinate 52,20 |
adrenc94 | 0:28446a476280 | 327 | lcd.setPixel(52,21); //set a pixel at coordinate 52,21 |
adrenc94 | 0:28446a476280 | 328 | lcd.setPixel(51,21);// //set a pixel at coordinate 51,21 |
adrenc94 | 0:28446a476280 | 329 | lcd.setPixel(50,21); //set a pixel at coordinate 50,21 |
adrenc94 | 0:28446a476280 | 330 | lcd.setPixel(49,21); //set a pixel at coordinate 49,21 |
adrenc94 | 0:28446a476280 | 331 | lcd.setPixel(48,21); //set a pixel at coordinate 48,21 |
adrenc94 | 0:28446a476280 | 332 | lcd.setPixel(47,21); //set a pixel at coordinate 47,21 |
adrenc94 | 0:28446a476280 | 333 | lcd.setPixel(46,21); //set a pixel at coordinate 46,21 |
adrenc94 | 0:28446a476280 | 334 | lcd.setPixel(45,21); //set a pixel at coordinate 45,21 |
adrenc94 | 0:28446a476280 | 335 | lcd.refresh(); //Refresh LCD display |
adrenc94 | 0:28446a476280 | 336 | } |
adrenc94 | 0:28446a476280 | 337 | |
adrenc94 | 0:28446a476280 | 338 | void dangerWall() //Draw Danger Zone |
adrenc94 | 0:28446a476280 | 339 | { |
adrenc94 | 0:28446a476280 | 340 | lcd.setPixel(58,4); //set a pixel at coordinate 58,4 |
adrenc94 | 0:28446a476280 | 341 | lcd.setPixel(59,4); //set a pixel at coordinate 59,4 |
adrenc94 | 0:28446a476280 | 342 | lcd.setPixel(60,4); //set a pixel at coordinate 60,4 |
adrenc94 | 0:28446a476280 | 343 | lcd.setPixel(61,4); //set a pixel at coordinate 61,4 |
adrenc94 | 0:28446a476280 | 344 | lcd.setPixel(62,4); //set a pixel at coordinate 62,4 |
adrenc94 | 0:28446a476280 | 345 | lcd.setPixel(63,4); //set a pixel at coordinate 63,4 |
adrenc94 | 0:28446a476280 | 346 | lcd.setPixel(64,4); //set a pixel at coordinate 64,4 |
adrenc94 | 0:28446a476280 | 347 | lcd.setPixel(65,4); //set a pixel at coordinate 65,4 |
adrenc94 | 0:28446a476280 | 348 | lcd.setPixel(65,5); //set a pixel at coordinate 65,5 |
adrenc94 | 0:28446a476280 | 349 | lcd.setPixel(65,6); //set a pixel at coordinate 65,6 |
adrenc94 | 0:28446a476280 | 350 | lcd.setPixel(65,7); //set a pixel at coordinate 65,7 |
adrenc94 | 0:28446a476280 | 351 | lcd.setPixel(64,8); //set a pixel at coordinate 64,8 |
adrenc94 | 0:28446a476280 | 352 | lcd.setPixel(64,9); //set a pixel at coordinate 64,9 |
adrenc94 | 0:28446a476280 | 353 | lcd.setPixel(64,10); //set a pixel at coordinate 64,10 |
adrenc94 | 0:28446a476280 | 354 | lcd.setPixel(64,11); //set a pixel at coordinate 64,11 |
adrenc94 | 0:28446a476280 | 355 | lcd.setPixel(64,12); //set a pixel at coordinate 61,12 |
adrenc94 | 0:28446a476280 | 356 | lcd.setPixel(63,13); //set a pixel at coordinate 63,13 |
adrenc94 | 0:28446a476280 | 357 | lcd.setPixel(63,14); //set a pixel at coordinate 63,14 |
adrenc94 | 0:28446a476280 | 358 | lcd.setPixel(63,15); //set a pixel at coordinate 63,15 |
adrenc94 | 0:28446a476280 | 359 | lcd.setPixel(63,16); //set a pixel at coordinate 63,16 |
adrenc94 | 0:28446a476280 | 360 | lcd.setPixel(63,17); //set a pixel at coordinate 63,17 |
adrenc94 | 0:28446a476280 | 361 | lcd.setPixel(62,18); //set a pixel at coordinate 62,18 |
adrenc94 | 0:28446a476280 | 362 | lcd.setPixel(62,19); //set a pixel at coordinate 62,19 |
adrenc94 | 0:28446a476280 | 363 | lcd.setPixel(62,20); //set a pixel at coordinate 62,20 |
adrenc94 | 0:28446a476280 | 364 | lcd.setPixel(62,21); //set a pixel at coordinate 62,21 |
adrenc94 | 0:28446a476280 | 365 | lcd.setPixel(61,21); //set a pixel at coordinate 61,21 |
adrenc94 | 0:28446a476280 | 366 | lcd.setPixel(60,21); //set a pixel at coordinate 60,21 |
adrenc94 | 0:28446a476280 | 367 | lcd.setPixel(59,21); //set a pixel at coordinate 59,21 |
adrenc94 | 0:28446a476280 | 368 | lcd.setPixel(58,21); //set a pixel at coordinate 58,21 |
adrenc94 | 0:28446a476280 | 369 | lcd.setPixel(57,21); //set a pixel at coordinate 57,21 |
adrenc94 | 0:28446a476280 | 370 | lcd.setPixel(56,21); //set a pixel at coordinate 56,21 |
adrenc94 | 0:28446a476280 | 371 | lcd.setPixel(55,21); //set a pixel at coordinate 55,21 |
adrenc94 | 0:28446a476280 | 372 | lcd.refresh(); //LCD Refresh |
adrenc94 | 0:28446a476280 | 373 | } |
adrenc94 | 0:28446a476280 | 374 | |
adrenc94 | 0:28446a476280 | 375 | void object() //Draw object |
adrenc94 | 0:28446a476280 | 376 | { |
adrenc94 | 0:28446a476280 | 377 | lcd.setPixel(71,4); //set a pixel at coordinate 71,4 |
adrenc94 | 0:28446a476280 | 378 | lcd.setPixel(72,4); //set a pixel at coordinate 72,4 |
adrenc94 | 0:28446a476280 | 379 | lcd.setPixel(73,4); //set a pixel at coordinate 73,4 |
adrenc94 | 0:28446a476280 | 380 | lcd.setPixel(74,4); //set a pixel at coordinate 74,4 |
adrenc94 | 0:28446a476280 | 381 | lcd.setPixel(75,4); //set a pixel at coordinate 75,4 |
adrenc94 | 0:28446a476280 | 382 | lcd.setPixel(76,4); //set a pixel at coordinate 76,4 |
adrenc94 | 0:28446a476280 | 383 | lcd.setPixel(77,4); //set a pixel at coordinate 77,4 |
adrenc94 | 0:28446a476280 | 384 | lcd.setPixel(78,4); //set a pixel at coordinate 78,4 |
adrenc94 | 0:28446a476280 | 385 | lcd.setPixel(79,4); //set a pixel at coordinate 79,4 |
adrenc94 | 0:28446a476280 | 386 | lcd.setPixel(71,5); //set a pixel at coordinate 71,5 |
adrenc94 | 0:28446a476280 | 387 | lcd.setPixel(72,5); //set a pixel at coordinate 72,5 |
adrenc94 | 0:28446a476280 | 388 | lcd.setPixel(74,5); //set a pixel at coordinate 74,5 |
adrenc94 | 0:28446a476280 | 389 | lcd.setPixel(76,5); //set a pixel at coordinate 76,5 |
adrenc94 | 0:28446a476280 | 390 | lcd.setPixel(78,5); //set a pixel at coordinate 78,5 |
adrenc94 | 0:28446a476280 | 391 | lcd.setPixel(79,5); //set a pixel at coordinate 79,5 |
adrenc94 | 0:28446a476280 | 392 | lcd.setPixel(71,6); //set a pixel at coordinate 71,6 |
adrenc94 | 0:28446a476280 | 393 | lcd.setPixel(73,6); //set a pixel at coordinate 73,6 |
adrenc94 | 0:28446a476280 | 394 | lcd.setPixel(75,6); //set a pixel at coordinate 75,6 |
adrenc94 | 0:28446a476280 | 395 | lcd.setPixel(77,6); //set a pixel at coordinate 77,6 |
adrenc94 | 0:28446a476280 | 396 | lcd.setPixel(79,6); //set a pixel at coordinate 79,6 |
adrenc94 | 0:28446a476280 | 397 | lcd.setPixel(71,7); //set a pixel at coordinate 71,7 |
adrenc94 | 0:28446a476280 | 398 | lcd.setPixel(72,7); //set a pixel at coordinate 72,7 |
adrenc94 | 0:28446a476280 | 399 | lcd.setPixel(74,7); //set a pixel at coordinate 74,7 |
adrenc94 | 0:28446a476280 | 400 | lcd.setPixel(76,7); //set a pixel at coordinate 76,7 |
adrenc94 | 0:28446a476280 | 401 | lcd.setPixel(78,7); //set a pixel at coordinate 78,7 |
adrenc94 | 0:28446a476280 | 402 | lcd.setPixel(79,7); //set a pixel at coordinate 79,7 |
adrenc94 | 0:28446a476280 | 403 | lcd.setPixel(70,8); //set a pixel at coordinate 70,9 |
adrenc94 | 0:28446a476280 | 404 | lcd.setPixel(71,8); //set a pixel at coordinate 71,8 |
adrenc94 | 0:28446a476280 | 405 | lcd.setPixel(73,8); //set a pixel at coordinate 73,8 |
adrenc94 | 0:28446a476280 | 406 | lcd.setPixel(75,8); //set a pixel at coordinate 75,8 |
adrenc94 | 0:28446a476280 | 407 | lcd.setPixel(77,8); //set a pixel at coordinate 77,8 |
adrenc94 | 0:28446a476280 | 408 | lcd.setPixel(78,8); //set a pixel at coordinate 78,8 |
adrenc94 | 0:28446a476280 | 409 | lcd.setPixel(70,9); //set a pixel at coordinate 70,9 |
adrenc94 | 0:28446a476280 | 410 | lcd.setPixel(72,9); //set a pixel at coordinate 72,9 |
adrenc94 | 0:28446a476280 | 411 | lcd.setPixel(74,9); //set a pixel at coordinate 74,9 |
adrenc94 | 0:28446a476280 | 412 | lcd.setPixel(76,9); //set a pixel at coordinate 76,9 |
adrenc94 | 0:28446a476280 | 413 | lcd.setPixel(78,9); //set a pixel at coordinate 78,9 |
adrenc94 | 0:28446a476280 | 414 | lcd.setPixel(70,10); //set a pixel at coordinate 70,10 |
adrenc94 | 0:28446a476280 | 415 | lcd.setPixel(71,10); //set a pixel at coordinate 71,10 |
adrenc94 | 0:28446a476280 | 416 | lcd.setPixel(73,10); //set a pixel at coordinate 73,10 |
adrenc94 | 0:28446a476280 | 417 | lcd.setPixel(75,10); //set a pixel at coordinate 75,10 |
adrenc94 | 0:28446a476280 | 418 | lcd.setPixel(77,10); //set a pixel at coordinate 77,10 |
adrenc94 | 0:28446a476280 | 419 | lcd.setPixel(78,10); //set a pixel at coordinate 78,10 |
adrenc94 | 0:28446a476280 | 420 | lcd.setPixel(70,11); //set a pixel at coordinate 70,11 |
adrenc94 | 0:28446a476280 | 421 | lcd.setPixel(72,11); //set a pixel at coordinate 72,11 |
adrenc94 | 0:28446a476280 | 422 | lcd.setPixel(74,11); //set a pixel at coordinate 74,11 |
adrenc94 | 0:28446a476280 | 423 | lcd.setPixel(76,11); //set a pixel at coordinate 76,11 |
adrenc94 | 0:28446a476280 | 424 | lcd.setPixel(78,11); //set a pixel at coordinate 78,11 |
adrenc94 | 0:28446a476280 | 425 | lcd.setPixel(70,12); //set a pixel at coordinate 70,12 |
adrenc94 | 0:28446a476280 | 426 | lcd.setPixel(71,12); //set a pixel at coordinate 71,12 |
adrenc94 | 0:28446a476280 | 427 | lcd.setPixel(73,12); //set a pixel at coordinate 73,12 |
adrenc94 | 0:28446a476280 | 428 | lcd.setPixel(75,12); //set a pixel at coordinate 75,12 |
adrenc94 | 0:28446a476280 | 429 | lcd.setPixel(77,12); //set a pixel at coordinate 77,12 |
adrenc94 | 0:28446a476280 | 430 | lcd.setPixel(78,12); //set a pixel at coordinate 78,12 |
adrenc94 | 0:28446a476280 | 431 | lcd.setPixel(69,13); //set a pixel at coordinate 69,13 |
adrenc94 | 0:28446a476280 | 432 | lcd.setPixel(70,13); //set a pixel at coordinate 70,13 |
adrenc94 | 0:28446a476280 | 433 | lcd.setPixel(72,13); //set a pixel at coordinate 72,13 |
adrenc94 | 0:28446a476280 | 434 | lcd.setPixel(74,13); //set a pixel at coordinate 74,13 |
adrenc94 | 0:28446a476280 | 435 | lcd.setPixel(76,13); //set a pixel at coordinate 76,13 |
adrenc94 | 0:28446a476280 | 436 | lcd.setPixel(77,13); //set a pixel at coordinate 77,13 |
adrenc94 | 0:28446a476280 | 437 | lcd.setPixel(69,14); //set a pixel at coordinate 69,14 |
adrenc94 | 0:28446a476280 | 438 | lcd.setPixel(71,14); //set a pixel at coordinate 71,14 |
adrenc94 | 0:28446a476280 | 439 | lcd.setPixel(73,14); //set a pixel at coordinate 73,14 |
adrenc94 | 0:28446a476280 | 440 | lcd.setPixel(75,14); //set a pixel at coordinate 75,14 |
adrenc94 | 0:28446a476280 | 441 | lcd.setPixel(77,14); //set a pixel at coordinate 77,14 |
adrenc94 | 0:28446a476280 | 442 | lcd.setPixel(69,15); //set a pixel at coordinate 69,15 |
adrenc94 | 0:28446a476280 | 443 | lcd.setPixel(70,15); //set a pixel at coordinate 70,15 |
adrenc94 | 0:28446a476280 | 444 | lcd.setPixel(72,15); //set a pixel at coordinate 72,15 |
adrenc94 | 0:28446a476280 | 445 | lcd.setPixel(74,15); //set a pixel at coordinate 74,15 |
adrenc94 | 0:28446a476280 | 446 | lcd.setPixel(76,15); //set a pixel at coordinate 76,15 |
adrenc94 | 0:28446a476280 | 447 | lcd.setPixel(77,15); //set a pixel at coordinate 77,15 |
adrenc94 | 0:28446a476280 | 448 | lcd.setPixel(69,16); //set a pixel at coordinate 69,16 |
adrenc94 | 0:28446a476280 | 449 | lcd.setPixel(71,16); //set a pixel at coordinate 71,16 |
adrenc94 | 0:28446a476280 | 450 | lcd.setPixel(73,16); //set a pixel at coordinate 73,16 |
adrenc94 | 0:28446a476280 | 451 | lcd.setPixel(75,16); //set a pixel at coordinate 75,16 |
adrenc94 | 0:28446a476280 | 452 | lcd.setPixel(77,16); //set a pixel at coordinate 77,16 |
adrenc94 | 0:28446a476280 | 453 | lcd.setPixel(69,17); //set a pixel at coordinate 69,17 |
adrenc94 | 0:28446a476280 | 454 | lcd.setPixel(70,17); //set a pixel at coordinate 70,17 |
adrenc94 | 0:28446a476280 | 455 | lcd.setPixel(72,17); //set a pixel at coordinate 72,17 |
adrenc94 | 0:28446a476280 | 456 | lcd.setPixel(74,17); //set a pixel at coordinate 74,17 |
adrenc94 | 0:28446a476280 | 457 | lcd.setPixel(76,17); //set a pixel at coordinate 76,17 |
adrenc94 | 0:28446a476280 | 458 | lcd.setPixel(77,17); //set a pixel at coordinate 77,17 |
adrenc94 | 0:28446a476280 | 459 | lcd.setPixel(68,18); //set a pixel at coordinate 68,18 |
adrenc94 | 0:28446a476280 | 460 | lcd.setPixel(69,18); //set a pixel at coordinate 69,18 |
adrenc94 | 0:28446a476280 | 461 | lcd.setPixel(71,18); //set a pixel at coordinate 71,18 |
adrenc94 | 0:28446a476280 | 462 | lcd.setPixel(73,18); //set a pixel at coordinate 73,18 |
adrenc94 | 0:28446a476280 | 463 | lcd.setPixel(75,18); //set a pixel at coordinate 75,18 |
adrenc94 | 0:28446a476280 | 464 | lcd.setPixel(76,18); //set a pixel at coordinate 76,18 |
adrenc94 | 0:28446a476280 | 465 | lcd.setPixel(68,19); //set a pixel at coordinate 68,19 |
adrenc94 | 0:28446a476280 | 466 | lcd.setPixel(70,19); //set a pixel at coordinate 70,19 |
adrenc94 | 0:28446a476280 | 467 | lcd.setPixel(72,19); //set a pixel at coordinate 72,19 |
adrenc94 | 0:28446a476280 | 468 | lcd.setPixel(74,19); //set a pixel at coordinate 74,19 |
adrenc94 | 0:28446a476280 | 469 | lcd.setPixel(76,19); //set a pixel at coordinate 76,19 |
adrenc94 | 0:28446a476280 | 470 | lcd.setPixel(68,20); //set a pixel at coordinate 68,20 |
adrenc94 | 0:28446a476280 | 471 | lcd.setPixel(69,20); //set a pixel at coordinate 69,20 |
adrenc94 | 0:28446a476280 | 472 | lcd.setPixel(71,20); //set a pixel at coordinate 71,20 |
adrenc94 | 0:28446a476280 | 473 | lcd.setPixel(73,20); //set a pixel at coordinate 73,20 |
adrenc94 | 0:28446a476280 | 474 | lcd.setPixel(75,20); //set a pixel at coordinate 75,20 |
adrenc94 | 0:28446a476280 | 475 | lcd.setPixel(76,20); //set a pixel at coordinate 76,20 |
adrenc94 | 0:28446a476280 | 476 | lcd.setPixel(68,21); //set a pixel at coordinate 68,21 |
adrenc94 | 0:28446a476280 | 477 | lcd.setPixel(69,21); //set a pixel at coordinate 69,21 |
adrenc94 | 0:28446a476280 | 478 | lcd.setPixel(70,21); //set a pixel at coordinate 70,21 |
adrenc94 | 0:28446a476280 | 479 | lcd.setPixel(71,21); //set a pixel at coordinate 71,21 |
adrenc94 | 0:28446a476280 | 480 | lcd.setPixel(72,21); //set a pixel at coordinate 72,21 |
adrenc94 | 0:28446a476280 | 481 | lcd.setPixel(73,21); //set a pixel at coordinate 73,21 |
adrenc94 | 0:28446a476280 | 482 | lcd.setPixel(74,21); //set a pixel at coordinate 74,21 |
adrenc94 | 0:28446a476280 | 483 | lcd.setPixel(75,21); //set a pixel at coordinate 75,21 |
adrenc94 | 0:28446a476280 | 484 | lcd.setPixel(76,21); //set a pixel at coordinate 76,21 |
adrenc94 | 0:28446a476280 | 485 | lcd.refresh(); //LCD refresh |
adrenc94 | 0:28446a476280 | 486 | } |
adrenc94 | 0:28446a476280 | 487 | |
adrenc94 | 0:28446a476280 | 488 | void walls() //Draw Object |
adrenc94 | 0:28446a476280 | 489 | { |
adrenc94 | 0:28446a476280 | 490 | safeWall(); //Draw safe zone |
adrenc94 | 0:28446a476280 | 491 | cautionWall(); //Draw caution zone |
adrenc94 | 0:28446a476280 | 492 | dangerWall(); //draw danger zone |
adrenc94 | 0:28446a476280 | 493 | object(); //Draw object |
adrenc94 | 0:28446a476280 | 494 | } |
adrenc94 | 0:28446a476280 | 495 | |
adrenc94 | 0:28446a476280 | 496 | void carDistance1() //Car x coordinate increment |
adrenc94 | 0:28446a476280 | 497 | { |
adrenc94 | 0:28446a476280 | 498 | a0 = 2; //Move pixel x coordinate to 2 |
adrenc94 | 0:28446a476280 | 499 | a1 = 3; //Move pixel x coordinate to 3 |
adrenc94 | 0:28446a476280 | 500 | a2 = 4; //Move pixel x coordinate to 4 |
adrenc94 | 0:28446a476280 | 501 | b0 = 10; //Move pixel x coordinate to 10 |
adrenc94 | 0:28446a476280 | 502 | b1 = 11; //Move pixel x coordinate to 11 |
adrenc94 | 0:28446a476280 | 503 | b2 = 12; //Move pixel x coordinate to 12 |
adrenc94 | 0:28446a476280 | 504 | b3 = 13; //Move pixel x coordinate to 13 |
adrenc94 | 0:28446a476280 | 505 | c0 = 19; //Move pixel x coordinate to 19 |
adrenc94 | 0:28446a476280 | 506 | c1 = 20; //Move pixel x coordinate to 20 |
adrenc94 | 0:28446a476280 | 507 | c2 = 21; //Move pixel x coordinate to 21 |
adrenc94 | 0:28446a476280 | 508 | d0 = 1; //Move pixel x coordinate to 1 |
adrenc94 | 0:28446a476280 | 509 | e0 = 21; //Move pixel x coordinate to 21 |
adrenc94 | 0:28446a476280 | 510 | e1 = 22; //Move pixel x coordinate to 22 |
adrenc94 | 0:28446a476280 | 511 | f0 = 1; //Move pixel x coordinate to 1 |
adrenc94 | 0:28446a476280 | 512 | g0 = 21; //Move pixel x coordinate to 21 |
adrenc94 | 0:28446a476280 | 513 | g1 = 22; //Move pixel x coordinate to 22 |
adrenc94 | 0:28446a476280 | 514 | h0 = 2; //Move pixel x coordinate to 2 |
adrenc94 | 0:28446a476280 | 515 | h1 = 3; //Move pixel x coordinate to 3 |
adrenc94 | 0:28446a476280 | 516 | h2 = 4; //Move pixel x coordinate to 4 |
adrenc94 | 0:28446a476280 | 517 | h3 = 5; //Move pixel x coordinate to 5 |
adrenc94 | 0:28446a476280 | 518 | i0 = 18; //Move pixel x coordinate to 18 |
adrenc94 | 0:28446a476280 | 519 | i1 = 19; //Move pixel x coordinate to 19 |
adrenc94 | 0:28446a476280 | 520 | i2 = 20; //Move pixel x coordinate to 20 |
adrenc94 | 0:28446a476280 | 521 | i3 = 21; //Move pixel x coordinate to 21 |
adrenc94 | 0:28446a476280 | 522 | j0 = 5; //Move pixel x coordinate to 5 |
adrenc94 | 0:28446a476280 | 523 | j1 = 6; //Move pixel x coordinate to 6 |
adrenc94 | 0:28446a476280 | 524 | k0 = 17; //Move pixel x coordinate to 17 |
adrenc94 | 0:28446a476280 | 525 | k1 = 18; //Move pixel x coordinate to 18 |
adrenc94 | 0:28446a476280 | 526 | l0 = 6; //Move pixel x coordinate to 6 |
adrenc94 | 0:28446a476280 | 527 | l1 = 7; //Move pixel x coordinate to 7 |
adrenc94 | 0:28446a476280 | 528 | m0 = 16; //Move pixel x coordinate to 16 |
adrenc94 | 0:28446a476280 | 529 | m1 = 17; //Move pixel x coordinate to 17 |
adrenc94 | 0:28446a476280 | 530 | n0 = 7; //Move pixel x coordinate to 7 |
adrenc94 | 0:28446a476280 | 531 | n1 = 8; //Move pixel x coordinate to 8 |
adrenc94 | 0:28446a476280 | 532 | o0 = 15; //Move pixel x coordinate to 15 |
adrenc94 | 0:28446a476280 | 533 | o1 = 16; //Move pixel x coordinate to 16 |
adrenc94 | 0:28446a476280 | 534 | q0 = 8; //Move pixel x coordinate to 8 |
adrenc94 | 0:28446a476280 | 535 | q1 = 9; //Move pixel x coordinate to 9 |
adrenc94 | 0:28446a476280 | 536 | q2 = 10; //Move pixel x coordinate to 10 |
adrenc94 | 0:28446a476280 | 537 | q3 = 11; //Move pixel x coordinate to 11 |
adrenc94 | 0:28446a476280 | 538 | q4 = 12; //Move pixel x coordinate to 12 |
adrenc94 | 0:28446a476280 | 539 | q5 = 13; //Move pixel x coordinate to 13 |
adrenc94 | 0:28446a476280 | 540 | q6 = 14; //Move pixel x coordinate to 14 |
adrenc94 | 0:28446a476280 | 541 | q7 = 15; //Move pixel x coordinate to 15 |
adrenc94 | 0:28446a476280 | 542 | w0 = 14; //Set front wheel width to 14 |
adrenc94 | 0:28446a476280 | 543 | w1 = 32; //Set rear wheel width to 32 |
adrenc94 | 0:28446a476280 | 544 | } |
adrenc94 | 0:28446a476280 | 545 | |
adrenc94 | 0:28446a476280 | 546 | void carDistance2() //Car x coordinate increment 2 |
adrenc94 | 0:28446a476280 | 547 | { |
adrenc94 | 0:28446a476280 | 548 | a0 = 5; //Move pixel x coordinate to 5 |
adrenc94 | 0:28446a476280 | 549 | a1 = 6; //Move pixel x coordinate to 6 |
adrenc94 | 0:28446a476280 | 550 | a2 = 7; //Move pixel x coordinate to 7 |
adrenc94 | 0:28446a476280 | 551 | b0 = 13; //Move pixel x coordinate to 13 |
adrenc94 | 0:28446a476280 | 552 | b1 = 14; //Move pixel x coordinate to 14 |
adrenc94 | 0:28446a476280 | 553 | b2 = 15; //Move pixel x coordinate to 15 |
adrenc94 | 0:28446a476280 | 554 | b3 = 16; //Move pixel x coordinate to 16 |
adrenc94 | 0:28446a476280 | 555 | c0 = 22; //Move pixel x coordinate to 22 |
adrenc94 | 0:28446a476280 | 556 | c1 = 23; //Move pixel x coordinate to 23 |
adrenc94 | 0:28446a476280 | 557 | c2 = 24; //Move pixel x coordinate to 24 |
adrenc94 | 0:28446a476280 | 558 | d0 = 4; //Move pixel x coordinate to 4 |
adrenc94 | 0:28446a476280 | 559 | e0 = 24; //Move pixel x coordinate to 24 |
adrenc94 | 0:28446a476280 | 560 | e1 = 25; //Move pixel x coordinate to 25 |
adrenc94 | 0:28446a476280 | 561 | f0 = 4; //Move pixel x coordinate to 4 |
adrenc94 | 0:28446a476280 | 562 | g0 = 24; //Move pixel x coordinate to 24 |
adrenc94 | 0:28446a476280 | 563 | g1 = 25; //Move pixel x coordinate to 25 |
adrenc94 | 0:28446a476280 | 564 | h0 = 5; //Move pixel x coordinate to 5 |
adrenc94 | 0:28446a476280 | 565 | h1 = 6; //Move pixel x coordinate to 6 |
adrenc94 | 0:28446a476280 | 566 | h2 = 7; //Move pixel x coordinate to 7 |
adrenc94 | 0:28446a476280 | 567 | h3 = 8; //Move pixel x coordinate to 8 |
adrenc94 | 0:28446a476280 | 568 | i0 = 21; //Move pixel x coordinate to 21 |
adrenc94 | 0:28446a476280 | 569 | i1 = 22; //Move pixel x coordinate to 22 |
adrenc94 | 0:28446a476280 | 570 | i2 = 23; //Move pixel x coordinate to 23 |
adrenc94 | 0:28446a476280 | 571 | i3 = 24; //Move pixel x coordinate to 24 |
adrenc94 | 0:28446a476280 | 572 | j0 = 8; //Move pixel x coordinate to 8 |
adrenc94 | 0:28446a476280 | 573 | j1 = 9; //Move pixel x coordinate to 9 |
adrenc94 | 0:28446a476280 | 574 | k0 = 20; //Move pixel x coordinate to 20 |
adrenc94 | 0:28446a476280 | 575 | k1 = 21; //Move pixel x coordinate to 21 |
adrenc94 | 0:28446a476280 | 576 | l0 = 9; //Move pixel x coordinate to 9 |
adrenc94 | 0:28446a476280 | 577 | l1 = 10; //Move pixel x coordinate to 10 |
adrenc94 | 0:28446a476280 | 578 | m0 = 19; //Move pixel x coordinate to 19 |
adrenc94 | 0:28446a476280 | 579 | m1 = 20; //Move pixel x coordinate to 20 |
adrenc94 | 0:28446a476280 | 580 | n0 = 10; //Move pixel x coordinate to 10 |
adrenc94 | 0:28446a476280 | 581 | n1 = 11; //Move pixel x coordinate to 11 |
adrenc94 | 0:28446a476280 | 582 | o0 = 18; //Move pixel x coordinate to 18 |
adrenc94 | 0:28446a476280 | 583 | o1 = 19; //Move pixel x coordinate to 19 |
adrenc94 | 0:28446a476280 | 584 | q0 = 11; //Move pixel x coordinate to 11 |
adrenc94 | 0:28446a476280 | 585 | q1 = 12; //Move pixel x coordinate to 12 |
adrenc94 | 0:28446a476280 | 586 | q2 = 13; //Move pixel x coordinate to 13 |
adrenc94 | 0:28446a476280 | 587 | q3 = 14; //Move pixel x coordinate to 14 |
adrenc94 | 0:28446a476280 | 588 | q4 = 15; //Move pixel x coordinate to 15 |
adrenc94 | 0:28446a476280 | 589 | q5 = 16; //Move pixel x coordinate to 16 |
adrenc94 | 0:28446a476280 | 590 | q6 = 17; //Move pixel x coordinate to 17 |
adrenc94 | 0:28446a476280 | 591 | q7 = 18; //Move pixel x coordinate to 18 |
adrenc94 | 0:28446a476280 | 592 | w0 = 20; //Set front wheel width to 20 |
adrenc94 | 0:28446a476280 | 593 | w1 = 38; //Set rear wheel width to 38 |
adrenc94 | 0:28446a476280 | 594 | } |
adrenc94 | 0:28446a476280 | 595 | |
adrenc94 | 0:28446a476280 | 596 | void carDistance3() //Car x coordinate increment 3 |
adrenc94 | 0:28446a476280 | 597 | { |
adrenc94 | 0:28446a476280 | 598 | a0 = 8; //Move pixel x coordinate to 8 |
adrenc94 | 0:28446a476280 | 599 | a1 = 9; //Move pixel x coordinate to 9 |
adrenc94 | 0:28446a476280 | 600 | a2 = 10; //Move pixel x coordinate to 10 |
adrenc94 | 0:28446a476280 | 601 | b0 = 16; //Move pixel x coordinate to 16 |
adrenc94 | 0:28446a476280 | 602 | b1 = 17; //Move pixel x coordinate to 17 |
adrenc94 | 0:28446a476280 | 603 | b2 = 18; //Move pixel x coordinate to 18 |
adrenc94 | 0:28446a476280 | 604 | b3 = 19; //Move pixel x coordinate to 19 |
adrenc94 | 0:28446a476280 | 605 | c0 = 25; //Move pixel x coordinate to 25 |
adrenc94 | 0:28446a476280 | 606 | c1 = 26; //Move pixel x coordinate to 26 |
adrenc94 | 0:28446a476280 | 607 | c2 = 27; //Move pixel x coordinate to 27 |
adrenc94 | 0:28446a476280 | 608 | d0 = 7; //Move pixel x coordinate to 7 |
adrenc94 | 0:28446a476280 | 609 | e0 = 27; //Move pixel x coordinate to 27 |
adrenc94 | 0:28446a476280 | 610 | e1 = 28; //Move pixel x coordinate to 28 |
adrenc94 | 0:28446a476280 | 611 | f0 = 7; //Move pixel x coordinate to 7 |
adrenc94 | 0:28446a476280 | 612 | g0 = 27; //Move pixel x coordinate to 27 |
adrenc94 | 0:28446a476280 | 613 | g1 = 28; //Move pixel x coordinate to 28 |
adrenc94 | 0:28446a476280 | 614 | h0 = 8; //Move pixel x coordinate to 8 |
adrenc94 | 0:28446a476280 | 615 | h1 = 9; //Move pixel x coordinate to 9 |
adrenc94 | 0:28446a476280 | 616 | h2 = 10; //Move pixel x coordinate to 10 |
adrenc94 | 0:28446a476280 | 617 | h3 = 11; //Move pixel x coordinate to 11 |
adrenc94 | 0:28446a476280 | 618 | i0 = 24; //Move pixel x coordinate to 24 |
adrenc94 | 0:28446a476280 | 619 | i1 = 25; //Move pixel x coordinate to 25 |
adrenc94 | 0:28446a476280 | 620 | i2 = 26; //Move pixel x coordinate to 26 |
adrenc94 | 0:28446a476280 | 621 | i3 = 27; //Move pixel x coordinate to 27 |
adrenc94 | 0:28446a476280 | 622 | j0 = 11; //Move pixel x coordinate to 11 |
adrenc94 | 0:28446a476280 | 623 | j1 = 12; //Move pixel x coordinate to 12 |
adrenc94 | 0:28446a476280 | 624 | k0 = 23; //Move pixel x coordinate to 23 |
adrenc94 | 0:28446a476280 | 625 | k1 = 24; //Move pixel x coordinate to 24 |
adrenc94 | 0:28446a476280 | 626 | l0 = 12; //Move pixel x coordinate to 12 |
adrenc94 | 0:28446a476280 | 627 | l1 = 13; //Move pixel x coordinate to 13 |
adrenc94 | 0:28446a476280 | 628 | m0 = 22; //Move pixel x coordinate to 22 |
adrenc94 | 0:28446a476280 | 629 | m1 = 23; //Move pixel x coordinate to 23 |
adrenc94 | 0:28446a476280 | 630 | n0 = 13; //Move pixel x coordinate to 13 |
adrenc94 | 0:28446a476280 | 631 | n1 = 14; //Move pixel x coordinate to 14 |
adrenc94 | 0:28446a476280 | 632 | o0 = 21; //Move pixel x coordinate to 21 |
adrenc94 | 0:28446a476280 | 633 | o1 = 22; //Move pixel x coordinate to 22 |
adrenc94 | 0:28446a476280 | 634 | q0 = 14; //Move pixel x coordinate to 14 |
adrenc94 | 0:28446a476280 | 635 | q1 = 15; //Move pixel x coordinate to 15 |
adrenc94 | 0:28446a476280 | 636 | q2 = 16; //Move pixel x coordinate to 16 |
adrenc94 | 0:28446a476280 | 637 | q3 = 17; //Move pixel x coordinate to 17 |
adrenc94 | 0:28446a476280 | 638 | q4 = 18; //Move pixel x coordinate to 18 |
adrenc94 | 0:28446a476280 | 639 | q5 = 19; //Move pixel x coordinate to 19 |
adrenc94 | 0:28446a476280 | 640 | q6 = 20; //Move pixel x coordinate to 20 |
adrenc94 | 0:28446a476280 | 641 | q7 = 21; //Move pixel x coordinate to 21 |
adrenc94 | 0:28446a476280 | 642 | w0 = 26; //Set front wheel width to 26 |
adrenc94 | 0:28446a476280 | 643 | w1 = 42; //Set rear wheel width to 42 |
adrenc94 | 0:28446a476280 | 644 | } |
adrenc94 | 0:28446a476280 | 645 | |
adrenc94 | 0:28446a476280 | 646 | void carDistance4() //Car x coordinate increment 4 |
adrenc94 | 0:28446a476280 | 647 | { |
adrenc94 | 0:28446a476280 | 648 | a0 = 11; //Move pixel x coordinate to 11 |
adrenc94 | 0:28446a476280 | 649 | a1 = 12; //Move pixel x coordinate to 12 |
adrenc94 | 0:28446a476280 | 650 | a2 = 13; //Move pixel x coordinate to 13 |
adrenc94 | 0:28446a476280 | 651 | b0 = 19; //Move pixel x coordinate to 19 |
adrenc94 | 0:28446a476280 | 652 | b1 = 20; //Move pixel x coordinate to 20 |
adrenc94 | 0:28446a476280 | 653 | b2 = 21; //Move pixel x coordinate to 21 |
adrenc94 | 0:28446a476280 | 654 | b3 = 22; //Move pixel x coordinate to 22 |
adrenc94 | 0:28446a476280 | 655 | c0 = 28; //Move pixel x coordinate to 28 |
adrenc94 | 0:28446a476280 | 656 | c1 = 29; //Move pixel x coordinate to 29 |
adrenc94 | 0:28446a476280 | 657 | c2 = 30; //Move pixel x coordinate to 30 |
adrenc94 | 0:28446a476280 | 658 | d0 = 10; //Move pixel x coordinate to 10 |
adrenc94 | 0:28446a476280 | 659 | e0 = 30; //Move pixel x coordinate to 30 |
adrenc94 | 0:28446a476280 | 660 | e1 = 31; //Move pixel x coordinate to 31 |
adrenc94 | 0:28446a476280 | 661 | f0 = 10; //Move pixel x coordinate to 10 |
adrenc94 | 0:28446a476280 | 662 | g0 = 30; //Move pixel x coordinate to 30 |
adrenc94 | 0:28446a476280 | 663 | g1 = 31; //Move pixel x coordinate to 31 |
adrenc94 | 0:28446a476280 | 664 | h0 = 11; //Move pixel x coordinate to 11 |
adrenc94 | 0:28446a476280 | 665 | h1 = 12; //Move pixel x coordinate to 12 |
adrenc94 | 0:28446a476280 | 666 | h2 = 13; //Move pixel x coordinate to 13 |
adrenc94 | 0:28446a476280 | 667 | h3 = 14; //Move pixel x coordinate to 14 |
adrenc94 | 0:28446a476280 | 668 | i0 = 27; //Move pixel x coordinate to 27 |
adrenc94 | 0:28446a476280 | 669 | i1 = 28; //Move pixel x coordinate to 28 |
adrenc94 | 0:28446a476280 | 670 | i2 = 29; //Move pixel x coordinate to 29 |
adrenc94 | 0:28446a476280 | 671 | i3 = 30; //Move pixel x coordinate to 30 |
adrenc94 | 0:28446a476280 | 672 | j0 = 14; //Move pixel x coordinate to 14 |
adrenc94 | 0:28446a476280 | 673 | j1 = 15; //Move pixel x coordinate to 15 |
adrenc94 | 0:28446a476280 | 674 | k0 = 26; //Move pixel x coordinate to 26 |
adrenc94 | 0:28446a476280 | 675 | k1 = 27; //Move pixel x coordinate to 27 |
adrenc94 | 0:28446a476280 | 676 | l0 = 15; //Move pixel x coordinate to 15 |
adrenc94 | 0:28446a476280 | 677 | l1 = 16; //Move pixel x coordinate to 16 |
adrenc94 | 0:28446a476280 | 678 | m0 = 25; //Move pixel x coordinate to 25 |
adrenc94 | 0:28446a476280 | 679 | m1 = 26; //Move pixel x coordinate to 26 |
adrenc94 | 0:28446a476280 | 680 | n0 = 16; //Move pixel x coordinate to 16 |
adrenc94 | 0:28446a476280 | 681 | n1 = 17; //Move pixel x coordinate to 17 |
adrenc94 | 0:28446a476280 | 682 | o0 = 24; //Move pixel x coordinate to 24 |
adrenc94 | 0:28446a476280 | 683 | o1 = 25; //Move pixel x coordinate to 25 |
adrenc94 | 0:28446a476280 | 684 | q0 = 17; //Move pixel x coordinate to 17 |
adrenc94 | 0:28446a476280 | 685 | q1 = 18; //Move pixel x coordinate to 18 |
adrenc94 | 0:28446a476280 | 686 | q2 = 19; //Move pixel x coordinate to 19 |
adrenc94 | 0:28446a476280 | 687 | q3 = 20; //Move pixel x coordinate to 20 |
adrenc94 | 0:28446a476280 | 688 | q4 = 21; //Move pixel x coordinate to 21 |
adrenc94 | 0:28446a476280 | 689 | q5 = 22; //Move pixel x coordinate to 22 |
adrenc94 | 0:28446a476280 | 690 | q6 = 23; //Move pixel x coordinate to 23 |
adrenc94 | 0:28446a476280 | 691 | q7 = 24; //Move pixel x coordinate to 24 |
adrenc94 | 0:28446a476280 | 692 | w0 = 32; //Set front wheel width to 32 |
adrenc94 | 0:28446a476280 | 693 | w1 = 48; //Set rear wheel width to 48 |
adrenc94 | 0:28446a476280 | 694 | } |
adrenc94 | 0:28446a476280 | 695 | |
adrenc94 | 0:28446a476280 | 696 | void carDistance5() //Car x coordinate increment 5 |
adrenc94 | 0:28446a476280 | 697 | { |
adrenc94 | 0:28446a476280 | 698 | a0 = 14; //Move pixel x coordinate to 14 |
adrenc94 | 0:28446a476280 | 699 | a1 = 15; //Move pixel x coordinate to 15 |
adrenc94 | 0:28446a476280 | 700 | a2 = 16; //Move pixel x coordinate to 16 |
adrenc94 | 0:28446a476280 | 701 | b0 = 22; //Move pixel x coordinate to 22 |
adrenc94 | 0:28446a476280 | 702 | b1 = 23; //Move pixel x coordinate to 23 |
adrenc94 | 0:28446a476280 | 703 | b2 = 24; //Move pixel x coordinate to 24 |
adrenc94 | 0:28446a476280 | 704 | b3 = 25; //Move pixel x coordinate to 25 |
adrenc94 | 0:28446a476280 | 705 | c0 = 31; //Move pixel x coordinate to 31 |
adrenc94 | 0:28446a476280 | 706 | c1 = 32; //Move pixel x coordinate to 32 |
adrenc94 | 0:28446a476280 | 707 | c2 = 33; //Move pixel x coordinate to 33 |
adrenc94 | 0:28446a476280 | 708 | d0 = 13; //Move pixel x coordinate to 13 |
adrenc94 | 0:28446a476280 | 709 | e0 = 33; //Move pixel x coordinate to 33 |
adrenc94 | 0:28446a476280 | 710 | e1 = 34; //Move pixel x coordinate to 34 |
adrenc94 | 0:28446a476280 | 711 | f0 = 13; //Move pixel x coordinate to 13 |
adrenc94 | 0:28446a476280 | 712 | g0 = 33; //Move pixel x coordinate to 33 |
adrenc94 | 0:28446a476280 | 713 | g1 = 34; //Move pixel x coordinate to 34 |
adrenc94 | 0:28446a476280 | 714 | h0 = 14; //Move pixel x coordinate to 14 |
adrenc94 | 0:28446a476280 | 715 | h1 = 15; //Move pixel x coordinate to 15 |
adrenc94 | 0:28446a476280 | 716 | h2 = 16; //Move pixel x coordinate to 16 |
adrenc94 | 0:28446a476280 | 717 | h3 = 17; //Move pixel x coordinate to 17 |
adrenc94 | 0:28446a476280 | 718 | i0 = 30; //Move pixel x coordinate to 30 |
adrenc94 | 0:28446a476280 | 719 | i1 = 31; //Move pixel x coordinate to 31 |
adrenc94 | 0:28446a476280 | 720 | i2 = 32; //Move pixel x coordinate to 32 |
adrenc94 | 0:28446a476280 | 721 | i3 = 33; //Move pixel x coordinate to 33 |
adrenc94 | 0:28446a476280 | 722 | j0 = 17; //Move pixel x coordinate to 17 |
adrenc94 | 0:28446a476280 | 723 | j1 = 18; //Move pixel x coordinate to 18 |
adrenc94 | 0:28446a476280 | 724 | k0 = 29; //Move pixel x coordinate to 29 |
adrenc94 | 0:28446a476280 | 725 | k1 = 30; //Move pixel x coordinate to 30 |
adrenc94 | 0:28446a476280 | 726 | l0 = 18; //Move pixel x coordinate to 18 |
adrenc94 | 0:28446a476280 | 727 | l1 = 19; //Move pixel x coordinate to 19 |
adrenc94 | 0:28446a476280 | 728 | m0 = 28; //Move pixel x coordinate to 28 |
adrenc94 | 0:28446a476280 | 729 | m1 = 29; //Move pixel x coordinate to 29 |
adrenc94 | 0:28446a476280 | 730 | n0 = 19; //Move pixel x coordinate to 19 |
adrenc94 | 0:28446a476280 | 731 | n1 = 20; //Move pixel x coordinate to 20 |
adrenc94 | 0:28446a476280 | 732 | o0 = 27; //Move pixel x coordinate to 27 |
adrenc94 | 0:28446a476280 | 733 | o1 = 28; //Move pixel x coordinate to 28 |
adrenc94 | 0:28446a476280 | 734 | q0 = 20; //Move pixel x coordinate to 20 |
adrenc94 | 0:28446a476280 | 735 | q1 = 21; //Move pixel x coordinate to 21 |
adrenc94 | 0:28446a476280 | 736 | q2 = 22; //Move pixel x coordinate to 22 |
adrenc94 | 0:28446a476280 | 737 | q3 = 23; //Move pixel x coordinate to 23 |
adrenc94 | 0:28446a476280 | 738 | q4 = 24; //Move pixel x coordinate to 24 |
adrenc94 | 0:28446a476280 | 739 | q5 = 25; //Move pixel x coordinate to 25 |
adrenc94 | 0:28446a476280 | 740 | q6 = 26; //Move pixel x coordinate to 26 |
adrenc94 | 0:28446a476280 | 741 | q7 = 27; //Move pixel x coordinate to 27 |
adrenc94 | 0:28446a476280 | 742 | w0 = 38; //Set front wheel width to 38 |
adrenc94 | 0:28446a476280 | 743 | w1 = 54; //Set rear wheel width to 54 |
adrenc94 | 0:28446a476280 | 744 | } |
adrenc94 | 0:28446a476280 | 745 | |
adrenc94 | 0:28446a476280 | 746 | void carDistance6() //Car x coordinate increment 6 |
adrenc94 | 0:28446a476280 | 747 | { |
adrenc94 | 0:28446a476280 | 748 | a0 = 17; //Move pixel x coordinate to 17 |
adrenc94 | 0:28446a476280 | 749 | a1 = 18; //Move pixel x coordinate to 18 |
adrenc94 | 0:28446a476280 | 750 | a2 = 19; //Move pixel x coordinate to 19 |
adrenc94 | 0:28446a476280 | 751 | b0 = 25; //Move pixel x coordinate to 25 |
adrenc94 | 0:28446a476280 | 752 | b1 = 26; //Move pixel x coordinate to 26 |
adrenc94 | 0:28446a476280 | 753 | b2 = 27; //Move pixel x coordinate to 27 |
adrenc94 | 0:28446a476280 | 754 | b3 = 28; //Move pixel x coordinate to 28 |
adrenc94 | 0:28446a476280 | 755 | c0 = 34; //Move pixel x coordinate to 34 |
adrenc94 | 0:28446a476280 | 756 | c1 = 35; //Move pixel x coordinate to 35 |
adrenc94 | 0:28446a476280 | 757 | c2 = 36; //Move pixel x coordinate to 36 |
adrenc94 | 0:28446a476280 | 758 | d0 = 16; //Move pixel x coordinate to 16 |
adrenc94 | 0:28446a476280 | 759 | e0 = 36; //Move pixel x coordinate to 36 |
adrenc94 | 0:28446a476280 | 760 | e1 = 37; //Move pixel x coordinate to 37 |
adrenc94 | 0:28446a476280 | 761 | f0 = 16; //Move pixel x coordinate to 16 |
adrenc94 | 0:28446a476280 | 762 | g0 = 36; //Move pixel x coordinate to 36 |
adrenc94 | 0:28446a476280 | 763 | g1 = 37; //Move pixel x coordinate to 37 |
adrenc94 | 0:28446a476280 | 764 | h0 = 17; //Move pixel x coordinate to 17 |
adrenc94 | 0:28446a476280 | 765 | h1 = 18; //Move pixel x coordinate to 18 |
adrenc94 | 0:28446a476280 | 766 | h2 = 19; //Move pixel x coordinate to 19 |
adrenc94 | 0:28446a476280 | 767 | h3 = 20; //Move pixel x coordinate to 20 |
adrenc94 | 0:28446a476280 | 768 | i0 = 33; //Move pixel x coordinate to 33 |
adrenc94 | 0:28446a476280 | 769 | i1 = 34; //Move pixel x coordinate to 34 |
adrenc94 | 0:28446a476280 | 770 | i2 = 35; //Move pixel x coordinate to 35 |
adrenc94 | 0:28446a476280 | 771 | i3 = 36; //Move pixel x coordinate to 36 |
adrenc94 | 0:28446a476280 | 772 | j0 = 20; //Move pixel x coordinate to 20 |
adrenc94 | 0:28446a476280 | 773 | j1 = 21; //Move pixel x coordinate to 21 |
adrenc94 | 0:28446a476280 | 774 | k0 = 32; //Move pixel x coordinate to 32 |
adrenc94 | 0:28446a476280 | 775 | k1 = 33; //Move pixel x coordinate to 33 |
adrenc94 | 0:28446a476280 | 776 | l0 = 21; //Move pixel x coordinate to 21 |
adrenc94 | 0:28446a476280 | 777 | l1 = 22; //Move pixel x coordinate to 22 |
adrenc94 | 0:28446a476280 | 778 | m0 = 31; //Move pixel x coordinate to 31 |
adrenc94 | 0:28446a476280 | 779 | m1 = 32; //Move pixel x coordinate to 32 |
adrenc94 | 0:28446a476280 | 780 | n0 = 22; //Move pixel x coordinate to 22 |
adrenc94 | 0:28446a476280 | 781 | n1 = 23; //Move pixel x coordinate to 23 |
adrenc94 | 0:28446a476280 | 782 | o0 = 30; //Move pixel x coordinate to 30 |
adrenc94 | 0:28446a476280 | 783 | o1 = 31; //Move pixel x coordinate to 31 |
adrenc94 | 0:28446a476280 | 784 | q0 = 23; //Move pixel x coordinate to 23 |
adrenc94 | 0:28446a476280 | 785 | q1 = 24; //Move pixel x coordinate to 24 |
adrenc94 | 0:28446a476280 | 786 | q2 = 25; //Move pixel x coordinate to 25 |
adrenc94 | 0:28446a476280 | 787 | q3 = 26; //Move pixel x coordinate to 26 |
adrenc94 | 0:28446a476280 | 788 | q4 = 27; //Move pixel x coordinate to 27 |
adrenc94 | 0:28446a476280 | 789 | q5 = 28; //Move pixel x coordinate to 28 |
adrenc94 | 0:28446a476280 | 790 | q6 = 29; //Move pixel x coordinate to 29 |
adrenc94 | 0:28446a476280 | 791 | q7 = 30; //Move pixel x coordinate to 30 |
adrenc94 | 0:28446a476280 | 792 | w0 = 44; //Set front wheel width to 44 |
adrenc94 | 0:28446a476280 | 793 | w1 = 60; //Set rear wheel width to 60 |
adrenc94 | 0:28446a476280 | 794 | } |
adrenc94 | 0:28446a476280 | 795 | |
adrenc94 | 0:28446a476280 | 796 | void carDistance7() //Car x coordinate increment 7 |
adrenc94 | 0:28446a476280 | 797 | { |
adrenc94 | 0:28446a476280 | 798 | a0 = 20; //Move pixel x coordinate to 20 |
adrenc94 | 0:28446a476280 | 799 | a1 = 21; //Move pixel x coordinate to 21 |
adrenc94 | 0:28446a476280 | 800 | a2 = 22; //Move pixel x coordinate to 22 |
adrenc94 | 0:28446a476280 | 801 | b0 = 28; //Move pixel x coordinate to 28 |
adrenc94 | 0:28446a476280 | 802 | b1 = 29; //Move pixel x coordinate to 29 |
adrenc94 | 0:28446a476280 | 803 | b2 = 30; //Move pixel x coordinate to 30 |
adrenc94 | 0:28446a476280 | 804 | b3 = 31; //Move pixel x coordinate to 31 |
adrenc94 | 0:28446a476280 | 805 | c0 = 37; //Move pixel x coordinate to 37 |
adrenc94 | 0:28446a476280 | 806 | c1 = 38; //Move pixel x coordinate to 38 |
adrenc94 | 0:28446a476280 | 807 | c2 = 39; //Move pixel x coordinate to 39 |
adrenc94 | 0:28446a476280 | 808 | d0 = 19; //Move pixel x coordinate to 19 |
adrenc94 | 0:28446a476280 | 809 | e0 = 39; //Move pixel x coordinate to 39 |
adrenc94 | 0:28446a476280 | 810 | e1 = 40; //Move pixel x coordinate to 40 |
adrenc94 | 0:28446a476280 | 811 | f0 = 19; //Move pixel x coordinate to 19 |
adrenc94 | 0:28446a476280 | 812 | g0 = 39; //Move pixel x coordinate to 39 |
adrenc94 | 0:28446a476280 | 813 | g1 = 40; //Move pixel x coordinate to 40 |
adrenc94 | 0:28446a476280 | 814 | h0 = 20; //Move pixel x coordinate to 20 |
adrenc94 | 0:28446a476280 | 815 | h1 = 21; //Move pixel x coordinate to 21 |
adrenc94 | 0:28446a476280 | 816 | h2 = 22; //Move pixel x coordinate to 22 |
adrenc94 | 0:28446a476280 | 817 | h3 = 23; //Move pixel x coordinate to 23 |
adrenc94 | 0:28446a476280 | 818 | i0 = 36; //Move pixel x coordinate to 36 |
adrenc94 | 0:28446a476280 | 819 | i1 = 37; //Move pixel x coordinate to 37 |
adrenc94 | 0:28446a476280 | 820 | i2 = 38; //Move pixel x coordinate to 38 |
adrenc94 | 0:28446a476280 | 821 | i3 = 39; //Move pixel x coordinate to 39 |
adrenc94 | 0:28446a476280 | 822 | j0 = 23; //Move pixel x coordinate to 23 |
adrenc94 | 0:28446a476280 | 823 | j1 = 24; //Move pixel x coordinate to 24 |
adrenc94 | 0:28446a476280 | 824 | k0 = 35; //Move pixel x coordinate to 35 |
adrenc94 | 0:28446a476280 | 825 | k1 = 36; //Move pixel x coordinate to 36 |
adrenc94 | 0:28446a476280 | 826 | l0 = 24; //Move pixel x coordinate to 24 |
adrenc94 | 0:28446a476280 | 827 | l1 = 25; //Move pixel x coordinate to 25 |
adrenc94 | 0:28446a476280 | 828 | m0 = 34; //Move pixel x coordinate to 34 |
adrenc94 | 0:28446a476280 | 829 | m1 = 35; //Move pixel x coordinate to 35 |
adrenc94 | 0:28446a476280 | 830 | n0 = 25; //Move pixel x coordinate to 25 |
adrenc94 | 0:28446a476280 | 831 | n1 = 26; //Move pixel x coordinate to 26 |
adrenc94 | 0:28446a476280 | 832 | o0 = 33; //Move pixel x coordinate to 33 |
adrenc94 | 0:28446a476280 | 833 | o1 = 34; //Move pixel x coordinate to 34 |
adrenc94 | 0:28446a476280 | 834 | q0 = 26; //Move pixel x coordinate to 26 |
adrenc94 | 0:28446a476280 | 835 | q1 = 27; //Move pixel x coordinate to 27 |
adrenc94 | 0:28446a476280 | 836 | q2 = 28; //Move pixel x coordinate to 28 |
adrenc94 | 0:28446a476280 | 837 | q3 = 29; //Move pixel x coordinate to 29 |
adrenc94 | 0:28446a476280 | 838 | q4 = 30; //Move pixel x coordinate to 30 |
adrenc94 | 0:28446a476280 | 839 | q5 = 31; //Move pixel x coordinate to 31 |
adrenc94 | 0:28446a476280 | 840 | q6 = 32; //Move pixel x coordinate to 32 |
adrenc94 | 0:28446a476280 | 841 | q7 = 33; //Move pixel x coordinate to 33 |
adrenc94 | 0:28446a476280 | 842 | w0 = 50; //Set front wheel width to 50 |
adrenc94 | 0:28446a476280 | 843 | w1 = 66; //Set rear wheel width to 66 |
adrenc94 | 0:28446a476280 | 844 | } |
adrenc94 | 0:28446a476280 | 845 | |
adrenc94 | 0:28446a476280 | 846 | void carDistance8() //Car x coordinate increment 8 |
adrenc94 | 0:28446a476280 | 847 | { |
adrenc94 | 0:28446a476280 | 848 | a0 = 23; //Move pixel x coordinate to 23 |
adrenc94 | 0:28446a476280 | 849 | a1 = 24; //Move pixel x coordinate to 24 |
adrenc94 | 0:28446a476280 | 850 | a2 = 25; //Move pixel x coordinate to 25 |
adrenc94 | 0:28446a476280 | 851 | b0 = 31; //Move pixel x coordinate to 31 |
adrenc94 | 0:28446a476280 | 852 | b1 = 32; //Move pixel x coordinate to 32 |
adrenc94 | 0:28446a476280 | 853 | b2 = 33; //Move pixel x coordinate to 33 |
adrenc94 | 0:28446a476280 | 854 | b3 = 34; //Move pixel x coordinate to 34 |
adrenc94 | 0:28446a476280 | 855 | c0 = 40; //Move pixel x coordinate to 40 |
adrenc94 | 0:28446a476280 | 856 | c1 = 41; //Move pixel x coordinate to 41 |
adrenc94 | 0:28446a476280 | 857 | c2 = 42; //Move pixel x coordinate to 42 |
adrenc94 | 0:28446a476280 | 858 | d0 = 22; //Move pixel x coordinate to 22 |
adrenc94 | 0:28446a476280 | 859 | e0 = 42; //Move pixel x coordinate to 42 |
adrenc94 | 0:28446a476280 | 860 | e1 = 43; //Move pixel x coordinate to 43 |
adrenc94 | 0:28446a476280 | 861 | f0 = 22; //Move pixel x coordinate to 22 |
adrenc94 | 0:28446a476280 | 862 | g0 = 42; //Move pixel x coordinate to 42 |
adrenc94 | 0:28446a476280 | 863 | g1 = 43; //Move pixel x coordinate to 43 |
adrenc94 | 0:28446a476280 | 864 | h0 = 23; //Move pixel x coordinate to 23 |
adrenc94 | 0:28446a476280 | 865 | h1 = 24; //Move pixel x coordinate to 24 |
adrenc94 | 0:28446a476280 | 866 | h2 = 25; //Move pixel x coordinate to 25 |
adrenc94 | 0:28446a476280 | 867 | h3 = 26; //Move pixel x coordinate to 26 |
adrenc94 | 0:28446a476280 | 868 | i0 = 39; //Move pixel x coordinate to 39 |
adrenc94 | 0:28446a476280 | 869 | i1 = 40; //Move pixel x coordinate to 40 |
adrenc94 | 0:28446a476280 | 870 | i2 = 41; //Move pixel x coordinate to 41 |
adrenc94 | 0:28446a476280 | 871 | i3 = 42; //Move pixel x coordinate to 42 |
adrenc94 | 0:28446a476280 | 872 | j0 = 26; //Move pixel x coordinate to 26 |
adrenc94 | 0:28446a476280 | 873 | j1 = 27; //Move pixel x coordinate to 27 |
adrenc94 | 0:28446a476280 | 874 | k0 = 38; //Move pixel x coordinate to 38 |
adrenc94 | 0:28446a476280 | 875 | k1 = 39; //Move pixel x coordinate to 39 |
adrenc94 | 0:28446a476280 | 876 | l0 = 27; //Move pixel x coordinate to 27 |
adrenc94 | 0:28446a476280 | 877 | l1 = 28; //Move pixel x coordinate to 28 |
adrenc94 | 0:28446a476280 | 878 | m0 = 37; //Move pixel x coordinate to 37 |
adrenc94 | 0:28446a476280 | 879 | m1 = 38; //Move pixel x coordinate to 38 |
adrenc94 | 0:28446a476280 | 880 | n0 = 28; //Move pixel x coordinate to 28 |
adrenc94 | 0:28446a476280 | 881 | n1 = 29; //Move pixel x coordinate to 29 |
adrenc94 | 0:28446a476280 | 882 | o0 = 36; //Move pixel x coordinate to 36 |
adrenc94 | 0:28446a476280 | 883 | o1 = 37; //Move pixel x coordinate to 37 |
adrenc94 | 0:28446a476280 | 884 | q0 = 29; //Move pixel x coordinate to 29 |
adrenc94 | 0:28446a476280 | 885 | q1 = 30; //Move pixel x coordinate to 30 |
adrenc94 | 0:28446a476280 | 886 | q2 = 31; //Move pixel x coordinate to 31 |
adrenc94 | 0:28446a476280 | 887 | q3 = 32; //Move pixel x coordinate to 32 |
adrenc94 | 0:28446a476280 | 888 | q4 = 33; //Move pixel x coordinate to 33 |
adrenc94 | 0:28446a476280 | 889 | q5 = 34; //Move pixel x coordinate to 34 |
adrenc94 | 0:28446a476280 | 890 | q6 = 35; //Move pixel x coordinate to 35 |
adrenc94 | 0:28446a476280 | 891 | q7 = 36; //Move pixel x coordinate to 36 |
adrenc94 | 0:28446a476280 | 892 | w0 = 56; //Set front wheel width to 56 |
adrenc94 | 0:28446a476280 | 893 | w1 = 72; //Set rear wheel width to 72 |
adrenc94 | 0:28446a476280 | 894 | } |
adrenc94 | 0:28446a476280 | 895 | |
adrenc94 | 0:28446a476280 | 896 | void carDistance9() //Car x coordinate increment 9 |
adrenc94 | 0:28446a476280 | 897 | { |
adrenc94 | 0:28446a476280 | 898 | a0 = 26; //Move pixel x coordinate to 26 |
adrenc94 | 0:28446a476280 | 899 | a1 = 27; //Move pixel x coordinate to 27 |
adrenc94 | 0:28446a476280 | 900 | a2 = 28; //Move pixel x coordinate to 28 |
adrenc94 | 0:28446a476280 | 901 | b0 = 34; //Move pixel x coordinate to 34 |
adrenc94 | 0:28446a476280 | 902 | b1 = 35; //Move pixel x coordinate to 35 |
adrenc94 | 0:28446a476280 | 903 | b2 = 36; //Move pixel x coordinate to 36 |
adrenc94 | 0:28446a476280 | 904 | b3 = 37; //Move pixel x coordinate to 37 |
adrenc94 | 0:28446a476280 | 905 | c0 = 43; //Move pixel x coordinate to 43 |
adrenc94 | 0:28446a476280 | 906 | c1 = 44; //Move pixel x coordinate to 44 |
adrenc94 | 0:28446a476280 | 907 | c2 = 45; //Move pixel x coordinate to 45 |
adrenc94 | 0:28446a476280 | 908 | d0 = 25; //Move pixel x coordinate to 25 |
adrenc94 | 0:28446a476280 | 909 | e0 = 45; //Move pixel x coordinate to 45 |
adrenc94 | 0:28446a476280 | 910 | e1 = 46; //Move pixel x coordinate to 46 |
adrenc94 | 0:28446a476280 | 911 | f0 = 25; //Move pixel x coordinate to 25 |
adrenc94 | 0:28446a476280 | 912 | g0 = 45; //Move pixel x coordinate to 45 |
adrenc94 | 0:28446a476280 | 913 | g1 = 46; //Move pixel x coordinate to 46 |
adrenc94 | 0:28446a476280 | 914 | h0 = 26; //Move pixel x coordinate to 26 |
adrenc94 | 0:28446a476280 | 915 | h1 = 27; //Move pixel x coordinate to 27 |
adrenc94 | 0:28446a476280 | 916 | h2 = 28; //Move pixel x coordinate to 28 |
adrenc94 | 0:28446a476280 | 917 | h3 = 29; //Move pixel x coordinate to 29 |
adrenc94 | 0:28446a476280 | 918 | i0 = 42; //Move pixel x coordinate to 42 |
adrenc94 | 0:28446a476280 | 919 | i1 = 43; //Move pixel x coordinate to 43 |
adrenc94 | 0:28446a476280 | 920 | i2 = 44; //Move pixel x coordinate to 44 |
adrenc94 | 0:28446a476280 | 921 | i3 = 45; //Move pixel x coordinate to 45 |
adrenc94 | 0:28446a476280 | 922 | j0 = 29; //Move pixel x coordinate to 29 |
adrenc94 | 0:28446a476280 | 923 | j1 = 30; //Move pixel x coordinate to 30 |
adrenc94 | 0:28446a476280 | 924 | k0 = 41; //Move pixel x coordinate to 41 |
adrenc94 | 0:28446a476280 | 925 | k1 = 42; //Move pixel x coordinate to 42 |
adrenc94 | 0:28446a476280 | 926 | l0 = 30; //Move pixel x coordinate to 30 |
adrenc94 | 0:28446a476280 | 927 | l1 = 31; //Move pixel x coordinate to 31 |
adrenc94 | 0:28446a476280 | 928 | m0 = 40; //Move pixel x coordinate to 40 |
adrenc94 | 0:28446a476280 | 929 | m1 = 41; //Move pixel x coordinate to 41 |
adrenc94 | 0:28446a476280 | 930 | n0 = 31; //Move pixel x coordinate to 31 |
adrenc94 | 0:28446a476280 | 931 | n1 = 32; //Move pixel x coordinate to 32 |
adrenc94 | 0:28446a476280 | 932 | o0 = 39; //Move pixel x coordinate to 39 |
adrenc94 | 0:28446a476280 | 933 | o1 = 40; //Move pixel x coordinate to 40 |
adrenc94 | 0:28446a476280 | 934 | q0 = 32; //Move pixel x coordinate to 32 |
adrenc94 | 0:28446a476280 | 935 | q1 = 33; //Move pixel x coordinate to 33 |
adrenc94 | 0:28446a476280 | 936 | q2 = 34; //Move pixel x coordinate to 34 |
adrenc94 | 0:28446a476280 | 937 | q3 = 35; //Move pixel x coordinate to 35 |
adrenc94 | 0:28446a476280 | 938 | q4 = 36; //Move pixel x coordinate to 36 |
adrenc94 | 0:28446a476280 | 939 | q5 = 37; //Move pixel x coordinate to 37 |
adrenc94 | 0:28446a476280 | 940 | q6 = 38; //Move pixel x coordinate to 38 |
adrenc94 | 0:28446a476280 | 941 | q7 = 39; //Move pixel x coordinate to 39 |
adrenc94 | 0:28446a476280 | 942 | w0 = 62; //Set front wheel width to 62 |
adrenc94 | 0:28446a476280 | 943 | w1 = 78; //Set rear wheel width to 78 |
adrenc94 | 0:28446a476280 | 944 | } |
adrenc94 | 0:28446a476280 | 945 | |
adrenc94 | 0:28446a476280 | 946 | void carDistance10() //Car x coordinate increment 10 |
adrenc94 | 0:28446a476280 | 947 | { |
adrenc94 | 0:28446a476280 | 948 | a0 = 29; //Move pixel x coordinate to 29 |
adrenc94 | 0:28446a476280 | 949 | a1 = 30; //Move pixel x coordinate to 30 |
adrenc94 | 0:28446a476280 | 950 | a2 = 31; //Move pixel x coordinate to 31 |
adrenc94 | 0:28446a476280 | 951 | b0 = 37; //Move pixel x coordinate to 37 |
adrenc94 | 0:28446a476280 | 952 | b1 = 38; //Move pixel x coordinate to 38 |
adrenc94 | 0:28446a476280 | 953 | b2 = 39; //Move pixel x coordinate to 39 |
adrenc94 | 0:28446a476280 | 954 | b3 = 40; //Move pixel x coordinate to 40 |
adrenc94 | 0:28446a476280 | 955 | c0 = 46; //Move pixel x coordinate to 46 |
adrenc94 | 0:28446a476280 | 956 | c1 = 47; //Move pixel x coordinate to 47 |
adrenc94 | 0:28446a476280 | 957 | c2 = 48; //Move pixel x coordinate to 48 |
adrenc94 | 0:28446a476280 | 958 | d0 = 28; //Move pixel x coordinate to 28 |
adrenc94 | 0:28446a476280 | 959 | e0 = 48; //Move pixel x coordinate to 48 |
adrenc94 | 0:28446a476280 | 960 | e1 = 49; //Move pixel x coordinate to 49 |
adrenc94 | 0:28446a476280 | 961 | f0 = 28; //Move pixel x coordinate to 28 |
adrenc94 | 0:28446a476280 | 962 | g0 = 48; //Move pixel x coordinate to 48 |
adrenc94 | 0:28446a476280 | 963 | g1 = 49; //Move pixel x coordinate to 49 |
adrenc94 | 0:28446a476280 | 964 | h0 = 29; //Move pixel x coordinate to 29 |
adrenc94 | 0:28446a476280 | 965 | h1 = 30; //Move pixel x coordinate to 30 |
adrenc94 | 0:28446a476280 | 966 | h2 = 31; //Move pixel x coordinate to 31 |
adrenc94 | 0:28446a476280 | 967 | h3 = 32; //Move pixel x coordinate to 32 |
adrenc94 | 0:28446a476280 | 968 | i0 = 45; //Move pixel x coordinate to 45 |
adrenc94 | 0:28446a476280 | 969 | i1 = 46; //Move pixel x coordinate to 46 |
adrenc94 | 0:28446a476280 | 970 | i2 = 47; //Move pixel x coordinate to 47 |
adrenc94 | 0:28446a476280 | 971 | i3 = 48; //Move pixel x coordinate to 48 |
adrenc94 | 0:28446a476280 | 972 | j0 = 32; //Move pixel x coordinate to 32 |
adrenc94 | 0:28446a476280 | 973 | j1 = 33; //Move pixel x coordinate to 33 |
adrenc94 | 0:28446a476280 | 974 | k0 = 44; //Move pixel x coordinate to 44 |
adrenc94 | 0:28446a476280 | 975 | k1 = 45; //Move pixel x coordinate to 45 |
adrenc94 | 0:28446a476280 | 976 | l0 = 33; //Move pixel x coordinate to 33 |
adrenc94 | 0:28446a476280 | 977 | l1 = 34; //Move pixel x coordinate to 34 |
adrenc94 | 0:28446a476280 | 978 | m0 = 43; //Move pixel x coordinate to 43 |
adrenc94 | 0:28446a476280 | 979 | m1 = 44; //Move pixel x coordinate to 44 |
adrenc94 | 0:28446a476280 | 980 | n0 = 34; //Move pixel x coordinate to 34 |
adrenc94 | 0:28446a476280 | 981 | n1 = 35; //Move pixel x coordinate to 35 |
adrenc94 | 0:28446a476280 | 982 | o0 = 42; //Move pixel x coordinate to 42 |
adrenc94 | 0:28446a476280 | 983 | o1 = 43; //Move pixel x coordinate to 43 |
adrenc94 | 0:28446a476280 | 984 | q0 = 35; //Move pixel x coordinate to 35 |
adrenc94 | 0:28446a476280 | 985 | q1 = 36; //Move pixel x coordinate to 36 |
adrenc94 | 0:28446a476280 | 986 | q2 = 37; //Move pixel x coordinate to 37 |
adrenc94 | 0:28446a476280 | 987 | q3 = 38; //Move pixel x coordinate to 38 |
adrenc94 | 0:28446a476280 | 988 | q4 = 39; //Move pixel x coordinate to 39 |
adrenc94 | 0:28446a476280 | 989 | q5 = 40; //Move pixel x coordinate to 40 |
adrenc94 | 0:28446a476280 | 990 | q6 = 41; //Move pixel x coordinate to 41 |
adrenc94 | 0:28446a476280 | 991 | q7 = 42; //Move pixel x coordinate to 42 |
adrenc94 | 0:28446a476280 | 992 | w0 = 68; //Set front wheel width to 68 |
adrenc94 | 0:28446a476280 | 993 | w1 = 84; //Set rear wheel width to 84 |
adrenc94 | 0:28446a476280 | 994 | } |
adrenc94 | 0:28446a476280 | 995 | |
adrenc94 | 0:28446a476280 | 996 | void carDistance11() //Car x coordinate increment 11 |
adrenc94 | 0:28446a476280 | 997 | { |
adrenc94 | 0:28446a476280 | 998 | a0 = 32; //Move pixel x coordinate to 32 |
adrenc94 | 0:28446a476280 | 999 | a1 = 33; //Move pixel x coordinate to 33 |
adrenc94 | 0:28446a476280 | 1000 | a2 = 34; //Move pixel x coordinate to 34 |
adrenc94 | 0:28446a476280 | 1001 | b0 = 40; //Move pixel x coordinate to 40 |
adrenc94 | 0:28446a476280 | 1002 | b1 = 41; //Move pixel x coordinate to 41 |
adrenc94 | 0:28446a476280 | 1003 | b2 = 42; //Move pixel x coordinate to 42 |
adrenc94 | 0:28446a476280 | 1004 | b3 = 43; //Move pixel x coordinate to 43 |
adrenc94 | 0:28446a476280 | 1005 | c0 = 49; //Move pixel x coordinate to 49 |
adrenc94 | 0:28446a476280 | 1006 | c1 = 50; //Move pixel x coordinate to 50 |
adrenc94 | 0:28446a476280 | 1007 | c2 = 51; //Move pixel x coordinate to 51 |
adrenc94 | 0:28446a476280 | 1008 | d0 = 31; //Move pixel x coordinate to 31 |
adrenc94 | 0:28446a476280 | 1009 | e0 = 51; //Move pixel x coordinate to 51 |
adrenc94 | 0:28446a476280 | 1010 | e1 = 52; //Move pixel x coordinate to 52 |
adrenc94 | 0:28446a476280 | 1011 | f0 = 31; //Move pixel x coordinate to 31 |
adrenc94 | 0:28446a476280 | 1012 | g0 = 51; //Move pixel x coordinate to 51 |
adrenc94 | 0:28446a476280 | 1013 | g1 = 52; //Move pixel x coordinate to 52 |
adrenc94 | 0:28446a476280 | 1014 | h0 = 32; //Move pixel x coordinate to 32 |
adrenc94 | 0:28446a476280 | 1015 | h1 = 33; //Move pixel x coordinate to 33 |
adrenc94 | 0:28446a476280 | 1016 | h2 = 34; //Move pixel x coordinate to 34 |
adrenc94 | 0:28446a476280 | 1017 | h3 = 35; //Move pixel x coordinate to 35 |
adrenc94 | 0:28446a476280 | 1018 | i0 = 48; //Move pixel x coordinate to 48 |
adrenc94 | 0:28446a476280 | 1019 | i1 = 49; //Move pixel x coordinate to 49 |
adrenc94 | 0:28446a476280 | 1020 | i2 = 50; //Move pixel x coordinate to 50 |
adrenc94 | 0:28446a476280 | 1021 | i3 = 51; //Move pixel x coordinate to 51 |
adrenc94 | 0:28446a476280 | 1022 | j0 = 35; //Move pixel x coordinate to 35 |
adrenc94 | 0:28446a476280 | 1023 | j1 = 36; //Move pixel x coordinate to 36 |
adrenc94 | 0:28446a476280 | 1024 | k0 = 47; //Move pixel x coordinate to 47 |
adrenc94 | 0:28446a476280 | 1025 | k1 = 48; //Move pixel x coordinate to 48 |
adrenc94 | 0:28446a476280 | 1026 | l0 = 36; //Move pixel x coordinate to 36 |
adrenc94 | 0:28446a476280 | 1027 | l1 = 37; //Move pixel x coordinate to 37 |
adrenc94 | 0:28446a476280 | 1028 | m0 = 46; //Move pixel x coordinate to 46 |
adrenc94 | 0:28446a476280 | 1029 | m1 = 47; //Move pixel x coordinate to 47 |
adrenc94 | 0:28446a476280 | 1030 | n0 = 37; //Move pixel x coordinate to 37 |
adrenc94 | 0:28446a476280 | 1031 | n1 = 38; //Move pixel x coordinate to 38 |
adrenc94 | 0:28446a476280 | 1032 | o0 = 45; //Move pixel x coordinate to 45 |
adrenc94 | 0:28446a476280 | 1033 | o1 = 46; //Move pixel x coordinate to 46 |
adrenc94 | 0:28446a476280 | 1034 | q0 = 38; //Move pixel x coordinate to 38 |
adrenc94 | 0:28446a476280 | 1035 | q1 = 39; //Move pixel x coordinate to 39 |
adrenc94 | 0:28446a476280 | 1036 | q2 = 40; //Move pixel x coordinate to 40 |
adrenc94 | 0:28446a476280 | 1037 | q3 = 41; //Move pixel x coordinate to 41 |
adrenc94 | 0:28446a476280 | 1038 | q4 = 42; //Move pixel x coordinate to 42 |
adrenc94 | 0:28446a476280 | 1039 | q5 = 43; //Move pixel x coordinate to 43 |
adrenc94 | 0:28446a476280 | 1040 | q6 = 44; //Move pixel x coordinate to 44 |
adrenc94 | 0:28446a476280 | 1041 | q7 = 45; //Move pixel x coordinate to 45 |
adrenc94 | 0:28446a476280 | 1042 | w0 = 74; //Set front wheel width to 74 |
adrenc94 | 0:28446a476280 | 1043 | w1 = 90; //Set rear wheel width to 90 |
adrenc94 | 0:28446a476280 | 1044 | } |
adrenc94 | 0:28446a476280 | 1045 | |
adrenc94 | 0:28446a476280 | 1046 | void carDistance12() //Car x coordinate increment 12 |
adrenc94 | 0:28446a476280 | 1047 | { |
adrenc94 | 0:28446a476280 | 1048 | a0 = 35; //Move pixel x coordinate to 35 |
adrenc94 | 0:28446a476280 | 1049 | a1 = 36; //Move pixel x coordinate to 36 |
adrenc94 | 0:28446a476280 | 1050 | a2 = 37; //Move pixel x coordinate to 37 |
adrenc94 | 0:28446a476280 | 1051 | b0 = 43; //Move pixel x coordinate to 43 |
adrenc94 | 0:28446a476280 | 1052 | b1 = 44; //Move pixel x coordinate to 44 |
adrenc94 | 0:28446a476280 | 1053 | b2 = 45; //Move pixel x coordinate to 45 |
adrenc94 | 0:28446a476280 | 1054 | b3 = 46; //Move pixel x coordinate to 46 |
adrenc94 | 0:28446a476280 | 1055 | c0 = 52; //Move pixel x coordinate to 52 |
adrenc94 | 0:28446a476280 | 1056 | c1 = 53; //Move pixel x coordinate to 53 |
adrenc94 | 0:28446a476280 | 1057 | c2 = 54; //Move pixel x coordinate to 54 |
adrenc94 | 0:28446a476280 | 1058 | d0 = 34; //Move pixel x coordinate to 34 |
adrenc94 | 0:28446a476280 | 1059 | e0 = 54; //Move pixel x coordinate to 54 |
adrenc94 | 0:28446a476280 | 1060 | e1 = 55; //Move pixel x coordinate to 55 |
adrenc94 | 0:28446a476280 | 1061 | f0 = 34; //Move pixel x coordinate to 34 |
adrenc94 | 0:28446a476280 | 1062 | g0 = 54; //Move pixel x coordinate to 54 |
adrenc94 | 0:28446a476280 | 1063 | g1 = 55; //Move pixel x coordinate to 55 |
adrenc94 | 0:28446a476280 | 1064 | h0 = 35; //Move pixel x coordinate to 35 |
adrenc94 | 0:28446a476280 | 1065 | h1 = 36; //Move pixel x coordinate to 36 |
adrenc94 | 0:28446a476280 | 1066 | h2 = 37; //Move pixel x coordinate to 37 |
adrenc94 | 0:28446a476280 | 1067 | h3 = 38; //Move pixel x coordinate to 38 |
adrenc94 | 0:28446a476280 | 1068 | i0 = 51; //Move pixel x coordinate to 51 |
adrenc94 | 0:28446a476280 | 1069 | i1 = 52; //Move pixel x coordinate to 52 |
adrenc94 | 0:28446a476280 | 1070 | i2 = 53; //Move pixel x coordinate to 3 |
adrenc94 | 0:28446a476280 | 1071 | i3 = 54; //Move pixel x coordinate to 54 |
adrenc94 | 0:28446a476280 | 1072 | j0 = 38; //Move pixel x coordinate to 38 |
adrenc94 | 0:28446a476280 | 1073 | j1 = 39; //Move pixel x coordinate to 39 |
adrenc94 | 0:28446a476280 | 1074 | k0 = 50; //Move pixel x coordinate to 50 |
adrenc94 | 0:28446a476280 | 1075 | k1 = 51; //Move pixel x coordinate to 51 |
adrenc94 | 0:28446a476280 | 1076 | l0 = 39; //Move pixel x coordinate to 39 |
adrenc94 | 0:28446a476280 | 1077 | l1 = 40; //Move pixel x coordinate to 40 |
adrenc94 | 0:28446a476280 | 1078 | m0 = 49; //Move pixel x coordinate to 49 |
adrenc94 | 0:28446a476280 | 1079 | m1 = 50; //Move pixel x coordinate to 50 |
adrenc94 | 0:28446a476280 | 1080 | n0 = 40; //Move pixel x coordinate to 40 |
adrenc94 | 0:28446a476280 | 1081 | n1 = 41; //Move pixel x coordinate to 41 |
adrenc94 | 0:28446a476280 | 1082 | o0 = 48; //Move pixel x coordinate to 48 |
adrenc94 | 0:28446a476280 | 1083 | o1 = 49; //Move pixel x coordinate to 49 |
adrenc94 | 0:28446a476280 | 1084 | q0 = 41; //Move pixel x coordinate to 41 |
adrenc94 | 0:28446a476280 | 1085 | q1 = 42; //Move pixel x coordinate to 42 |
adrenc94 | 0:28446a476280 | 1086 | q2 = 43; //Move pixel x coordinate to 43 |
adrenc94 | 0:28446a476280 | 1087 | q3 = 44; //Move pixel x coordinate to 44 |
adrenc94 | 0:28446a476280 | 1088 | q4 = 45; //Move pixel x coordinate to 45 |
adrenc94 | 0:28446a476280 | 1089 | q5 = 46; //Move pixel x coordinate to 46 |
adrenc94 | 0:28446a476280 | 1090 | q6 = 47; //Move pixel x coordinate to 47 |
adrenc94 | 0:28446a476280 | 1091 | q7 = 48; //Move pixel x coordinate to 48 |
adrenc94 | 0:28446a476280 | 1092 | w0 = 80; //Set front wheel width to 80 |
adrenc94 | 0:28446a476280 | 1093 | w1 = 96; //Set rear wheel width to 96 |
adrenc94 | 0:28446a476280 | 1094 | } |
adrenc94 | 0:28446a476280 | 1095 | |
adrenc94 | 0:28446a476280 | 1096 | void carDistance13() //Car x coordinate increment 13 |
adrenc94 | 0:28446a476280 | 1097 | { |
adrenc94 | 0:28446a476280 | 1098 | a0 = 38; //Move pixel x coordinate to 38 |
adrenc94 | 0:28446a476280 | 1099 | a1 = 39; //Move pixel x coordinate to 39 |
adrenc94 | 0:28446a476280 | 1100 | a2 = 40; //Move pixel x coordinate to 40 |
adrenc94 | 0:28446a476280 | 1101 | b0 = 46; //Move pixel x coordinate to 46 |
adrenc94 | 0:28446a476280 | 1102 | b1 = 47; //Move pixel x coordinate to 47 |
adrenc94 | 0:28446a476280 | 1103 | b2 = 48; //Move pixel x coordinate to 48 |
adrenc94 | 0:28446a476280 | 1104 | b3 = 49; //Move pixel x coordinate to 49 |
adrenc94 | 0:28446a476280 | 1105 | c0 = 55; //Move pixel x coordinate to 55 |
adrenc94 | 0:28446a476280 | 1106 | c1 = 56; //Move pixel x coordinate to 56 |
adrenc94 | 0:28446a476280 | 1107 | c2 = 57; //Move pixel x coordinate to 57 |
adrenc94 | 0:28446a476280 | 1108 | d0 = 37; //Move pixel x coordinate to 37 |
adrenc94 | 0:28446a476280 | 1109 | e0 = 57; //Move pixel x coordinate to 57 |
adrenc94 | 0:28446a476280 | 1110 | e1 = 58; //Move pixel x coordinate to 58 |
adrenc94 | 0:28446a476280 | 1111 | f0 = 37; //Move pixel x coordinate to 37 |
adrenc94 | 0:28446a476280 | 1112 | g0 = 57; //Move pixel x coordinate to 57 |
adrenc94 | 0:28446a476280 | 1113 | g1 = 58; //Move pixel x coordinate to 58 |
adrenc94 | 0:28446a476280 | 1114 | h0 = 38; //Move pixel x coordinate to 38 |
adrenc94 | 0:28446a476280 | 1115 | h1 = 39; //Move pixel x coordinate to 39 |
adrenc94 | 0:28446a476280 | 1116 | h2 = 40; //Move pixel x coordinate to 40 |
adrenc94 | 0:28446a476280 | 1117 | h3 = 41; //Move pixel x coordinate to 41 |
adrenc94 | 0:28446a476280 | 1118 | i0 = 54; //Move pixel x coordinate to 54 |
adrenc94 | 0:28446a476280 | 1119 | i1 = 55; //Move pixel x coordinate to 55 |
adrenc94 | 0:28446a476280 | 1120 | i2 = 56; //Move pixel x coordinate to 56 |
adrenc94 | 0:28446a476280 | 1121 | i3 = 57; //Move pixel x coordinate to 57 |
adrenc94 | 0:28446a476280 | 1122 | j0 = 41; //Move pixel x coordinate to 41 |
adrenc94 | 0:28446a476280 | 1123 | j1 = 42; //Move pixel x coordinate to 42 |
adrenc94 | 0:28446a476280 | 1124 | k0 = 53; //Move pixel x coordinate to 53 |
adrenc94 | 0:28446a476280 | 1125 | k1 = 54; //Move pixel x coordinate to 54 |
adrenc94 | 0:28446a476280 | 1126 | l0 = 42; //Move pixel x coordinate to 42 |
adrenc94 | 0:28446a476280 | 1127 | l1 = 43; //Move pixel x coordinate to 43 |
adrenc94 | 0:28446a476280 | 1128 | m0 = 52; //Move pixel x coordinate to 52 |
adrenc94 | 0:28446a476280 | 1129 | m1 = 53; //Move pixel x coordinate to 53 |
adrenc94 | 0:28446a476280 | 1130 | n0 = 43; //Move pixel x coordinate to 43 |
adrenc94 | 0:28446a476280 | 1131 | n1 = 44; //Move pixel x coordinate to 44 |
adrenc94 | 0:28446a476280 | 1132 | o0 = 51; //Move pixel x coordinate to 51 |
adrenc94 | 0:28446a476280 | 1133 | o1 = 52; //Move pixel x coordinate to 52 |
adrenc94 | 0:28446a476280 | 1134 | q0 = 44; //Move pixel x coordinate to 44 |
adrenc94 | 0:28446a476280 | 1135 | q1 = 45; //Move pixel x coordinate to 45 |
adrenc94 | 0:28446a476280 | 1136 | q2 = 46; //Move pixel x coordinate to 46 |
adrenc94 | 0:28446a476280 | 1137 | q3 = 47; //Move pixel x coordinate to 47 |
adrenc94 | 0:28446a476280 | 1138 | q4 = 48; //Move pixel x coordinate to 48 |
adrenc94 | 0:28446a476280 | 1139 | q5 = 49; //Move pixel x coordinate to 49 |
adrenc94 | 0:28446a476280 | 1140 | q6 = 50; //Move pixel x coordinate to 50 |
adrenc94 | 0:28446a476280 | 1141 | q7 = 51; //Move pixel x coordinate to 51 |
adrenc94 | 0:28446a476280 | 1142 | w0 = 86; //Set front wheel width to 86 |
adrenc94 | 0:28446a476280 | 1143 | w1 = 102; //Set rear wheel width to 102 |
adrenc94 | 0:28446a476280 | 1144 | } |
adrenc94 | 0:28446a476280 | 1145 | |
adrenc94 | 0:28446a476280 | 1146 | void carDistance14() //Car x coordinate increment 14 |
adrenc94 | 0:28446a476280 | 1147 | { |
adrenc94 | 0:28446a476280 | 1148 | a0 = 41; //Move pixel x coordinate to 41 |
adrenc94 | 0:28446a476280 | 1149 | a1 = 42; //Move pixel x coordinate to 42 |
adrenc94 | 0:28446a476280 | 1150 | a2 = 43; //Move pixel x coordinate to 43 |
adrenc94 | 0:28446a476280 | 1151 | b0 = 49; //Move pixel x coordinate to 49 |
adrenc94 | 0:28446a476280 | 1152 | b1 = 50; //Move pixel x coordinate to 50 |
adrenc94 | 0:28446a476280 | 1153 | b2 = 51; //Move pixel x coordinate to 51 |
adrenc94 | 0:28446a476280 | 1154 | b3 = 52; //Move pixel x coordinate to 52 |
adrenc94 | 0:28446a476280 | 1155 | c0 = 58; //Move pixel x coordinate to 58 |
adrenc94 | 0:28446a476280 | 1156 | c1 = 59; //Move pixel x coordinate to 59 |
adrenc94 | 0:28446a476280 | 1157 | c2 = 60; //Move pixel x coordinate to 60 |
adrenc94 | 0:28446a476280 | 1158 | d0 = 40; //Move pixel x coordinate to 40 |
adrenc94 | 0:28446a476280 | 1159 | e0 = 60; //Move pixel x coordinate to 60 |
adrenc94 | 0:28446a476280 | 1160 | e1 = 61; //Move pixel x coordinate to 61 |
adrenc94 | 0:28446a476280 | 1161 | f0 = 40; //Move pixel x coordinate to 40 |
adrenc94 | 0:28446a476280 | 1162 | g0 = 60; //Move pixel x coordinate to 60 |
adrenc94 | 0:28446a476280 | 1163 | g1 = 61; //Move pixel x coordinate to 61 |
adrenc94 | 0:28446a476280 | 1164 | h0 = 41; //Move pixel x coordinate to 41 |
adrenc94 | 0:28446a476280 | 1165 | h1 = 42; //Move pixel x coordinate to 42 |
adrenc94 | 0:28446a476280 | 1166 | h2 = 43; //Move pixel x coordinate to 43 |
adrenc94 | 0:28446a476280 | 1167 | h3 = 44; //Move pixel x coordinate to 44 |
adrenc94 | 0:28446a476280 | 1168 | i0 = 57; //Move pixel x coordinate to 57 |
adrenc94 | 0:28446a476280 | 1169 | i1 = 58; //Move pixel x coordinate to 58 |
adrenc94 | 0:28446a476280 | 1170 | i2 = 59; //Move pixel x coordinate to 59 |
adrenc94 | 0:28446a476280 | 1171 | i3 = 60; //Move pixel x coordinate to 60 |
adrenc94 | 0:28446a476280 | 1172 | j0 = 44; //Move pixel x coordinate to 44 |
adrenc94 | 0:28446a476280 | 1173 | j1 = 45; //Move pixel x coordinate to 45 |
adrenc94 | 0:28446a476280 | 1174 | k0 = 56; //Move pixel x coordinate to 56 |
adrenc94 | 0:28446a476280 | 1175 | k1 = 57; //Move pixel x coordinate to 57 |
adrenc94 | 0:28446a476280 | 1176 | l0 = 45; //Move pixel x coordinate to 45 |
adrenc94 | 0:28446a476280 | 1177 | l1 = 46; //Move pixel x coordinate to 46 |
adrenc94 | 0:28446a476280 | 1178 | m0 = 55; //Move pixel x coordinate to 55 |
adrenc94 | 0:28446a476280 | 1179 | m1 = 56; //Move pixel x coordinate to 56 |
adrenc94 | 0:28446a476280 | 1180 | n0 = 46; //Move pixel x coordinate to 46 |
adrenc94 | 0:28446a476280 | 1181 | n1 = 47; //Move pixel x coordinate to 47 |
adrenc94 | 0:28446a476280 | 1182 | o0 = 54; //Move pixel x coordinate to 54 |
adrenc94 | 0:28446a476280 | 1183 | o1 = 55; //Move pixel x coordinate to 55 |
adrenc94 | 0:28446a476280 | 1184 | q0 = 47; //Move pixel x coordinate to 47 |
adrenc94 | 0:28446a476280 | 1185 | q1 = 48; //Move pixel x coordinate to 48 |
adrenc94 | 0:28446a476280 | 1186 | q2 = 49; //Move pixel x coordinate to 49 |
adrenc94 | 0:28446a476280 | 1187 | q3 = 50; //Move pixel x coordinate to 50 |
adrenc94 | 0:28446a476280 | 1188 | q4 = 51; //Move pixel x coordinate to 51 |
adrenc94 | 0:28446a476280 | 1189 | q5 = 52; //Move pixel x coordinate to 52 |
adrenc94 | 0:28446a476280 | 1190 | q6 = 53; //Move pixel x coordinate to 53 |
adrenc94 | 0:28446a476280 | 1191 | q7 = 54; //Move pixel x coordinate to 54 |
adrenc94 | 0:28446a476280 | 1192 | w0 = 92; //Set front wheel width to 92 |
adrenc94 | 0:28446a476280 | 1193 | w1 = 108; //Set rear wheel width to 108 |
adrenc94 | 0:28446a476280 | 1194 | } |
adrenc94 | 0:28446a476280 | 1195 | |
adrenc94 | 0:28446a476280 | 1196 | void carDistance15() //Car x coordinate increment 15 |
adrenc94 | 0:28446a476280 | 1197 | { |
adrenc94 | 0:28446a476280 | 1198 | a0 = 44; //Move pixel x coordinate to 44 |
adrenc94 | 0:28446a476280 | 1199 | a1 = 45; //Move pixel x coordinate to 45 |
adrenc94 | 0:28446a476280 | 1200 | a2 = 46; //Move pixel x coordinate to 46 |
adrenc94 | 0:28446a476280 | 1201 | b0 = 52; //Move pixel x coordinate to 52 |
adrenc94 | 0:28446a476280 | 1202 | b1 = 53; //Move pixel x coordinate to 53 |
adrenc94 | 0:28446a476280 | 1203 | b2 = 54; //Move pixel x coordinate to 54 |
adrenc94 | 0:28446a476280 | 1204 | b3 = 55; //Move pixel x coordinate to 55 |
adrenc94 | 0:28446a476280 | 1205 | c0 = 61; //Move pixel x coordinate to 61 |
adrenc94 | 0:28446a476280 | 1206 | c1 = 62; //Move pixel x coordinate to 62 |
adrenc94 | 0:28446a476280 | 1207 | c2 = 63; //Move pixel x coordinate to 63 |
adrenc94 | 0:28446a476280 | 1208 | d0 = 43; //Move pixel x coordinate to 43 |
adrenc94 | 0:28446a476280 | 1209 | e0 = 63; //Move pixel x coordinate to 63 |
adrenc94 | 0:28446a476280 | 1210 | e1 = 64; //Move pixel x coordinate to 64 |
adrenc94 | 0:28446a476280 | 1211 | f0 = 43; //Move pixel x coordinate to 43 |
adrenc94 | 0:28446a476280 | 1212 | g0 = 63; //Move pixel x coordinate to 63 |
adrenc94 | 0:28446a476280 | 1213 | g1 = 64; //Move pixel x coordinate to 64 |
adrenc94 | 0:28446a476280 | 1214 | h0 = 44; //Move pixel x coordinate to 44 |
adrenc94 | 0:28446a476280 | 1215 | h1 = 45; //Move pixel x coordinate to 45 |
adrenc94 | 0:28446a476280 | 1216 | h2 = 46; //Move pixel x coordinate to 46 |
adrenc94 | 0:28446a476280 | 1217 | h3 = 47; //Move pixel x coordinate to 47 |
adrenc94 | 0:28446a476280 | 1218 | i0 = 60; //Move pixel x coordinate to 60 |
adrenc94 | 0:28446a476280 | 1219 | i1 = 61; //Move pixel x coordinate to 61 |
adrenc94 | 0:28446a476280 | 1220 | i2 = 62; //Move pixel x coordinate to 62 |
adrenc94 | 0:28446a476280 | 1221 | i3 = 63; //Move pixel x coordinate to 63 |
adrenc94 | 0:28446a476280 | 1222 | j0 = 47; //Move pixel x coordinate to 47 |
adrenc94 | 0:28446a476280 | 1223 | j1 = 48; //Move pixel x coordinate to 48 |
adrenc94 | 0:28446a476280 | 1224 | k0 = 59; //Move pixel x coordinate to 59 |
adrenc94 | 0:28446a476280 | 1225 | k1 = 60; //Move pixel x coordinate to 60 |
adrenc94 | 0:28446a476280 | 1226 | l0 = 48; //Move pixel x coordinate to 48 |
adrenc94 | 0:28446a476280 | 1227 | l1 = 49; //Move pixel x coordinate to 49 |
adrenc94 | 0:28446a476280 | 1228 | m0 = 58; //Move pixel x coordinate to 58 |
adrenc94 | 0:28446a476280 | 1229 | m1 = 59; //Move pixel x coordinate to 59 |
adrenc94 | 0:28446a476280 | 1230 | n0 = 49; //Move pixel x coordinate to 49 |
adrenc94 | 0:28446a476280 | 1231 | n1 = 50; //Move pixel x coordinate to 50 |
adrenc94 | 0:28446a476280 | 1232 | o0 = 57; //Move pixel x coordinate to 57 |
adrenc94 | 0:28446a476280 | 1233 | o1 = 58; //Move pixel x coordinate to 58 |
adrenc94 | 0:28446a476280 | 1234 | q0 = 50; //Move pixel x coordinate to 50 |
adrenc94 | 0:28446a476280 | 1235 | q1 = 51; //Move pixel x coordinate to 51 |
adrenc94 | 0:28446a476280 | 1236 | q2 = 52; //Move pixel x coordinate to 52 |
adrenc94 | 0:28446a476280 | 1237 | q3 = 53; //Move pixel x coordinate to 53 |
adrenc94 | 0:28446a476280 | 1238 | q4 = 54; //Move pixel x coordinate to 54 |
adrenc94 | 0:28446a476280 | 1239 | q5 = 55; //Move pixel x coordinate to 55 |
adrenc94 | 0:28446a476280 | 1240 | q6 = 56; //Move pixel x coordinate to 56 |
adrenc94 | 0:28446a476280 | 1241 | q7 = 57; //Move pixel x coordinate to 57 |
adrenc94 | 0:28446a476280 | 1242 | w0 = 98; //Set front wheel width to 98 |
adrenc94 | 0:28446a476280 | 1243 | w1 = 114; //Set rear wheel width to 114 |
adrenc94 | 0:28446a476280 | 1244 | } |