diff options
| author | root <D Delmar Davis feurig@fromhell.com> | 2024-08-31 00:14:56 -0700 |
|---|---|---|
| committer | root <D Delmar Davis feurig@fromhell.com> | 2024-08-31 00:14:56 -0700 |
| commit | 85820d90f61321b834da3358e1590d90ca8c41cc (patch) | |
| tree | 963190a4c49a0195cd186a3d951c4e47e23cf8e4 /bin | |
| parent | bf5eff1e502c93e0a45a3cb8bee5df1e71d5e73e (diff) | |
lights out
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/analogclock.py | 10 | ||||
| -rwxr-xr-x | bin/lightsout.sh | 3 |
2 files changed, 8 insertions, 5 deletions
diff --git a/bin/analogclock.py b/bin/analogclock.py index da069c9..1d28a1c 100644 --- a/bin/analogclock.py +++ b/bin/analogclock.py @@ -1,6 +1,6 @@ -import time -from PIL import Image, ImageDraw, ImageFont -from datetime import datetime +import time +from PIL import Image, ImageDraw, ImageFont +from datetime import datetime import math import digitalio @@ -58,7 +58,7 @@ font = ImageFont.load_default() def draw_clock(t: datetime): center=(bottom-top)/2 - linefill=(255, 255, 64, 255)) + linefill=(128, 96, 0, 255) h=t.hour m=t.minute ml = center * 0.9 #fix later @@ -85,7 +85,7 @@ while True: draw_clock(thetime) display.image(image) #display.show() - time.sleep(0.1) + time.sleep(1.0) diff --git a/bin/lightsout.sh b/bin/lightsout.sh new file mode 100755 index 0000000..22a2dcc --- /dev/null +++ b/bin/lightsout.sh @@ -0,0 +1,3 @@ +#!/usr/bin/bash +echo 0 | tee /sys/class/leds/mmc0/brightness +echo 0 | tee /sys/class/leds/ACT/brightness |
