Rev 716 Rev 727
Line 9... Line 9...
9   9  
10 //piezo pipak 10 //piezo pipak
11 #DEFINE SOUND_HI PIN_B4 11 #DEFINE SOUND_HI PIN_B4
12 #DEFINE SOUND_LO PIN_B5 12 #DEFINE SOUND_LO PIN_B5
13   13  
-   14 //radkovy senzor
-   15 #define SDTAM PIN_B1
-   16 #define SDSEM input(PIN_B2)
-   17 #define SCLK PIN_B3
-   18  
14 //naraznik 19 //naraznik
15 #define BUMPL input(PIN_D6) 20 #define BUMPL input(PIN_D6)
16 #define BUMPR input(PIN_D7) 21 #define BUMPR input(PIN_D7)
17   22  
18 //nouzove senzory 23 //nouzove senzory
Line 207... Line 212...
207 printf("OK! \n"); 212 printf("OK! \n");
208 delay_ms(500); 213 delay_ms(500);
209 printf("VYBRAT MOD... \n"); 214 printf("VYBRAT MOD... \n");
210 while(true) 215 while(true)
211 { 216 {
-   217
212 bl++; // primitivni blikani - oznacuje vypber modu 218 bl++; // primitivni blikani - oznacuje vypber modu
213 if(bl>4096) 219 if(bl>4096)
214 { 220 {
215 output_low(LED1); 221 output_low(LED1);
216 output_high(LED2); 222 output_high(LED2);
Line 245... Line 251...
245 delay_ms(1000); 251 delay_ms(1000);
246 while(true) 252 while(true)
247 { 253 {
248   254  
249 } 255 }
250 } 256 }
251 } 257 }
252 } 258 }