aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorD Delmar Davis <don@suspectdevices.com>2025-07-08 12:54:20 -0700
committerD Delmar Davis <don@suspectdevices.com>2025-07-08 12:54:20 -0700
commita815653cb3d63d58e3af90d6bfa338a6c60406e4 (patch)
tree5ebda104cbce905559a5829074e875becaed6325 /bin
parent22b9922fb4f9389a2630b2f00ecb45ab17189f38 (diff)
Start the big clock
Diffstat (limited to 'bin')
-rw-r--r--bin/bigclock.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/bin/bigclock.py b/bin/bigclock.py
new file mode 100644
index 0000000..51fd687
--- /dev/null
+++ b/bin/bigclock.py
@@ -0,0 +1,20 @@
+!#/usr/bin/python3
+
+#//3x2 https://exploreembedded.com/wiki/Distance_Meter_with_Big_Fonts
+#const uint8_t bigNumbers3x2CustomPatterns_3[8][8] PROGMEM = {
+#{ B11100, B11110, B11110, B11110, B11110, B11110, B11110, B11100}, // 0 left bar
+#{ B00111, B01111, B01111, B01111, B01111, B01111, B01111, B00111}, // 1 right bar
+#{ B11111, B11111, B00000, B00000, B00000, B00000, B11111, B11111}, // 2 upper and lower bar
+#{ B11110, B11100, B00000, B00000, B00000, B00000, B11000, B11100}, // 3 left upper and lower rounded
+#{ B01111, B00111, B00000, B00000, B00000, B00000, B00011, B00111}, // 4 right upper and lower rounded
+#{ B00000, B00000, B00000, B00000, B00000, B00000, B11111, B11111}, // 5 right lower
+#{ B00000, B00000, B00000, B00000, B00000, B00000, B00111, B01111}, // 6 right lower rounded
+#{ B11111, B11111, B00000, B00000, B00000, B00000, B00000, B00000} // 7 upper bar
+#};
+
+import busio
+import adafruit_character_lcd.character_lcd_i2c as character_lcd
+i2c = busio.I2C(board.SCL, board.SDA)
+lcd = character_lcd.Character_LCD_I2C(i2c, 20, 4)
+lcd.backlight = True
+lcd.message = "Hello there welcom\nCircuitPython\nwho knows if \nthis is too bright" \ No newline at end of file