5 by 40 multi-color LED display with digital/magic LED strips http://www.youtube.com/watch?v=Txduzhp29fQ

Dependencies:   mbed

Committer:
LNSound
Date:
Sun Nov 06 18:13:38 2011 +0000
Revision:
0:a7ec991a632c
Child:
1:77d32b0c953c

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
LNSound 0:a7ec991a632c 1 #include "mbed.h"
LNSound 0:a7ec991a632c 2
LNSound 0:a7ec991a632c 3
LNSound 0:a7ec991a632c 4 //PwmOut CLK(p21); // pwm als klok, minimale pulsbreedte klok 300ns ofwel 3.33MHz max freq.
LNSound 0:a7ec991a632c 5 PwmOut fade(p22); // voor faden van leds.
LNSound 0:a7ec991a632c 6 DigitalOut latch(p19);
LNSound 0:a7ec991a632c 7 DigitalOut data(p20);
LNSound 0:a7ec991a632c 8 DigitalOut clk(p18);
LNSound 0:a7ec991a632c 9 DigitalOut s1(p17);
LNSound 0:a7ec991a632c 10 DigitalOut s2(p16);
LNSound 0:a7ec991a632c 11 DigitalOut s3(p15);
LNSound 0:a7ec991a632c 12 DigitalOut s4(p14);
LNSound 0:a7ec991a632c 13 DigitalOut s5(p13);
LNSound 0:a7ec991a632c 14
LNSound 0:a7ec991a632c 15 //SPIHalfDuplex master(p5, NC,p7);
LNSound 0:a7ec991a632c 16
LNSound 0:a7ec991a632c 17 /*
LNSound 0:a7ec991a632c 18 Bit # Meaning
LNSound 0:a7ec991a632c 19 7 Latchable. A 1 here makes the byte latachable, otherwise the byte is considered void and wont latch into the LED.
LNSound 0:a7ec991a632c 20 6 Double speed fading. See the S pin description. If set the LED will fade at double speed. Once on S going high and agan when S goes low.
LNSound 0:a7ec991a632c 21 5 Blue 1
LNSound 0:a7ec991a632c 22 4 Blue 0
LNSound 0:a7ec991a632c 23 3 Red 1
LNSound 0:a7ec991a632c 24 2 Red 0
LNSound 0:a7ec991a632c 25 1 Green 1
LNSound 0:a7ec991a632c 26 0 Green 0
LNSound 0:a7ec991a632c 27 */
LNSound 0:a7ec991a632c 28
LNSound 0:a7ec991a632c 29 /*Timing specifics:
LNSound 0:a7ec991a632c 30 LED PWM frequency is 500Hz.
LNSound 0:a7ec991a632c 31 Clock ON pulse must be > 300nSec.
LNSound 0:a7ec991a632c 32 Latch should be > 1uSec.
LNSound 0:a7ec991a632c 33 There is a 100nSec delay between latch into each LED and latch OUT of each LED.
LNSound 0:a7ec991a632c 34 After setting the datapin, you must wait at least 250nSec for each LED in your strip BEFORE taking clock high. 100 LEDS = 100 x 250nSec delay between sending last bit of data and taking latch high
LNSound 0:a7ec991a632c 35 */
LNSound 0:a7ec991a632c 36
LNSound 0:a7ec991a632c 37 DigitalOut myled(LED1);
LNSound 0:a7ec991a632c 38
LNSound 0:a7ec991a632c 39
LNSound 0:a7ec991a632c 40 void sendByte(unsigned char it) // decoderen van een byte naar serieel uitsturen
LNSound 0:a7ec991a632c 41 {
LNSound 0:a7ec991a632c 42 char x;
LNSound 0:a7ec991a632c 43 clk=0;
LNSound 0:a7ec991a632c 44
LNSound 0:a7ec991a632c 45 for(x=0; x<8; x++)
LNSound 0:a7ec991a632c 46 {
LNSound 0:a7ec991a632c 47 if(128 & it) data=1; // 128 om te kijken of de data bedoelt is om te latchen, zo niet wordt er niks uitgestuurd
LNSound 0:a7ec991a632c 48 else data=0;
LNSound 0:a7ec991a632c 49 it = it<<1;
LNSound 0:a7ec991a632c 50 wait_us(0.1); // 250x het aantal leds, dan in ns voor te zorgen dat het signaal wel het einde van de strip bereikt.
LNSound 0:a7ec991a632c 51 clk=1;
LNSound 0:a7ec991a632c 52 wait_us(0.3); // vereiste pulsbreedte van de clk.
LNSound 0:a7ec991a632c 53 clk=0;
LNSound 0:a7ec991a632c 54 }
LNSound 0:a7ec991a632c 55
LNSound 0:a7ec991a632c 56 }
LNSound 0:a7ec991a632c 57
LNSound 0:a7ec991a632c 58 void clear()
LNSound 0:a7ec991a632c 59 {
LNSound 0:a7ec991a632c 60 int i;
LNSound 0:a7ec991a632c 61 for(i=0 ; i < 80 ; i++)// i< het aantal leds op de strip
LNSound 0:a7ec991a632c 62 {
LNSound 0:a7ec991a632c 63 sendByte(0);
LNSound 0:a7ec991a632c 64 }
LNSound 0:a7ec991a632c 65 }
LNSound 0:a7ec991a632c 66
LNSound 0:a7ec991a632c 67 void latchen(){
LNSound 0:a7ec991a632c 68
LNSound 0:a7ec991a632c 69 latch=1;
LNSound 0:a7ec991a632c 70 wait_us(0.001);
LNSound 0:a7ec991a632c 71 latch=0;
LNSound 0:a7ec991a632c 72 }
LNSound 0:a7ec991a632c 73
LNSound 0:a7ec991a632c 74 void send_position(int x){
LNSound 0:a7ec991a632c 75 int i;
LNSound 0:a7ec991a632c 76 for(i=0 ; i < x ; i++) // doorschuiven naar positie x
LNSound 0:a7ec991a632c 77 {
LNSound 0:a7ec991a632c 78 sendByte(0);
LNSound 0:a7ec991a632c 79 }
LNSound 0:a7ec991a632c 80 latchen(); // die plaats aan zetten.
LNSound 0:a7ec991a632c 81 clear();
LNSound 0:a7ec991a632c 82
LNSound 0:a7ec991a632c 83
LNSound 0:a7ec991a632c 84
LNSound 0:a7ec991a632c 85 }
LNSound 0:a7ec991a632c 86
LNSound 0:a7ec991a632c 87 void erase(){
LNSound 0:a7ec991a632c 88 int x = 85;
LNSound 0:a7ec991a632c 89
LNSound 0:a7ec991a632c 90 s1=0;
LNSound 0:a7ec991a632c 91 s2=0;
LNSound 0:a7ec991a632c 92 s3=0;
LNSound 0:a7ec991a632c 93
LNSound 0:a7ec991a632c 94 s4=0;
LNSound 0:a7ec991a632c 95 s5=0;
LNSound 0:a7ec991a632c 96
LNSound 0:a7ec991a632c 97 for(int i=0 ; i < x ; i++) // alle leds uitzetten
LNSound 0:a7ec991a632c 98 {
LNSound 0:a7ec991a632c 99 sendByte(128);
LNSound 0:a7ec991a632c 100
LNSound 0:a7ec991a632c 101 }
LNSound 0:a7ec991a632c 102 latchen();
LNSound 0:a7ec991a632c 103 s1=1;
LNSound 0:a7ec991a632c 104 s2=1;
LNSound 0:a7ec991a632c 105 s3=1;
LNSound 0:a7ec991a632c 106 s4=1;
LNSound 0:a7ec991a632c 107 s5=1;
LNSound 0:a7ec991a632c 108
LNSound 0:a7ec991a632c 109 }
LNSound 0:a7ec991a632c 110
LNSound 0:a7ec991a632c 111 void move(int x)
LNSound 0:a7ec991a632c 112 {
LNSound 0:a7ec991a632c 113 s1=0;
LNSound 0:a7ec991a632c 114 s2=0;
LNSound 0:a7ec991a632c 115 s3=0;
LNSound 0:a7ec991a632c 116
LNSound 0:a7ec991a632c 117 s4=0;
LNSound 0:a7ec991a632c 118 s5=0;
LNSound 0:a7ec991a632c 119
LNSound 0:a7ec991a632c 120 for(int i=0 ; i < x ; i++) // alle leds uitzetten
LNSound 0:a7ec991a632c 121 {
LNSound 0:a7ec991a632c 122 sendByte(128);
LNSound 0:a7ec991a632c 123
LNSound 0:a7ec991a632c 124 }
LNSound 0:a7ec991a632c 125 latchen();
LNSound 0:a7ec991a632c 126
LNSound 0:a7ec991a632c 127
LNSound 0:a7ec991a632c 128 s1=1;
LNSound 0:a7ec991a632c 129 s2=1;
LNSound 0:a7ec991a632c 130 s3=1;
LNSound 0:a7ec991a632c 131 s4=1;
LNSound 0:a7ec991a632c 132 s5=1;
LNSound 0:a7ec991a632c 133
LNSound 0:a7ec991a632c 134 }
LNSound 0:a7ec991a632c 135
LNSound 0:a7ec991a632c 136 void punt(int pos, int kleur)
LNSound 0:a7ec991a632c 137 {
LNSound 0:a7ec991a632c 138
LNSound 0:a7ec991a632c 139 s5=0;
LNSound 0:a7ec991a632c 140 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 141 send_position(4+pos);
LNSound 0:a7ec991a632c 142
LNSound 0:a7ec991a632c 143 s5=1;
LNSound 0:a7ec991a632c 144
LNSound 0:a7ec991a632c 145 }
LNSound 0:a7ec991a632c 146
LNSound 0:a7ec991a632c 147 void Z(int pos, int kleur)
LNSound 0:a7ec991a632c 148 {
LNSound 0:a7ec991a632c 149
LNSound 0:a7ec991a632c 150 s1=0;
LNSound 0:a7ec991a632c 151 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 152 send_position(2+pos);
LNSound 0:a7ec991a632c 153 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 154 send_position(3+pos);
LNSound 0:a7ec991a632c 155 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 156 send_position(4+pos);
LNSound 0:a7ec991a632c 157 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 158 send_position(5+pos);
LNSound 0:a7ec991a632c 159 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 160 send_position(6+pos);
LNSound 0:a7ec991a632c 161 s1=1;
LNSound 0:a7ec991a632c 162 s2=0;
LNSound 0:a7ec991a632c 163 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 164 send_position(5+pos);
LNSound 0:a7ec991a632c 165
LNSound 0:a7ec991a632c 166 s2=1;
LNSound 0:a7ec991a632c 167 s3=0;
LNSound 0:a7ec991a632c 168 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 169 send_position(4+pos);
LNSound 0:a7ec991a632c 170
LNSound 0:a7ec991a632c 171 s3=1;
LNSound 0:a7ec991a632c 172 s4=0;
LNSound 0:a7ec991a632c 173
LNSound 0:a7ec991a632c 174 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 175 send_position(3+pos);
LNSound 0:a7ec991a632c 176 s4=1;
LNSound 0:a7ec991a632c 177 s5=0;
LNSound 0:a7ec991a632c 178 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 179 send_position(2+pos);
LNSound 0:a7ec991a632c 180 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 181 send_position(3+pos);
LNSound 0:a7ec991a632c 182 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 183 send_position(4+pos);
LNSound 0:a7ec991a632c 184 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 185 send_position(5+pos);
LNSound 0:a7ec991a632c 186 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 187 send_position(6+pos);
LNSound 0:a7ec991a632c 188 s5=1;
LNSound 0:a7ec991a632c 189
LNSound 0:a7ec991a632c 190 /// ***** Eind Z ***/
LNSound 0:a7ec991a632c 191
LNSound 0:a7ec991a632c 192
LNSound 0:a7ec991a632c 193
LNSound 0:a7ec991a632c 194 }
LNSound 0:a7ec991a632c 195
LNSound 0:a7ec991a632c 196 void Y(int pos, int kleur)
LNSound 0:a7ec991a632c 197 {
LNSound 0:a7ec991a632c 198
LNSound 0:a7ec991a632c 199 s1=0;
LNSound 0:a7ec991a632c 200 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 201 send_position(2+pos);
LNSound 0:a7ec991a632c 202 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 203 send_position(6+pos);
LNSound 0:a7ec991a632c 204
LNSound 0:a7ec991a632c 205 s1=1;
LNSound 0:a7ec991a632c 206 s2=0;
LNSound 0:a7ec991a632c 207 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 208 send_position(3+pos);
LNSound 0:a7ec991a632c 209 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 210 send_position(5+pos);
LNSound 0:a7ec991a632c 211 s2=1;
LNSound 0:a7ec991a632c 212 s3=0;
LNSound 0:a7ec991a632c 213 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 214 send_position(4+pos);
LNSound 0:a7ec991a632c 215
LNSound 0:a7ec991a632c 216 s3=1;
LNSound 0:a7ec991a632c 217 s4=0;
LNSound 0:a7ec991a632c 218 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 219 send_position(4+pos);
LNSound 0:a7ec991a632c 220
LNSound 0:a7ec991a632c 221 s4=1;
LNSound 0:a7ec991a632c 222 s5=0;
LNSound 0:a7ec991a632c 223 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 224 send_position(4+pos);
LNSound 0:a7ec991a632c 225
LNSound 0:a7ec991a632c 226
LNSound 0:a7ec991a632c 227
LNSound 0:a7ec991a632c 228 s5=1;
LNSound 0:a7ec991a632c 229
LNSound 0:a7ec991a632c 230 ///*** Eind Y **** ///
LNSound 0:a7ec991a632c 231
LNSound 0:a7ec991a632c 232
LNSound 0:a7ec991a632c 233 }
LNSound 0:a7ec991a632c 234
LNSound 0:a7ec991a632c 235 void X(int pos, int kleur)
LNSound 0:a7ec991a632c 236 {
LNSound 0:a7ec991a632c 237
LNSound 0:a7ec991a632c 238 s1=0;
LNSound 0:a7ec991a632c 239 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 240 send_position(2+pos);
LNSound 0:a7ec991a632c 241 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 242 send_position(6+pos);
LNSound 0:a7ec991a632c 243
LNSound 0:a7ec991a632c 244 s1=1;
LNSound 0:a7ec991a632c 245 s2=0;
LNSound 0:a7ec991a632c 246 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 247 send_position(3+pos);
LNSound 0:a7ec991a632c 248 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 249 send_position(5+pos);
LNSound 0:a7ec991a632c 250 s2=1;
LNSound 0:a7ec991a632c 251 s3=0;
LNSound 0:a7ec991a632c 252 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 253 send_position(4+pos);
LNSound 0:a7ec991a632c 254
LNSound 0:a7ec991a632c 255 s3=1;
LNSound 0:a7ec991a632c 256 s4=0;
LNSound 0:a7ec991a632c 257 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 258 send_position(3+pos);
LNSound 0:a7ec991a632c 259 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 260 send_position(5+pos);
LNSound 0:a7ec991a632c 261 s4=1;
LNSound 0:a7ec991a632c 262 s5=0;
LNSound 0:a7ec991a632c 263 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 264 send_position(2+pos);
LNSound 0:a7ec991a632c 265 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 266 send_position(6+pos);
LNSound 0:a7ec991a632c 267
LNSound 0:a7ec991a632c 268
LNSound 0:a7ec991a632c 269 s5=1;
LNSound 0:a7ec991a632c 270
LNSound 0:a7ec991a632c 271 ///*** Eind X **** ///
LNSound 0:a7ec991a632c 272
LNSound 0:a7ec991a632c 273
LNSound 0:a7ec991a632c 274 }
LNSound 0:a7ec991a632c 275
LNSound 0:a7ec991a632c 276 void W(int pos, int kleur)
LNSound 0:a7ec991a632c 277 {
LNSound 0:a7ec991a632c 278
LNSound 0:a7ec991a632c 279 s1=0;
LNSound 0:a7ec991a632c 280 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 281 send_position(2+pos);
LNSound 0:a7ec991a632c 282 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 283 send_position(6+pos);
LNSound 0:a7ec991a632c 284 s1=1;
LNSound 0:a7ec991a632c 285 s2=0;
LNSound 0:a7ec991a632c 286 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 287 send_position(2+pos);
LNSound 0:a7ec991a632c 288 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 289 send_position(6+pos);
LNSound 0:a7ec991a632c 290 s2=1;
LNSound 0:a7ec991a632c 291 s3=0;
LNSound 0:a7ec991a632c 292 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 293 send_position(2+pos);
LNSound 0:a7ec991a632c 294
LNSound 0:a7ec991a632c 295 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 296 send_position(6+pos);
LNSound 0:a7ec991a632c 297
LNSound 0:a7ec991a632c 298 s3=1;
LNSound 0:a7ec991a632c 299 s4=0;
LNSound 0:a7ec991a632c 300 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 301 send_position(2+pos);
LNSound 0:a7ec991a632c 302 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 303 send_position(4+pos);
LNSound 0:a7ec991a632c 304 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 305 send_position(6+pos);
LNSound 0:a7ec991a632c 306
LNSound 0:a7ec991a632c 307 s4=1;
LNSound 0:a7ec991a632c 308 s5=0;
LNSound 0:a7ec991a632c 309 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 310 send_position(3+pos);
LNSound 0:a7ec991a632c 311 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 312 send_position(5+pos);
LNSound 0:a7ec991a632c 313 s5=1;
LNSound 0:a7ec991a632c 314
LNSound 0:a7ec991a632c 315 /// ***** Eind W ***/
LNSound 0:a7ec991a632c 316
LNSound 0:a7ec991a632c 317
LNSound 0:a7ec991a632c 318 }
LNSound 0:a7ec991a632c 319
LNSound 0:a7ec991a632c 320 void V(int pos, int kleur)
LNSound 0:a7ec991a632c 321 {
LNSound 0:a7ec991a632c 322
LNSound 0:a7ec991a632c 323 s1=0;
LNSound 0:a7ec991a632c 324 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 325 send_position(2+pos);
LNSound 0:a7ec991a632c 326 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 327 send_position(6+pos);
LNSound 0:a7ec991a632c 328 s1=1;
LNSound 0:a7ec991a632c 329 s2=0;
LNSound 0:a7ec991a632c 330 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 331 send_position(2+pos);
LNSound 0:a7ec991a632c 332 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 333 send_position(6+pos);
LNSound 0:a7ec991a632c 334 s2=1;
LNSound 0:a7ec991a632c 335 s3=0;
LNSound 0:a7ec991a632c 336 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 337 send_position(2+pos);
LNSound 0:a7ec991a632c 338 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 339 send_position(6+pos);
LNSound 0:a7ec991a632c 340 s3=1;
LNSound 0:a7ec991a632c 341 s4=0;
LNSound 0:a7ec991a632c 342 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 343 send_position(3+pos);
LNSound 0:a7ec991a632c 344 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 345 send_position(5+pos);
LNSound 0:a7ec991a632c 346 s4=1;
LNSound 0:a7ec991a632c 347 s5=0;
LNSound 0:a7ec991a632c 348
LNSound 0:a7ec991a632c 349 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 350 send_position(4+pos);
LNSound 0:a7ec991a632c 351 s5=1;
LNSound 0:a7ec991a632c 352
LNSound 0:a7ec991a632c 353 /// ***** Eind V ***/
LNSound 0:a7ec991a632c 354
LNSound 0:a7ec991a632c 355
LNSound 0:a7ec991a632c 356 }
LNSound 0:a7ec991a632c 357 void U(int pos, int kleur)
LNSound 0:a7ec991a632c 358 {
LNSound 0:a7ec991a632c 359
LNSound 0:a7ec991a632c 360 s1=0;
LNSound 0:a7ec991a632c 361 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 362 send_position(2+pos);
LNSound 0:a7ec991a632c 363 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 364 send_position(5+pos);
LNSound 0:a7ec991a632c 365 s1=1;
LNSound 0:a7ec991a632c 366 s2=0;
LNSound 0:a7ec991a632c 367 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 368 send_position(2+pos);
LNSound 0:a7ec991a632c 369 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 370 send_position(5+pos);
LNSound 0:a7ec991a632c 371 s2=1;
LNSound 0:a7ec991a632c 372 s3=0;
LNSound 0:a7ec991a632c 373 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 374 send_position(2+pos);
LNSound 0:a7ec991a632c 375 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 376 send_position(5+pos);
LNSound 0:a7ec991a632c 377 s3=1;
LNSound 0:a7ec991a632c 378 s4=0;
LNSound 0:a7ec991a632c 379 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 380 send_position(2+pos);
LNSound 0:a7ec991a632c 381 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 382 send_position(5+pos);
LNSound 0:a7ec991a632c 383 s4=1;
LNSound 0:a7ec991a632c 384 s5=0;
LNSound 0:a7ec991a632c 385 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 386 send_position(3+pos);
LNSound 0:a7ec991a632c 387 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 388 send_position(4+pos);
LNSound 0:a7ec991a632c 389 s5=1;
LNSound 0:a7ec991a632c 390
LNSound 0:a7ec991a632c 391 /// ***** Eind U ***/
LNSound 0:a7ec991a632c 392
LNSound 0:a7ec991a632c 393 }
LNSound 0:a7ec991a632c 394
LNSound 0:a7ec991a632c 395 void T(int pos, int kleur)
LNSound 0:a7ec991a632c 396 {
LNSound 0:a7ec991a632c 397 s1=0;
LNSound 0:a7ec991a632c 398 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 399 send_position(2+pos);
LNSound 0:a7ec991a632c 400 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 401 send_position(3+pos);
LNSound 0:a7ec991a632c 402 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 403 send_position(4+pos);
LNSound 0:a7ec991a632c 404
LNSound 0:a7ec991a632c 405 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 406 send_position(5+pos);;
LNSound 0:a7ec991a632c 407 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 408 send_position(6+pos);
LNSound 0:a7ec991a632c 409 s1=1;
LNSound 0:a7ec991a632c 410 s2=0;
LNSound 0:a7ec991a632c 411 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 412 send_position(4+pos);
LNSound 0:a7ec991a632c 413
LNSound 0:a7ec991a632c 414 s2=1;
LNSound 0:a7ec991a632c 415 s3=0;
LNSound 0:a7ec991a632c 416
LNSound 0:a7ec991a632c 417 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 418 send_position(4+pos);
LNSound 0:a7ec991a632c 419
LNSound 0:a7ec991a632c 420 s3=1;
LNSound 0:a7ec991a632c 421 s4=0;
LNSound 0:a7ec991a632c 422 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 423 send_position(4+pos);
LNSound 0:a7ec991a632c 424
LNSound 0:a7ec991a632c 425 s4=1;
LNSound 0:a7ec991a632c 426 s5=0;
LNSound 0:a7ec991a632c 427 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 428 send_position(4+pos);
LNSound 0:a7ec991a632c 429 s5=1;
LNSound 0:a7ec991a632c 430
LNSound 0:a7ec991a632c 431
LNSound 0:a7ec991a632c 432 ///** Einde T ***/
LNSound 0:a7ec991a632c 433
LNSound 0:a7ec991a632c 434 }
LNSound 0:a7ec991a632c 435
LNSound 0:a7ec991a632c 436
LNSound 0:a7ec991a632c 437 void S(int pos, int kleur)
LNSound 0:a7ec991a632c 438 {
LNSound 0:a7ec991a632c 439
LNSound 0:a7ec991a632c 440 s1=0;
LNSound 0:a7ec991a632c 441
LNSound 0:a7ec991a632c 442 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 443 send_position(3+pos);
LNSound 0:a7ec991a632c 444 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 445 send_position(4+pos);
LNSound 0:a7ec991a632c 446 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 447 send_position(5+pos);
LNSound 0:a7ec991a632c 448 s1=1;
LNSound 0:a7ec991a632c 449 s2=0;
LNSound 0:a7ec991a632c 450 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 451 send_position(2+pos);
LNSound 0:a7ec991a632c 452
LNSound 0:a7ec991a632c 453 s2=1;
LNSound 0:a7ec991a632c 454 s3=0;
LNSound 0:a7ec991a632c 455 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 456 send_position(3+pos);
LNSound 0:a7ec991a632c 457 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 458 send_position(4+pos);
LNSound 0:a7ec991a632c 459 s3=1;
LNSound 0:a7ec991a632c 460 s4=0;
LNSound 0:a7ec991a632c 461
LNSound 0:a7ec991a632c 462 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 463 send_position(5+pos);
LNSound 0:a7ec991a632c 464 s4=1;
LNSound 0:a7ec991a632c 465 s5=0;
LNSound 0:a7ec991a632c 466 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 467 send_position(2+pos);
LNSound 0:a7ec991a632c 468 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 469 send_position(3+pos);
LNSound 0:a7ec991a632c 470 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 471 send_position(4+pos);
LNSound 0:a7ec991a632c 472 s5=1;
LNSound 0:a7ec991a632c 473
LNSound 0:a7ec991a632c 474 /// ***** Eind S ***/
LNSound 0:a7ec991a632c 475
LNSound 0:a7ec991a632c 476
LNSound 0:a7ec991a632c 477
LNSound 0:a7ec991a632c 478 }
LNSound 0:a7ec991a632c 479 void R(int pos, int kleur)
LNSound 0:a7ec991a632c 480 {
LNSound 0:a7ec991a632c 481
LNSound 0:a7ec991a632c 482 s1=0;
LNSound 0:a7ec991a632c 483 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 484 send_position(2+pos);
LNSound 0:a7ec991a632c 485 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 486 send_position(3+pos);
LNSound 0:a7ec991a632c 487 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 488 send_position(4+pos);
LNSound 0:a7ec991a632c 489
LNSound 0:a7ec991a632c 490 s1=1;
LNSound 0:a7ec991a632c 491 s2=0;
LNSound 0:a7ec991a632c 492 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 493 send_position(2+pos);
LNSound 0:a7ec991a632c 494 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 495 send_position(4+pos);
LNSound 0:a7ec991a632c 496
LNSound 0:a7ec991a632c 497
LNSound 0:a7ec991a632c 498 s2=1;
LNSound 0:a7ec991a632c 499 s3=0;
LNSound 0:a7ec991a632c 500 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 501 send_position(2+pos);
LNSound 0:a7ec991a632c 502 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 503 send_position(3+pos);
LNSound 0:a7ec991a632c 504
LNSound 0:a7ec991a632c 505
LNSound 0:a7ec991a632c 506
LNSound 0:a7ec991a632c 507 s3=1;
LNSound 0:a7ec991a632c 508 s4=0;
LNSound 0:a7ec991a632c 509 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 510 send_position(2+pos);
LNSound 0:a7ec991a632c 511 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 512 send_position(4+pos);
LNSound 0:a7ec991a632c 513 s4=1;
LNSound 0:a7ec991a632c 514 s5=0;
LNSound 0:a7ec991a632c 515 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 516 send_position(2+pos);
LNSound 0:a7ec991a632c 517 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 518 send_position(5+pos);
LNSound 0:a7ec991a632c 519
LNSound 0:a7ec991a632c 520
LNSound 0:a7ec991a632c 521 s5=1;
LNSound 0:a7ec991a632c 522
LNSound 0:a7ec991a632c 523 ///*** Eind R **** ///
LNSound 0:a7ec991a632c 524
LNSound 0:a7ec991a632c 525 }
LNSound 0:a7ec991a632c 526
LNSound 0:a7ec991a632c 527 void Q(int pos, int kleur)
LNSound 0:a7ec991a632c 528 {
LNSound 0:a7ec991a632c 529
LNSound 0:a7ec991a632c 530 s1=0;
LNSound 0:a7ec991a632c 531 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 532 send_position(3+pos);
LNSound 0:a7ec991a632c 533 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 534 send_position(4+pos);
LNSound 0:a7ec991a632c 535 s1=1;
LNSound 0:a7ec991a632c 536 s2=0;
LNSound 0:a7ec991a632c 537 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 538 send_position(2+pos);
LNSound 0:a7ec991a632c 539 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 540 send_position(5+pos);
LNSound 0:a7ec991a632c 541 s2=1;
LNSound 0:a7ec991a632c 542 s3=0;
LNSound 0:a7ec991a632c 543 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 544 send_position(2+pos);
LNSound 0:a7ec991a632c 545 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 546 send_position(4+pos);
LNSound 0:a7ec991a632c 547 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 548 send_position(5+pos);
LNSound 0:a7ec991a632c 549 s3=1;
LNSound 0:a7ec991a632c 550 s4=0;
LNSound 0:a7ec991a632c 551 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 552 send_position(3+pos);
LNSound 0:a7ec991a632c 553 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 554 send_position(4+pos);
LNSound 0:a7ec991a632c 555 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 556 send_position(5+pos);
LNSound 0:a7ec991a632c 557 s4=1;
LNSound 0:a7ec991a632c 558 s5=0;
LNSound 0:a7ec991a632c 559 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 560 send_position(6+pos);
LNSound 0:a7ec991a632c 561
LNSound 0:a7ec991a632c 562 s5=1;
LNSound 0:a7ec991a632c 563
LNSound 0:a7ec991a632c 564
LNSound 0:a7ec991a632c 565
LNSound 0:a7ec991a632c 566 ///*** Eind Q **** ///
LNSound 0:a7ec991a632c 567
LNSound 0:a7ec991a632c 568
LNSound 0:a7ec991a632c 569
LNSound 0:a7ec991a632c 570 }
LNSound 0:a7ec991a632c 571
LNSound 0:a7ec991a632c 572 void P(int pos, int kleur)
LNSound 0:a7ec991a632c 573 {
LNSound 0:a7ec991a632c 574
LNSound 0:a7ec991a632c 575 s1=0;
LNSound 0:a7ec991a632c 576 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 577 send_position(2+pos);
LNSound 0:a7ec991a632c 578 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 579 send_position(3+pos);
LNSound 0:a7ec991a632c 580 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 581 send_position(4+pos);
LNSound 0:a7ec991a632c 582
LNSound 0:a7ec991a632c 583 s1=1;
LNSound 0:a7ec991a632c 584 s2=0;
LNSound 0:a7ec991a632c 585 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 586 send_position(2+pos);
LNSound 0:a7ec991a632c 587 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 588 send_position(4+pos);
LNSound 0:a7ec991a632c 589
LNSound 0:a7ec991a632c 590
LNSound 0:a7ec991a632c 591 s2=1;
LNSound 0:a7ec991a632c 592 s3=0;
LNSound 0:a7ec991a632c 593 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 594 send_position(2+pos);
LNSound 0:a7ec991a632c 595 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 596 send_position(3+pos);
LNSound 0:a7ec991a632c 597 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 598 send_position(4+pos);
LNSound 0:a7ec991a632c 599
LNSound 0:a7ec991a632c 600
LNSound 0:a7ec991a632c 601 s3=1;
LNSound 0:a7ec991a632c 602 s4=0;
LNSound 0:a7ec991a632c 603 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 604 send_position(2+pos);
LNSound 0:a7ec991a632c 605 s4=1;
LNSound 0:a7ec991a632c 606 s5=0;
LNSound 0:a7ec991a632c 607 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 608 send_position(2+pos);
LNSound 0:a7ec991a632c 609
LNSound 0:a7ec991a632c 610
LNSound 0:a7ec991a632c 611 s5=1;
LNSound 0:a7ec991a632c 612
LNSound 0:a7ec991a632c 613 ///*** Eind P **** ///
LNSound 0:a7ec991a632c 614
LNSound 0:a7ec991a632c 615
LNSound 0:a7ec991a632c 616 }
LNSound 0:a7ec991a632c 617
LNSound 0:a7ec991a632c 618 void O(int pos, int kleur)
LNSound 0:a7ec991a632c 619 {
LNSound 0:a7ec991a632c 620 s1=0;
LNSound 0:a7ec991a632c 621 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 622 send_position(3+pos);
LNSound 0:a7ec991a632c 623 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 624 send_position(4+pos);
LNSound 0:a7ec991a632c 625 s1=1;
LNSound 0:a7ec991a632c 626 s2=0;
LNSound 0:a7ec991a632c 627 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 628 send_position(2+pos);
LNSound 0:a7ec991a632c 629 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 630 send_position(5+pos);
LNSound 0:a7ec991a632c 631 s2=1;
LNSound 0:a7ec991a632c 632 s3=0;
LNSound 0:a7ec991a632c 633 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 634 send_position(2+pos);
LNSound 0:a7ec991a632c 635 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 636 send_position(5+pos);
LNSound 0:a7ec991a632c 637 s3=1;
LNSound 0:a7ec991a632c 638 s4=0;
LNSound 0:a7ec991a632c 639 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 640 send_position(2+pos);
LNSound 0:a7ec991a632c 641 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 642 send_position(5+pos);
LNSound 0:a7ec991a632c 643 s4=1;
LNSound 0:a7ec991a632c 644 s5=0;
LNSound 0:a7ec991a632c 645 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 646 send_position(3+pos);
LNSound 0:a7ec991a632c 647 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 648 send_position(4+pos);
LNSound 0:a7ec991a632c 649 s5=1;
LNSound 0:a7ec991a632c 650
LNSound 0:a7ec991a632c 651 /// ***** Eind O ***/
LNSound 0:a7ec991a632c 652
LNSound 0:a7ec991a632c 653
LNSound 0:a7ec991a632c 654 }
LNSound 0:a7ec991a632c 655
LNSound 0:a7ec991a632c 656 void N(int pos, int kleur)
LNSound 0:a7ec991a632c 657 {
LNSound 0:a7ec991a632c 658 s1=0;
LNSound 0:a7ec991a632c 659 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 660 send_position(2+pos);
LNSound 0:a7ec991a632c 661 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 662 send_position(6+pos);
LNSound 0:a7ec991a632c 663
LNSound 0:a7ec991a632c 664 s1=1;
LNSound 0:a7ec991a632c 665 s2=0;
LNSound 0:a7ec991a632c 666
LNSound 0:a7ec991a632c 667 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 668 send_position(2+pos);
LNSound 0:a7ec991a632c 669 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 670 send_position(3+pos);
LNSound 0:a7ec991a632c 671
LNSound 0:a7ec991a632c 672 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 673 send_position(6+pos);
LNSound 0:a7ec991a632c 674
LNSound 0:a7ec991a632c 675 s2=1;
LNSound 0:a7ec991a632c 676 s3=0;
LNSound 0:a7ec991a632c 677
LNSound 0:a7ec991a632c 678 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 679 send_position(2+pos);
LNSound 0:a7ec991a632c 680 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 681 send_position(4+pos);
LNSound 0:a7ec991a632c 682 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 683 send_position(6+pos);
LNSound 0:a7ec991a632c 684 s3=1;
LNSound 0:a7ec991a632c 685
LNSound 0:a7ec991a632c 686 s4=0;
LNSound 0:a7ec991a632c 687 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 688 send_position(2+pos);
LNSound 0:a7ec991a632c 689 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 690 send_position(6+pos);
LNSound 0:a7ec991a632c 691 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 692 send_position(5+pos);
LNSound 0:a7ec991a632c 693 s4=1;
LNSound 0:a7ec991a632c 694 s5=0;
LNSound 0:a7ec991a632c 695 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 696 send_position(2+pos);
LNSound 0:a7ec991a632c 697 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 698 send_position(6+pos);
LNSound 0:a7ec991a632c 699
LNSound 0:a7ec991a632c 700 s5=1;
LNSound 0:a7ec991a632c 701
LNSound 0:a7ec991a632c 702 ///*** Eind N**** ///
LNSound 0:a7ec991a632c 703
LNSound 0:a7ec991a632c 704
LNSound 0:a7ec991a632c 705
LNSound 0:a7ec991a632c 706 }
LNSound 0:a7ec991a632c 707 void M(int pos, int kleur)
LNSound 0:a7ec991a632c 708 {
LNSound 0:a7ec991a632c 709
LNSound 0:a7ec991a632c 710 s1=0;
LNSound 0:a7ec991a632c 711 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 712 send_position(2+pos);
LNSound 0:a7ec991a632c 713 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 714 send_position(6+pos);
LNSound 0:a7ec991a632c 715
LNSound 0:a7ec991a632c 716 s1=1;
LNSound 0:a7ec991a632c 717 s2=0;
LNSound 0:a7ec991a632c 718
LNSound 0:a7ec991a632c 719 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 720 send_position(2+pos);
LNSound 0:a7ec991a632c 721 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 722 send_position(3+pos);
LNSound 0:a7ec991a632c 723 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 724 send_position(5+pos);
LNSound 0:a7ec991a632c 725 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 726 send_position(6+pos);
LNSound 0:a7ec991a632c 727
LNSound 0:a7ec991a632c 728 s2=1;
LNSound 0:a7ec991a632c 729 s3=0;
LNSound 0:a7ec991a632c 730
LNSound 0:a7ec991a632c 731 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 732 send_position(2+pos);
LNSound 0:a7ec991a632c 733 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 734 send_position(4+pos);
LNSound 0:a7ec991a632c 735 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 736 send_position(6+pos);
LNSound 0:a7ec991a632c 737 s3=1;
LNSound 0:a7ec991a632c 738
LNSound 0:a7ec991a632c 739 s4=0;
LNSound 0:a7ec991a632c 740
LNSound 0:a7ec991a632c 741 s5=0;
LNSound 0:a7ec991a632c 742 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 743 send_position(2+pos);
LNSound 0:a7ec991a632c 744 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 745 send_position(6+pos);
LNSound 0:a7ec991a632c 746 s4=1;
LNSound 0:a7ec991a632c 747 s5=1;
LNSound 0:a7ec991a632c 748
LNSound 0:a7ec991a632c 749 ///*** Eind M**** ///
LNSound 0:a7ec991a632c 750
LNSound 0:a7ec991a632c 751
LNSound 0:a7ec991a632c 752
LNSound 0:a7ec991a632c 753 }
LNSound 0:a7ec991a632c 754
LNSound 0:a7ec991a632c 755
LNSound 0:a7ec991a632c 756 void L(int pos, int kleur)
LNSound 0:a7ec991a632c 757 {
LNSound 0:a7ec991a632c 758 s1=0;
LNSound 0:a7ec991a632c 759 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 760 send_position(2+pos);
LNSound 0:a7ec991a632c 761 s1=1;
LNSound 0:a7ec991a632c 762 s2=0;
LNSound 0:a7ec991a632c 763 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 764 send_position(2+pos);
LNSound 0:a7ec991a632c 765
LNSound 0:a7ec991a632c 766 s2=1;
LNSound 0:a7ec991a632c 767 s3=0;
LNSound 0:a7ec991a632c 768 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 769 send_position(2+pos);
LNSound 0:a7ec991a632c 770
LNSound 0:a7ec991a632c 771 s3=1;
LNSound 0:a7ec991a632c 772 s4=0;
LNSound 0:a7ec991a632c 773 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 774 send_position(2+pos);
LNSound 0:a7ec991a632c 775 s4=1;
LNSound 0:a7ec991a632c 776 s5=0;
LNSound 0:a7ec991a632c 777 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 778 send_position(2+pos);
LNSound 0:a7ec991a632c 779 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 780
LNSound 0:a7ec991a632c 781 send_position(3+pos);
LNSound 0:a7ec991a632c 782 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 783 send_position(4+pos);
LNSound 0:a7ec991a632c 784 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 785 send_position(5+pos);
LNSound 0:a7ec991a632c 786 s5=1;
LNSound 0:a7ec991a632c 787
LNSound 0:a7ec991a632c 788 ///*** Eind L **** ///
LNSound 0:a7ec991a632c 789
LNSound 0:a7ec991a632c 790 }
LNSound 0:a7ec991a632c 791
LNSound 0:a7ec991a632c 792 void K(int pos, int kleur)
LNSound 0:a7ec991a632c 793 {
LNSound 0:a7ec991a632c 794
LNSound 0:a7ec991a632c 795 s1=0;
LNSound 0:a7ec991a632c 796 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 797 send_position(2+pos);
LNSound 0:a7ec991a632c 798
LNSound 0:a7ec991a632c 799 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 800 send_position(5+pos);
LNSound 0:a7ec991a632c 801 s1=1;
LNSound 0:a7ec991a632c 802 s2=0;
LNSound 0:a7ec991a632c 803 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 804 send_position(2+pos);
LNSound 0:a7ec991a632c 805 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 806 send_position(4+pos);
LNSound 0:a7ec991a632c 807 s2=1;
LNSound 0:a7ec991a632c 808 s3=0;
LNSound 0:a7ec991a632c 809 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 810 send_position(2+pos);
LNSound 0:a7ec991a632c 811 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 812 send_position(3+pos);
LNSound 0:a7ec991a632c 813
LNSound 0:a7ec991a632c 814
LNSound 0:a7ec991a632c 815 s3=1;
LNSound 0:a7ec991a632c 816 s4=0;
LNSound 0:a7ec991a632c 817 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 818 send_position(2+pos);
LNSound 0:a7ec991a632c 819 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 820 send_position(4+pos);
LNSound 0:a7ec991a632c 821 s4=1;
LNSound 0:a7ec991a632c 822 s5=0;
LNSound 0:a7ec991a632c 823 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 824 send_position(2+pos);
LNSound 0:a7ec991a632c 825 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 826 send_position(5+pos);
LNSound 0:a7ec991a632c 827 s5=1;
LNSound 0:a7ec991a632c 828
LNSound 0:a7ec991a632c 829 ///*** Eind K **** ///
LNSound 0:a7ec991a632c 830 }
LNSound 0:a7ec991a632c 831
LNSound 0:a7ec991a632c 832 void J(int pos, int kleur)
LNSound 0:a7ec991a632c 833 {
LNSound 0:a7ec991a632c 834
LNSound 0:a7ec991a632c 835 s1=0;
LNSound 0:a7ec991a632c 836
LNSound 0:a7ec991a632c 837 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 838 send_position(3+pos);
LNSound 0:a7ec991a632c 839 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 840 send_position(4+pos);
LNSound 0:a7ec991a632c 841
LNSound 0:a7ec991a632c 842
LNSound 0:a7ec991a632c 843 s1=1;
LNSound 0:a7ec991a632c 844 s2=0;
LNSound 0:a7ec991a632c 845 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 846 send_position(4+pos);
LNSound 0:a7ec991a632c 847
LNSound 0:a7ec991a632c 848 s2=1;
LNSound 0:a7ec991a632c 849 s3=0;
LNSound 0:a7ec991a632c 850
LNSound 0:a7ec991a632c 851 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 852 send_position(4+pos);
LNSound 0:a7ec991a632c 853
LNSound 0:a7ec991a632c 854 s3=1;
LNSound 0:a7ec991a632c 855 s4=0;
LNSound 0:a7ec991a632c 856 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 857 send_position(4+pos);
LNSound 0:a7ec991a632c 858
LNSound 0:a7ec991a632c 859 s4=1;
LNSound 0:a7ec991a632c 860 s5=0;
LNSound 0:a7ec991a632c 861 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 862 send_position(2+pos);
LNSound 0:a7ec991a632c 863 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 864 send_position(3+pos);
LNSound 0:a7ec991a632c 865
LNSound 0:a7ec991a632c 866 s5=1;
LNSound 0:a7ec991a632c 867
LNSound 0:a7ec991a632c 868 ///** Einde J ***/
LNSound 0:a7ec991a632c 869 }
LNSound 0:a7ec991a632c 870 void I(int pos, int kleur)
LNSound 0:a7ec991a632c 871 {
LNSound 0:a7ec991a632c 872
LNSound 0:a7ec991a632c 873 s1=0;
LNSound 0:a7ec991a632c 874
LNSound 0:a7ec991a632c 875 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 876 send_position(3+pos);
LNSound 0:a7ec991a632c 877 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 878 send_position(4+pos);
LNSound 0:a7ec991a632c 879
LNSound 0:a7ec991a632c 880 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 881 send_position(5+pos);
LNSound 0:a7ec991a632c 882 s1=1;
LNSound 0:a7ec991a632c 883 s2=0;
LNSound 0:a7ec991a632c 884 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 885 send_position(4+pos);
LNSound 0:a7ec991a632c 886
LNSound 0:a7ec991a632c 887 s2=1;
LNSound 0:a7ec991a632c 888 s3=0;
LNSound 0:a7ec991a632c 889 ;
LNSound 0:a7ec991a632c 890 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 891 send_position(4+pos);
LNSound 0:a7ec991a632c 892
LNSound 0:a7ec991a632c 893 s3=1;
LNSound 0:a7ec991a632c 894 s4=0;
LNSound 0:a7ec991a632c 895 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 896 send_position(4+pos);
LNSound 0:a7ec991a632c 897
LNSound 0:a7ec991a632c 898 s4=1;
LNSound 0:a7ec991a632c 899 s5=0;
LNSound 0:a7ec991a632c 900 send_position(3+pos);
LNSound 0:a7ec991a632c 901 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 902 send_position(4+pos);
LNSound 0:a7ec991a632c 903
LNSound 0:a7ec991a632c 904 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 905 send_position(5+pos);
LNSound 0:a7ec991a632c 906
LNSound 0:a7ec991a632c 907 ///** Einde I ***/
LNSound 0:a7ec991a632c 908 }
LNSound 0:a7ec991a632c 909
LNSound 0:a7ec991a632c 910
LNSound 0:a7ec991a632c 911
LNSound 0:a7ec991a632c 912 void H(int pos, int kleur)
LNSound 0:a7ec991a632c 913 {
LNSound 0:a7ec991a632c 914 //// *** Begin H *** //
LNSound 0:a7ec991a632c 915 s1=0;
LNSound 0:a7ec991a632c 916 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 917 send_position(2+pos);
LNSound 0:a7ec991a632c 918
LNSound 0:a7ec991a632c 919 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 920 send_position(5+pos);
LNSound 0:a7ec991a632c 921 s1=1;
LNSound 0:a7ec991a632c 922 s2=0;
LNSound 0:a7ec991a632c 923 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 924 send_position(2+pos);
LNSound 0:a7ec991a632c 925 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 926 send_position(5+pos);
LNSound 0:a7ec991a632c 927 s2=1;
LNSound 0:a7ec991a632c 928 s3=0;
LNSound 0:a7ec991a632c 929 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 930 send_position(2+pos);
LNSound 0:a7ec991a632c 931 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 932 send_position(3+pos);
LNSound 0:a7ec991a632c 933 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 934 send_position(4+pos);
LNSound 0:a7ec991a632c 935 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 936 send_position(5+pos);
LNSound 0:a7ec991a632c 937 s3=1;
LNSound 0:a7ec991a632c 938 s4=0;
LNSound 0:a7ec991a632c 939 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 940 send_position(2+pos);
LNSound 0:a7ec991a632c 941 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 942 send_position(5+pos);
LNSound 0:a7ec991a632c 943 s4=1;
LNSound 0:a7ec991a632c 944 s5=0;
LNSound 0:a7ec991a632c 945 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 946 send_position(2+pos);
LNSound 0:a7ec991a632c 947 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 948 send_position(5+pos);
LNSound 0:a7ec991a632c 949 s5=1;
LNSound 0:a7ec991a632c 950 }
LNSound 0:a7ec991a632c 951 void G(int pos, int kleur)
LNSound 0:a7ec991a632c 952 {
LNSound 0:a7ec991a632c 953 myled=1;
LNSound 0:a7ec991a632c 954 s1=0;
LNSound 0:a7ec991a632c 955 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 956 send_position(2+pos);
LNSound 0:a7ec991a632c 957 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 958 send_position(3+pos);
LNSound 0:a7ec991a632c 959 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 960 send_position(4+pos);
LNSound 0:a7ec991a632c 961 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 962 send_position(5+pos);
LNSound 0:a7ec991a632c 963 s1=1;
LNSound 0:a7ec991a632c 964 s2=0;
LNSound 0:a7ec991a632c 965 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 966 send_position(2+pos);
LNSound 0:a7ec991a632c 967 s2=1;
LNSound 0:a7ec991a632c 968 s3=0;
LNSound 0:a7ec991a632c 969 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 970 send_position(2+pos);
LNSound 0:a7ec991a632c 971 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 972 send_position(4+pos);
LNSound 0:a7ec991a632c 973 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 974 send_position(5+pos);
LNSound 0:a7ec991a632c 975 s3=1;
LNSound 0:a7ec991a632c 976 s4=0;
LNSound 0:a7ec991a632c 977 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 978 send_position(2+pos);
LNSound 0:a7ec991a632c 979 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 980 send_position(5+pos);
LNSound 0:a7ec991a632c 981 s4=1;
LNSound 0:a7ec991a632c 982 s5=0;
LNSound 0:a7ec991a632c 983 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 984 send_position(2+pos);
LNSound 0:a7ec991a632c 985 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 986 send_position(3+pos);
LNSound 0:a7ec991a632c 987 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 988 send_position(4+pos);
LNSound 0:a7ec991a632c 989 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 990 send_position(5+pos);
LNSound 0:a7ec991a632c 991 s5=1;
LNSound 0:a7ec991a632c 992
LNSound 0:a7ec991a632c 993 }
LNSound 0:a7ec991a632c 994
LNSound 0:a7ec991a632c 995 void F(int pos, int kleur){
LNSound 0:a7ec991a632c 996
LNSound 0:a7ec991a632c 997 s1=0;
LNSound 0:a7ec991a632c 998 sendByte(0x84+kleur); //
LNSound 0:a7ec991a632c 999 send_position(2+pos);
LNSound 0:a7ec991a632c 1000 sendByte(0x84+kleur); //
LNSound 0:a7ec991a632c 1001 send_position(3+pos);
LNSound 0:a7ec991a632c 1002 sendByte(0x84+kleur); //
LNSound 0:a7ec991a632c 1003 send_position(4+pos);
LNSound 0:a7ec991a632c 1004 sendByte(0x84+kleur); //
LNSound 0:a7ec991a632c 1005 send_position(5+pos);
LNSound 0:a7ec991a632c 1006 s1=1;
LNSound 0:a7ec991a632c 1007 s2=0;
LNSound 0:a7ec991a632c 1008 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 1009 send_position(2+pos);
LNSound 0:a7ec991a632c 1010 s2=1;
LNSound 0:a7ec991a632c 1011 s3=0;
LNSound 0:a7ec991a632c 1012 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 1013 send_position(2+pos);
LNSound 0:a7ec991a632c 1014 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 1015 send_position(3+pos);
LNSound 0:a7ec991a632c 1016 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 1017 send_position(4+pos);
LNSound 0:a7ec991a632c 1018 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 1019 send_position(5+pos);
LNSound 0:a7ec991a632c 1020 s3=1;
LNSound 0:a7ec991a632c 1021 s4=0;
LNSound 0:a7ec991a632c 1022 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 1023 send_position(2+pos);
LNSound 0:a7ec991a632c 1024 s4=1;
LNSound 0:a7ec991a632c 1025 s5=0;
LNSound 0:a7ec991a632c 1026
LNSound 0:a7ec991a632c 1027 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 1028 send_position(2+pos);
LNSound 0:a7ec991a632c 1029 s5=1;
LNSound 0:a7ec991a632c 1030
LNSound 0:a7ec991a632c 1031 /// **** Eind F ****///
LNSound 0:a7ec991a632c 1032
LNSound 0:a7ec991a632c 1033 }
LNSound 0:a7ec991a632c 1034
LNSound 0:a7ec991a632c 1035 void E(int pos, int kleur)
LNSound 0:a7ec991a632c 1036 {
LNSound 0:a7ec991a632c 1037
LNSound 0:a7ec991a632c 1038 s1=0;
LNSound 0:a7ec991a632c 1039 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1040 send_position(2+pos);
LNSound 0:a7ec991a632c 1041 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1042 send_position(3+pos);
LNSound 0:a7ec991a632c 1043 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1044 send_position(4+pos);
LNSound 0:a7ec991a632c 1045 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1046 send_position(5+pos);
LNSound 0:a7ec991a632c 1047 s1=1;
LNSound 0:a7ec991a632c 1048 s2=0;
LNSound 0:a7ec991a632c 1049 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1050 send_position(2+pos);
LNSound 0:a7ec991a632c 1051 s2=1;
LNSound 0:a7ec991a632c 1052 s3=0;
LNSound 0:a7ec991a632c 1053 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1054 send_position(2+pos);
LNSound 0:a7ec991a632c 1055 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1056 send_position(3+pos);
LNSound 0:a7ec991a632c 1057 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1058 send_position(4+pos);
LNSound 0:a7ec991a632c 1059 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1060 send_position(5+pos);
LNSound 0:a7ec991a632c 1061 s3=1;
LNSound 0:a7ec991a632c 1062 s4=0;
LNSound 0:a7ec991a632c 1063 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1064 send_position(2+pos);
LNSound 0:a7ec991a632c 1065 s4=1;
LNSound 0:a7ec991a632c 1066 s5=0;
LNSound 0:a7ec991a632c 1067 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1068 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1069 send_position(2+pos);
LNSound 0:a7ec991a632c 1070 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1071 send_position(3+pos);
LNSound 0:a7ec991a632c 1072 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1073 send_position(4+pos);
LNSound 0:a7ec991a632c 1074 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1075 send_position(5+pos);
LNSound 0:a7ec991a632c 1076 s5=1;
LNSound 0:a7ec991a632c 1077
LNSound 0:a7ec991a632c 1078 ///*** Eind E ***///
LNSound 0:a7ec991a632c 1079 }
LNSound 0:a7ec991a632c 1080 void D(int pos, int kleur)
LNSound 0:a7ec991a632c 1081 {
LNSound 0:a7ec991a632c 1082 s1=0;
LNSound 0:a7ec991a632c 1083 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1084 send_position(2+pos);
LNSound 0:a7ec991a632c 1085 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1086 send_position(3+pos);
LNSound 0:a7ec991a632c 1087 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1088 send_position(4+pos);
LNSound 0:a7ec991a632c 1089 s1=1;
LNSound 0:a7ec991a632c 1090 s2=0;
LNSound 0:a7ec991a632c 1091 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 1092 send_position(2+pos);
LNSound 0:a7ec991a632c 1093 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 1094 send_position(5+pos);
LNSound 0:a7ec991a632c 1095 s2=1;
LNSound 0:a7ec991a632c 1096 s3=0;
LNSound 0:a7ec991a632c 1097 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 1098 send_position(2+pos);
LNSound 0:a7ec991a632c 1099 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 1100 send_position(5+pos);
LNSound 0:a7ec991a632c 1101 s3=1;
LNSound 0:a7ec991a632c 1102 s4=0;
LNSound 0:a7ec991a632c 1103 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 1104 send_position(2+pos);
LNSound 0:a7ec991a632c 1105 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 1106 send_position(5+pos);
LNSound 0:a7ec991a632c 1107 s4=1;
LNSound 0:a7ec991a632c 1108 s5=0;
LNSound 0:a7ec991a632c 1109 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 1110 send_position(2+pos);
LNSound 0:a7ec991a632c 1111 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 1112 send_position(3+pos);
LNSound 0:a7ec991a632c 1113 sendByte(0x84+kleur);
LNSound 0:a7ec991a632c 1114 send_position(4+pos);
LNSound 0:a7ec991a632c 1115 s5=1;
LNSound 0:a7ec991a632c 1116
LNSound 0:a7ec991a632c 1117 //**** Eind D **** ///
LNSound 0:a7ec991a632c 1118 }
LNSound 0:a7ec991a632c 1119
LNSound 0:a7ec991a632c 1120 void C(int pos, int kleur)
LNSound 0:a7ec991a632c 1121 {
LNSound 0:a7ec991a632c 1122 s1=0;
LNSound 0:a7ec991a632c 1123 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1124 send_position(3+pos);
LNSound 0:a7ec991a632c 1125 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1126 send_position(4+pos);
LNSound 0:a7ec991a632c 1127 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1128 send_position(5+pos);
LNSound 0:a7ec991a632c 1129 s1=1;
LNSound 0:a7ec991a632c 1130 s2=0;
LNSound 0:a7ec991a632c 1131 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1132 send_position(2+pos);
LNSound 0:a7ec991a632c 1133 s2=1;
LNSound 0:a7ec991a632c 1134 s3=0;
LNSound 0:a7ec991a632c 1135 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1136 send_position(2+pos);
LNSound 0:a7ec991a632c 1137 s3=1;
LNSound 0:a7ec991a632c 1138 s4=0;
LNSound 0:a7ec991a632c 1139 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1140 send_position(2+pos);
LNSound 0:a7ec991a632c 1141 s4=1;
LNSound 0:a7ec991a632c 1142 s5=0;
LNSound 0:a7ec991a632c 1143 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1144 send_position(3+pos);
LNSound 0:a7ec991a632c 1145 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1146 send_position(4+pos);
LNSound 0:a7ec991a632c 1147 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1148 send_position(5+pos);
LNSound 0:a7ec991a632c 1149 s5=1;
LNSound 0:a7ec991a632c 1150
LNSound 0:a7ec991a632c 1151 /// ***** Eind C ***/
LNSound 0:a7ec991a632c 1152 }
LNSound 0:a7ec991a632c 1153
LNSound 0:a7ec991a632c 1154 void B(int pos, int kleur)
LNSound 0:a7ec991a632c 1155 {
LNSound 0:a7ec991a632c 1156
LNSound 0:a7ec991a632c 1157
LNSound 0:a7ec991a632c 1158 s1=0;
LNSound 0:a7ec991a632c 1159 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1160 send_position(2+pos);
LNSound 0:a7ec991a632c 1161 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1162 send_position(3+pos);
LNSound 0:a7ec991a632c 1163 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1164 send_position(4+pos);
LNSound 0:a7ec991a632c 1165 s1=1;
LNSound 0:a7ec991a632c 1166 s2=0;
LNSound 0:a7ec991a632c 1167 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1168 send_position(2+pos);
LNSound 0:a7ec991a632c 1169 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1170 send_position(5+pos);
LNSound 0:a7ec991a632c 1171 s2=1;
LNSound 0:a7ec991a632c 1172 s3=0;
LNSound 0:a7ec991a632c 1173 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1174 send_position(2+pos);
LNSound 0:a7ec991a632c 1175 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1176 send_position(3+pos);
LNSound 0:a7ec991a632c 1177 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1178 send_position(4+pos);
LNSound 0:a7ec991a632c 1179 s3=1;
LNSound 0:a7ec991a632c 1180 s4=0;
LNSound 0:a7ec991a632c 1181 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1182 send_position(2+pos);
LNSound 0:a7ec991a632c 1183 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1184 send_position(5+pos);
LNSound 0:a7ec991a632c 1185 s4=1;
LNSound 0:a7ec991a632c 1186 s5=0;
LNSound 0:a7ec991a632c 1187 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1188 send_position(2+pos);
LNSound 0:a7ec991a632c 1189 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1190 send_position(3+pos);
LNSound 0:a7ec991a632c 1191 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1192 send_position(4+pos);
LNSound 0:a7ec991a632c 1193
LNSound 0:a7ec991a632c 1194 s5=1;
LNSound 0:a7ec991a632c 1195
LNSound 0:a7ec991a632c 1196 //***** Eind B *****/
LNSound 0:a7ec991a632c 1197 }
LNSound 0:a7ec991a632c 1198
LNSound 0:a7ec991a632c 1199 void A(int pos,int kleur)
LNSound 0:a7ec991a632c 1200 {
LNSound 0:a7ec991a632c 1201
LNSound 0:a7ec991a632c 1202
LNSound 0:a7ec991a632c 1203 s1=0;
LNSound 0:a7ec991a632c 1204 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1205 send_position(4+pos);
LNSound 0:a7ec991a632c 1206
LNSound 0:a7ec991a632c 1207 s1=1;
LNSound 0:a7ec991a632c 1208 s2=0;
LNSound 0:a7ec991a632c 1209
LNSound 0:a7ec991a632c 1210 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1211 send_position(3+pos);
LNSound 0:a7ec991a632c 1212 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1213 send_position(5+pos);
LNSound 0:a7ec991a632c 1214 s2=1;
LNSound 0:a7ec991a632c 1215 s3=0;
LNSound 0:a7ec991a632c 1216
LNSound 0:a7ec991a632c 1217 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1218 send_position(2+pos);
LNSound 0:a7ec991a632c 1219 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1220 send_position(3+pos);
LNSound 0:a7ec991a632c 1221 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1222 send_position(4+pos);
LNSound 0:a7ec991a632c 1223 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1224 send_position(5+pos);
LNSound 0:a7ec991a632c 1225 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1226 send_position(6+pos);
LNSound 0:a7ec991a632c 1227 s3=1;
LNSound 0:a7ec991a632c 1228
LNSound 0:a7ec991a632c 1229 s4=0;
LNSound 0:a7ec991a632c 1230 s5=0;
LNSound 0:a7ec991a632c 1231 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1232 send_position(2+pos);
LNSound 0:a7ec991a632c 1233 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1234 send_position(6+pos);
LNSound 0:a7ec991a632c 1235 s4=1;
LNSound 0:a7ec991a632c 1236 s5=1;
LNSound 0:a7ec991a632c 1237
LNSound 0:a7ec991a632c 1238 //*********** Einde Letter A ****////
LNSound 0:a7ec991a632c 1239 }
LNSound 0:a7ec991a632c 1240 int main() {
LNSound 0:a7ec991a632c 1241 int i,x;
LNSound 0:a7ec991a632c 1242 fade.period_us(1);
LNSound 0:a7ec991a632c 1243 fade=0.5;
LNSound 0:a7ec991a632c 1244 x=100; // aantal leds in de strip
LNSound 0:a7ec991a632c 1245 s1=0;
LNSound 0:a7ec991a632c 1246 s2=0;
LNSound 0:a7ec991a632c 1247 s3=0;
LNSound 0:a7ec991a632c 1248
LNSound 0:a7ec991a632c 1249 s4=0;
LNSound 0:a7ec991a632c 1250 s5=0;
LNSound 0:a7ec991a632c 1251
LNSound 0:a7ec991a632c 1252 for(i=0 ; i < x ; i++) // alle leds uitzetten om te kunnen beginnen.
LNSound 0:a7ec991a632c 1253 {
LNSound 0:a7ec991a632c 1254 sendByte(128);
LNSound 0:a7ec991a632c 1255 latchen();
LNSound 0:a7ec991a632c 1256 }
LNSound 0:a7ec991a632c 1257 // s1=0;
LNSound 0:a7ec991a632c 1258 s2=1;
LNSound 0:a7ec991a632c 1259 s3=1;
LNSound 0:a7ec991a632c 1260 s4=1;
LNSound 0:a7ec991a632c 1261 s5=1;
LNSound 0:a7ec991a632c 1262
LNSound 0:a7ec991a632c 1263 while(1)
LNSound 0:a7ec991a632c 1264 {
LNSound 0:a7ec991a632c 1265 int x;
LNSound 0:a7ec991a632c 1266 for(i=0;i<92;i++){
LNSound 0:a7ec991a632c 1267 erase();
LNSound 0:a7ec991a632c 1268
LNSound 0:a7ec991a632c 1269
LNSound 0:a7ec991a632c 1270
LNSound 0:a7ec991a632c 1271
LNSound 0:a7ec991a632c 1272 /* N(0+i,0);
LNSound 0:a7ec991a632c 1273 L(0+i,0);
LNSound 0:a7ec991a632c 1274 punt(0+i,0);
LNSound 0:a7ec991a632c 1275 D(0+i,0);
LNSound 0:a7ec991a632c 1276 N(0+i,0);
LNSound 0:a7ec991a632c 1277 U(0+i,0);
LNSound 0:a7ec991a632c 1278 O(0+i,0);
LNSound 0:a7ec991a632c 1279 S(0+i,0);
LNSound 0:a7ec991a632c 1280 N(0+i,0);
LNSound 0:a7ec991a632c 1281 L(0+i,0);*/
LNSound 0:a7ec991a632c 1282
LNSound 0:a7ec991a632c 1283
LNSound 0:a7ec991a632c 1284
LNSound 0:a7ec991a632c 1285 /* L(0+i-6,0);
LNSound 0:a7ec991a632c 1286 N(0+i-13,0);
LNSound 0:a7ec991a632c 1287 punt(0+i-17,9);
LNSound 0:a7ec991a632c 1288 D(0+i-20,0);
LNSound 0:a7ec991a632c 1289 N(0+i-26,14);
LNSound 0:a7ec991a632c 1290 U(0+i-32,-3);
LNSound 0:a7ec991a632c 1291 O(0+i-38,0x11);
LNSound 0:a7ec991a632c 1292 S(0+i-44,0);
LNSound 0:a7ec991a632c 1293 N(0+i-50,9);
LNSound 0:a7ec991a632c 1294 L(0+i-56,14);
LNSound 0:a7ec991a632c 1295 */
LNSound 0:a7ec991a632c 1296 if(i>0){
LNSound 0:a7ec991a632c 1297
LNSound 0:a7ec991a632c 1298 L(0+i-6,0);
LNSound 0:a7ec991a632c 1299 }
LNSound 0:a7ec991a632c 1300
LNSound 0:a7ec991a632c 1301 if(i>7){
LNSound 0:a7ec991a632c 1302 N(0+i-13,0);
LNSound 0:a7ec991a632c 1303 }
LNSound 0:a7ec991a632c 1304
LNSound 0:a7ec991a632c 1305 if(i>11 ){
LNSound 0:a7ec991a632c 1306 punt(0+i-17,9);
LNSound 0:a7ec991a632c 1307 }
LNSound 0:a7ec991a632c 1308 if(i>14 ){
LNSound 0:a7ec991a632c 1309 D(0+i-20,0);
LNSound 0:a7ec991a632c 1310 }
LNSound 0:a7ec991a632c 1311 if(i>20){
LNSound 0:a7ec991a632c 1312 N(0+i-26,14);
LNSound 0:a7ec991a632c 1313 }
LNSound 0:a7ec991a632c 1314 if(i>26){
LNSound 0:a7ec991a632c 1315 U(0+i-32,-3);
LNSound 0:a7ec991a632c 1316 }
LNSound 0:a7ec991a632c 1317 if(i>32){
LNSound 0:a7ec991a632c 1318 O(0+i-38,0x11);
LNSound 0:a7ec991a632c 1319 }
LNSound 0:a7ec991a632c 1320 if(i>38){
LNSound 0:a7ec991a632c 1321 S(0+i-44,0);
LNSound 0:a7ec991a632c 1322 }
LNSound 0:a7ec991a632c 1323 if(i>44){
LNSound 0:a7ec991a632c 1324 N(0+i-50,9);
LNSound 0:a7ec991a632c 1325 }
LNSound 0:a7ec991a632c 1326 if(i>50){
LNSound 0:a7ec991a632c 1327 L(0+i-56,14);
LNSound 0:a7ec991a632c 1328 }
LNSound 0:a7ec991a632c 1329
LNSound 0:a7ec991a632c 1330 wait_ms(900);
LNSound 0:a7ec991a632c 1331
LNSound 0:a7ec991a632c 1332
LNSound 0:a7ec991a632c 1333
LNSound 0:a7ec991a632c 1334 myled=0;
LNSound 0:a7ec991a632c 1335
LNSound 0:a7ec991a632c 1336
LNSound 0:a7ec991a632c 1337
LNSound 0:a7ec991a632c 1338 }
LNSound 0:a7ec991a632c 1339
LNSound 0:a7ec991a632c 1340
LNSound 0:a7ec991a632c 1341 /*********************Trial HOI op 1 strip ************************
LNSound 0:a7ec991a632c 1342
LNSound 0:a7ec991a632c 1343 // Trial H
LNSound 0:a7ec991a632c 1344
LNSound 0:a7ec991a632c 1345 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1346 send_position(10);
LNSound 0:a7ec991a632c 1347
LNSound 0:a7ec991a632c 1348
LNSound 0:a7ec991a632c 1349 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1350 send_position(8);
LNSound 0:a7ec991a632c 1351
LNSound 0:a7ec991a632c 1352 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1353 send_position(14+pos);
LNSound 0:a7ec991a632c 1354
LNSound 0:a7ec991a632c 1355 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1356 send_position(15+pos);
LNSound 0:a7ec991a632c 1357
LNSound 0:a7ec991a632c 1358 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1359 send_position(16+pos);
LNSound 0:a7ec991a632c 1360
LNSound 0:a7ec991a632c 1361
LNSound 0:a7ec991a632c 1362 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1363 send_position(36+pos);
LNSound 0:a7ec991a632c 1364
LNSound 0:a7ec991a632c 1365 sendByte(0x84+kleur); // 1 rode led aan
LNSound 0:a7ec991a632c 1366 send_position(34+pos);
LNSound 0:a7ec991a632c 1367
LNSound 0:a7ec991a632c 1368
LNSound 0:a7ec991a632c 1369
LNSound 0:a7ec991a632c 1370 // Trial O
LNSound 0:a7ec991a632c 1371
LNSound 0:a7ec991a632c 1372
LNSound 0:a7ec991a632c 1373 sendByte(0x81); // 1 blauwe led aan
LNSound 0:a7ec991a632c 1374 send_position(6+pos);
LNSound 0:a7ec991a632c 1375
LNSound 0:a7ec991a632c 1376 sendByte(0x81); // 1 blauwe led aan
LNSound 0:a7ec991a632c 1377 send_position(5+pos);
LNSound 0:a7ec991a632c 1378
LNSound 0:a7ec991a632c 1379 sendByte(0x81); // 1 blauwe led aan
LNSound 0:a7ec991a632c 1380 send_position(4+pos);
LNSound 0:a7ec991a632c 1381
LNSound 0:a7ec991a632c 1382 sendByte(0x81); // 1 blauwe led aan
LNSound 0:a7ec991a632c 1383 send_position(18);
LNSound 0:a7ec991a632c 1384
LNSound 0:a7ec991a632c 1385 sendByte(0x81); // 1 blauwe led aan
LNSound 0:a7ec991a632c 1386 send_position(32+pos);
LNSound 0:a7ec991a632c 1387
LNSound 0:a7ec991a632c 1388 sendByte(0x81); // 1 blauwe led aan
LNSound 0:a7ec991a632c 1389 send_position(31);
LNSound 0:a7ec991a632c 1390
LNSound 0:a7ec991a632c 1391 sendByte(0x81); // 1 blauwe led aan
LNSound 0:a7ec991a632c 1392 send_position(30);
LNSound 0:a7ec991a632c 1393
LNSound 0:a7ec991a632c 1394
LNSound 0:a7ec991a632c 1395 sendByte(0x81); // 1 blauwe led aan
LNSound 0:a7ec991a632c 1396 send_position(20);
LNSound 0:a7ec991a632c 1397
LNSound 0:a7ec991a632c 1398
LNSound 0:a7ec991a632c 1399 // trial I
LNSound 0:a7ec991a632c 1400
LNSound 0:a7ec991a632c 1401
LNSound 0:a7ec991a632c 1402 sendByte(0x95+pos); // 1 groene led aan // nu wit gemaakt
LNSound 0:a7ec991a632c 1403 send_position(28);
LNSound 0:a7ec991a632c 1404
LNSound 0:a7ec991a632c 1405 sendByte(0x95+pos); // 1 groene led aan
LNSound 0:a7ec991a632c 1406 send_position(2+pos);
LNSound 0:a7ec991a632c 1407
LNSound 0:a7ec991a632c 1408 sendByte(0x95+pos); // 1 groene led aan
LNSound 0:a7ec991a632c 1409 send_position(22+pos);
LNSound 0:a7ec991a632c 1410
LNSound 0:a7ec991a632c 1411 /************** End HOI ***********///////
LNSound 0:a7ec991a632c 1412 } }