Populate LUT before use.

main
Peter Hinch 2021-06-12 17:49:08 +01:00
rodzic 4ef0e20da2
commit 6b424290e9
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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.