diff options
| author | D Delmar Davis <don@suspectdevices.com> | 2024-08-30 15:54:31 -0700 |
|---|---|---|
| committer | D Delmar Davis <don@suspectdevices.com> | 2024-08-30 15:54:31 -0700 |
| commit | 6105ffdb955bdb75e1c7c86c0e46c3e3ac4108cd (patch) | |
| tree | ad1f29199ba9c90340aa9737a1f405b06f6717a8 /bin | |
| parent | 5b745431018111b9423163625e9b8b9a4ae41b69 (diff) | |
minor
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/analogclock.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/bin/analogclock.py b/bin/analogclock.py index 7fb5642..1727ce7 100644 --- a/bin/analogclock.py +++ b/bin/analogclock.py @@ -21,10 +21,11 @@ display = st7789.ST7789( dc=dc_pin, rst=reset_pin, baudrate=BAUDRATE, - width=135, + width=240, height=240, - x_offset=53, - y_offset=40, + x_offset=0, + y_offset=80, + rotation = 180 ) backlight = digitalio.DigitalInOut(board.D22) @@ -36,10 +37,10 @@ buttonA.switch_to_input() buttonB.switch_to_input() """ -# width = disp.width -# height = disp.height -width = 250 -height = 250 +width = display.width +height = display.height +#width = 250 +#height = 250 image = Image.new("1", (width, height)) draw = ImageDraw.Draw(image) draw.rectangle((0, 0, width, height), outline=0, fill=0) |
