import lcddriver from time import * lcd = None 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)