Welche Programmiersprache? C, BASCOM, Assembler, .....
Hallo tordy!Zitat von tordy
- http://halvar.at/elektronik/kleiner_...r_anschliesen/
- http://halvar.at/elektronik/kleiner_...d_textanzeige/
mfg
Gerold
:-)
ALso wenn ich das richtig verstanden habe dann müsste es so gehen ?
Code:'HALLO1 an LCD Hallo1 Alias LCD "Hallo1" 'HALLO2 an LCD Hallo2 Alias LCD "Hallo2" 'TASTER1 an PD2 Taster1 Alias Pind.2 Config Pind.2 = Input Do If Taster1 = 1 Then Hallo1 = 0 Hallo2 = 1 Else Hallo1 = 1 Hallo2 = 0 End If Loop End
Hallo tordy!Zitat von tordy
Lies das lieber noch einmal durch. :D
Oder, beginne bei Kapitel 1: http://halvar.at/elektronik/kleiner_bascom_avr_kurs/
mfg
Gerold
:-)
Okay danke ich habe es begriffen.
Darf ich noch was frageN ?Code:'TASTER1 an Pc1 Taster1 Alias Pinc.0 Config Pinc.0 = Input Do If Taster1 = 1 Then Locate 1 , 4 Lcd "Hallo1" Else Locate 1 , 4 Lcd "Hallo2" End If Loop![]()
Wie bekomme ich jetzt das Hallo2 zum blinken ?
Das übertragen klappte mit dem ISP sofort ...
Zum Blinken musst Du es dauernd ein- und ausschalten. Zum Ausschalten einer Zeile oder von ein paar Zeichen solltest Du an die selbe Stelle viele Leerzeichen schreiben.
Ungefähr so:
Code:Do Locate 1 , 4 Lcd "Hallo2" Waitms 250 Locate 1 , 4 Lcd " " Waitms 250 Loop
Lesezeichen