kopia lustrzana https://github.com/pimoroni/pimoroni-pico
Improved readability
rodzic
e1e467185a
commit
f0bfc7c13b
|
@ -3,9 +3,12 @@ from cosmic import CosmicUnicorn
|
|||
from picographics import PicoGraphics, DISPLAY_COSMIC_UNICORN as DISPLAY
|
||||
|
||||
"""
|
||||
Auto brightness feature for the Cosmic unicorn
|
||||
Uses the onboard light sensor to detect the light
|
||||
The brightness percentage is displayed with brightness auto adjusted
|
||||
Light sensoring feature for the cosmic unicorn
|
||||
Uses the onboard light sensor to detect the light in the environment
|
||||
The brightness level is displayed as percentage.
|
||||
Brightness of the display is auto adjusted to the brightness level of the environment
|
||||
Press A to turn auto brightness on
|
||||
Press B to turn auto brightness off
|
||||
"""
|
||||
# set up unicorn and drawing variables
|
||||
cu = CosmicUnicorn()
|
||||
|
@ -140,8 +143,7 @@ while True:
|
|||
|
||||
# draw the text
|
||||
graphics.set_pen(CURRENT_COLOUR)
|
||||
graphics.text("BRT ", 0, 1, scale=1)
|
||||
draw_percentage(15, 1)
|
||||
graphics.text("BRT: ", 0, 1, scale=1)
|
||||
graphics.text(f"{bp:.0f}", 7, 23, scale=1)
|
||||
draw_percentage((WIDTH - 10), 23)
|
||||
|
||||
|
|
|
@ -3,9 +3,12 @@ from galactic import GalacticUnicorn
|
|||
from picographics import PicoGraphics, DISPLAY_GALACTIC_UNICORN as DISPLAY
|
||||
|
||||
"""
|
||||
Auto brightness feature for the galactic unicorn
|
||||
Uses the onboard light sensor to detect the light
|
||||
The brightness percentage is displayed with brightness auto adjusted
|
||||
Light sensoring feature for the galactic unicorn
|
||||
Uses the onboard light sensor to detect the light in the environment
|
||||
The brightness level is displayed as percentage.
|
||||
Brightness of the display is auto adjusted to the brightness level of the environment
|
||||
Press A to turn auto brightness on
|
||||
Press B to turn auto brightness off
|
||||
"""
|
||||
# set up unicorn and drawing variables
|
||||
gu = GalacticUnicorn()
|
||||
|
|
|
@ -3,9 +3,12 @@ from stellar import StellarUnicorn
|
|||
from picographics import PicoGraphics, DISPLAY_STELLAR_UNICORN as DISPLAY
|
||||
|
||||
"""
|
||||
Auto brightness feature for the stellar unicorn
|
||||
Uses the onboard light sensor to detect the light
|
||||
The brightness percentage is displayed with brightness auto adjusted
|
||||
Light sensoring feature for the stellar unicorn
|
||||
Uses the onboard light sensor to detect the light in the environment
|
||||
The brightness level is displayed as percentage.
|
||||
Brightness of the display is auto adjusted to the brightness level of the environment
|
||||
Press A to turn auto brightness on
|
||||
Press B to turn auto brightness off
|
||||
"""
|
||||
# set up unicorn and drawing variables
|
||||
su = StellarUnicorn()
|
||||
|
|
Ładowanie…
Reference in New Issue