Re: Anzeige und Auswertung Wochentag Kategorie: Programmierung (von holger - 19.12.2005 11:24) | ||
Als Antwort auf Re: Anzeige und Auswertung Wochentag von krassos - 18.12.2005 20:05 | ||
| ||
Hallo folgendes Programm erzeugt bei mir die Ausgabe aller Wochentage im Display: thread main { stports.init(); lcdext.init(); system.setdate (2005,12,19); loop { if system.day()==0 lcdext.goto(1,5);lcdext.print("Sonntag") ; if system.day()==1 lcdext.goto(1,5);lcdext.print("Montag") ; if system.day()==2 lcdext.goto(1,5);lcdext.print( "Dienstag" ) ; if system.day()==3 lcdext.goto(1,5);lcdext.print("Mittwoch") ; if system.day()==4 lcdext.goto(1,5);lcdext.print("Donnerstag") ; if system.day()==5 lcdext.goto(1,5);lcdext.print("Freitag") ; if system.day()==6 lcdext.goto(1,5);lcdext.print("Sonnabend") ; sleep 5000; lcdext.clear(); } } Eigentlich war nur die Ausgabe des aktuellen Tages gewünscht (in diesem Falle Montag). Könnt Ihr mir bitte auf die Sprünge helfen (sorry, aber ich bin absoluter Anfänger). Danke, Holger | ||
Antwort schreiben Antworten: ![]() ![]() ![]() ![]() ![]() ![]() ![]() |