Skip to content

Commit 837219d

Browse files
committed
har_trees: Rename display back to color_setup
micropython-nano-gui expects this specific module name
1 parent 8cad4a7 commit 837219d

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
from machine import Pin, SPI, PWM
33

4-
from drivers.st7789.st7789_4bit import ST7789, LANDSCAPE, TDISPLAY
4+
from drivers.st7789.st7789_4bit import ST7789 as SSD, LANDSCAPE, TDISPLAY
55

66
def init_screen(backlight_duty=400, backlight_freq=1000):
77

@@ -17,5 +17,5 @@ def init_screen(backlight_duty=400, backlight_freq=1000):
1717

1818
# Conservative low baudrate. Can go to 62.5MHz.
1919
spi = SPI(1, 30_000_000, sck=Pin(13), mosi=Pin(15))
20-
ssd = ST7789(spi, height=135, width=240, dc=pdc, cs=pcs, rst=prst, disp_mode=LANDSCAPE, display=TDISPLAY)
20+
ssd = SSD(spi, height=135, width=240, dc=pdc, cs=pcs, rst=prst, disp_mode=LANDSCAPE, display=TDISPLAY)
2121
return ssd

examples/har_trees/har_live.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#import gui.fonts.courier20 as fixed_font
2727
import gui.fonts.arial10 as fixed_font
2828

29-
from display import init_screen
29+
from color_setup import init_screen
3030

3131
# Cleanup after import frees considerable memory
3232
gc.collect()

examples/har_trees/har_record.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from gui.widgets.label import Label
3030
import gui.fonts.courier20 as fixed
3131

32-
from display import init_screen
32+
from color_setup import init_screen
3333

3434
# Cleanup after import frees considerable memory
3535
gc.collect()

0 commit comments

Comments
 (0)