|
@@ -1,10 +1,15 @@
|
|
|
import lcddriver
|
|
|
from time import *
|
|
|
|
|
|
-lcd = lcddriver.lcd()
|
|
|
+lcd = None
|
|
|
|
|
|
-lcd.lcd_display_string("Freya, Robert", 1)
|
|
|
-lcd.lcd_display_string("und Elisabeth Clara", 2)
|
|
|
-lcd.lcd_display_string("05.05.2024 20:18", 3)
|
|
|
-lcd.lcd_display_string("================", 4)
|
|
|
+try:
|
|
|
+ lcd = lcddriver.lcd()
|
|
|
+except OSError:
|
|
|
+ pass
|
|
|
|
|
|
+
|
|
|
+def write(station, title):
|
|
|
+ if lcd:
|
|
|
+ lcd.lcd_display_string(station, 1)
|
|
|
+ lcd.lcd_display_string(title, 3)
|