weiß jetzt ehrlich gesagt überhaupt nicht wie ich da rann gehen soll. hab das ganze mal versucht mit timer0 hinzubekommen aber irgendwie will der einfach net meine tastendrücke zählen. denke aber dass meine strucktur schon gar nicht stimmt. kann mir jemand helfen?
Code:$regfile = "m8def.dat" $crystal = 1000000 $hwstack = 100 $swstack = 100 $framesize = 100 Config Lcd = 16 * 2 Config Lcdpin = Pin , Db4 = Portc.2 , Db5 = Portc.3 , Db6 = Portc.4 , Db7 = Portc.5 , E = Portc.1 , Rs = Portc.0 Config Lcdbus = 4 Cursor Off Ddrb = &B11111111 Ddrd = &B00000000 Portd.1 = 1 On Timer0 Ontimer0 Config Timer0 = Counter , Edge = Falling Enable Timer0 Enable Interrupts Timer0 = 253 Do If Pind.1 = 1 Then Wait 1 Locate 2 , 1 Lcd "mp3" End If If Pind.1 = 2 Then Wait 1 Locate 2 , 1 Lcd "AUX" End If Loop Ontimer0: Timer0 = 253 Return







Zitieren
Lesezeichen