import time

from pingo.parts import serial

# '/dev/ttyAMA0' is the mini-UART port on the Raspberry Pi
lcd = serial.LCD16x2('/dev/ttyAMA0', 9600)

while True:
    lcd.set_cursor(0, 0)
    lcd.write(time.strftime('%H:%M:%S'))
    time.sleep(1)

import time

from pingo.parts import serial

# '/dev/ttyAMA0' is the mini-UART port on the Raspberry Pi
lcd = serial.LCD16x2('/dev/ttyAMA0', 9600)
time.sleep(.5)  # wait for display to boot up


while True:
    lcd.set_cursor(0, 0)
    lcd.write(time.strftime('%H:%M:%S'))
    time.sleep(1)

Update clock.py