kopia lustrzana https://github.com/peterhinch/micropython-nano-gui
Populate LUT before use.
rodzic
4ef0e20da2
commit
6b424290e9
|
@ -3,12 +3,13 @@
|
|||
# Move cmath dependency to widgets/dial
|
||||
|
||||
# Released under the MIT License (MIT). See LICENSE.
|
||||
# Copyright (c) 2018-2020 Peter Hinch
|
||||
# Copyright (c) 2018-2021 Peter Hinch
|
||||
|
||||
# Base class for a displayable object. Subclasses must implement .show() and .value()
|
||||
# Has position, colors and border definition.
|
||||
# border: False no border None use bgcolor, int: treat as color
|
||||
|
||||
from gui.core.colors import * # Populate color LUT before use.
|
||||
from gui.core.writer import Writer
|
||||
import framebuf
|
||||
import gc
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
# Initialise hardware and framebuf before importing modules.
|
||||
from color_setup import ssd # Create a display instance
|
||||
from gui.core.nanogui import refresh
|
||||
from gui.core.nanogui import refresh # Color LUT is updated now.
|
||||
from gui.widgets.label import Label
|
||||
from gui.widgets.dial import Dial, Pointer
|
||||
refresh(ssd, True) # Initialise and clear display.
|
||||
|
|
Ładowanie…
Reference in New Issue