diff options
| author | D Delmar Davis <don@suspectdevices.com> | 2025-07-10 22:05:33 -0700 |
|---|---|---|
| committer | D Delmar Davis <don@suspectdevices.com> | 2025-07-10 22:05:33 -0700 |
| commit | 3a0962becc327d626ec9007cb7b9233409bdb1e3 (patch) | |
| tree | e4736e16dc7aa485733aba15a26bf2eb5e44bd19 /bin | |
| parent | fcd978db4aae3f662c8190de3c15773419e05814 (diff) | |
test
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/bigclock.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/bigclock.py b/bin/bigclock.py index e4fa5dd..96086d8 100755 --- a/bin/bigclock.py +++ b/bin/bigclock.py @@ -65,7 +65,7 @@ def clearCollumn(col=6): def printTime(): - date_string = f'{datetime.now():%I%M}' + date_string = f'{datetime.now():%I%M%p}' if (date_string[0] == '1'): printShort1() else: @@ -76,10 +76,12 @@ def printTime(): printNum4(int(date_string[2]),7) clearCollumn(10) printNum4(int(date_string[3]),11) - lcd.cursor_position(15,0) + lcd.cursor_position(14,0) + lcd_message=date_string[4:5] + lcd.cursor_position(15,1) lcd.message=datetime.now().strftime("%d%b") if __name__ == '__main__': while True: printTime() - time.sleep(60) + time.sleep(5) |
