I was tinkering with my Stellar Unicorn and came up with this.
It was all done vis Pico Graphics, draw line, draw circle, draw polygon, etc.
Trying to get a good picture was a bit tricky. It’s not the best but viewable.
from stellar import StellarUnicorn
from picographics import PicoGraphics, DISPLAY_STELLAR_UNICORN as DISPLAY
import time
display = PicoGraphics(DISPLAY)
su = StellarUnicorn()
su.set_brightness(0.5)
SWITCH_A = 0
SWITCH_B = 1
SWITCH_C = 3
SWITCH_D = 6
SWITCH_SLEEP = 27
SWITCH_VOLUME_UP = 7
SWITCH_VOLUME_DOWN = 8
SWITCH_BRIGHTNESS_UP = 21
SWITCH_BRIGHTNESS_DOWN = 26
BLACK = display.create_pen(0, 0, 0)
BROWN = display.create_pen(155, 80, 0)
WHITE = display.create_pen(150, 150, 150)
RED = display.create_pen(255, 0, 0)
GREEN = display.create_pen(0, 255, 0)
YELLOW = display.create_pen(200, 200, 0)
BLUE = display.create_pen(0, 0, 255)
ORANGE = display.create_pen(255, 105, 0)
display.set_pen(BLACK)
display.clear()
display.set_pen(YELLOW)
display.circle(8, 8, 7)
display.set_pen(ORANGE)
display.line(4, 0, 13, 0, 1)
display.polygon([
(0, 0),
(15, 1),
(13, 3),
(3, 3),
(0, 0),
])
display.set_pen(BLACK)
display.line(2, 4, 15, 4, 1)
display.set_pen(BLACK)
display.polygon([
(8, 4),
(13, 4),
(13, 7),
(11, 9),
(10, 9),
(8, 7),
])
display.set_pen(BLUE)
display.circle(4, 7, 2)
display.set_pen(BLACK)
display.pixel(4, 7)
display.set_pen(WHITE)
display.triangle(5, 12, 7, 9, 9, 12)
display.set_pen(RED)
display.line(3, 11, 5, 13, 1)
display.line(5, 13, 11, 13, 1)
display.line(10, 13, 13, 10, 1)
su.update(display)
while True:
if su.is_pressed(StellarUnicorn.SWITCH_BRIGHTNESS_UP):
su.adjust_brightness(+0.01)
su.update(display)
time.sleep(0.05)
if su.is_pressed(StellarUnicorn.SWITCH_BRIGHTNESS_DOWN):
su.adjust_brightness(-0.01)
su.update(display)
time.sleep(0.05)
su.update(graphics)