Simple test

Ensure your device works with this simple test.

examples/display_analogclock_simpletest.py
 1# SPDX-FileCopyrightText: 2025 Tim C for Adafruit Industries
 2# SPDX-License-Identifier: MIT
 3
 4"""
 5Demonstration of AnalogClock display widget.
 6Initialize a clock, show it on the display and set it
 7to show a specific time.
 8
 9Intended to run on devices with a built-in display.
10"""
11
12import board
13
14from adafruit_display_analogclock import AnalogClock
15
16display = board.DISPLAY
17
18plain_clockface = AnalogClock(
19    "green_hour_hand.bmp",
20    "green_minute_hand.bmp",
21    (120, 120),
22    106,
23    number_label_scale=2,
24    number_label_color=0x00FF00,
25)
26
27display.root_group = plain_clockface
28
29plain_clockface.set_time(3, 30)
30
31while True:
32    pass