lcd.py 224 B

123456789101112131415
  1. import lcddriver
  2. from time import *
  3. lcd = None
  4. try:
  5. lcd = lcddriver.lcd()
  6. except OSError:
  7. pass
  8. def write(station, title):
  9. if lcd:
  10. lcd.lcd_display_string(station, 1)
  11. lcd.lcd_display_string(title, 3)