2

I have my Raspberry Pi hooked up to 16 x 2 character display the date on launch.

The display has a i2c module on the

I have placed this in crontab (without the sudo thingy, so user) :

@reboot sudo python /home/pi/myFolder/DisplayFirst.py

This runs this python file:

import pylcdlib
import time
display = pylcdlib.lcd()
display.lcd_clear()
g = time.strftime('%I:%M:%S %p')
display.writeBlock(g)

However this displays the time from when the raspberry pi was last turned on.

Quintin B
  • 689
  • 1
  • 5
  • 20
Ben
  • 115
  • 1
  • 2
  • 10

0 Answers0