예제 #1
0
  time.sleep(60-sec)
  display.clear_display()
  display.write(get_time())
  display.new_line()
  display.write(get_date())

def update():
  display.clear_display()
  display.write(get_time())
  display.new_line()
  display.write(get_date())
  
display = LCD(12, 16, 18, 22, 24, 26, 32, 36, 10, 8)

display.function_set()
display.init_cursor()
display.clear_display()

#start()

#while True:
  #time.sleep(60)
  #date = get_date()
  #time1 = get_time()
  #display.clear_display()
  #display.write(time1)
  #display.new_line()
  #display.write(date) 

# update()