File tree 1 file changed +4
-3
lines changed 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 17
17
import bitmaptools
18
18
import board
19
19
import displayio
20
+ import fourwire
21
+ import busdisplay
20
22
import espcamera
21
23
import microcontroller
22
24
import neopixel
@@ -540,16 +542,15 @@ def init_display(self):
540
542
"""Initialize the TFT display"""
541
543
# construct displayio by hand
542
544
displayio .release_displays ()
543
- self ._display_bus = displayio .FourWire (
545
+ self ._display_bus = fourwire .FourWire (
544
546
self ._spi ,
545
547
command = board .TFT_DC ,
546
548
chip_select = board .TFT_CS ,
547
549
reset = None ,
548
550
baudrate = 60_000_000 ,
549
551
)
550
- self .display = board .DISPLAY
551
552
# init specially since we are going to write directly below
552
- self .display = displayio . Display (
553
+ self .display = busdisplay . BusDisplay (
553
554
self ._display_bus ,
554
555
self ._INIT_SEQUENCE ,
555
556
width = 240 ,
You can’t perform that action at this time.
0 commit comments