Skip to content

Commit 93d32ea

Browse files
committed
BusDisplay change
1 parent 03da135 commit 93d32ea

File tree

5 files changed

+10
-5
lines changed
  • CircuitPython_ESP32_Camera/esp32-kaluga-onionskin-gif
  • CircuitPython_displayio
  • OV5640_Breakout
    • CircuitPython_Kaluga-jpeg
    • CircuitPython_Kaluga-lcd-mirror

5 files changed

+10
-5
lines changed

CircuitPython_ESP32_Camera/esp32-kaluga-onionskin-gif/code.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
import bitmaptools
5555
import fourwire
5656
import displayio
57+
import busdisplay
5758
import sdcardio
5859
import storage
5960
import gifio
@@ -102,7 +103,7 @@ def record_pressed():
102103
b"\x29\x80\x78" # Display on then delay 0x78 (120ms)
103104
)
104105

105-
display = displayio.Display(display_bus, _INIT_SEQUENCE, width=320, height=240)
106+
display = busdisplay.BusDisplay(display_bus, _INIT_SEQUENCE, width=320, height=240)
106107

107108
sd_spi = busio.SPI(clock=board.IO18, MOSI=board.IO14, MISO=board.IO17)
108109
sd_cs = board.IO12

CircuitPython_displayio/displayio_display_manual/code.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import board
66
import displayio
7+
import busdisplay
78
import fourwire
89

910
# Release any previously configured displays
@@ -48,7 +49,7 @@
4849
)
4950

5051
# Setup the Display
51-
display = displayio.Display(display_bus, INIT_SEQUENCE, width=320, height=240)
52+
display = busdisplay.BusDisplay(display_bus, INIT_SEQUENCE, width=320, height=240)
5253

5354
#
5455
# DONE - now you can use the display however you want

CircuitPython_displayio/displayio_parallelbus/code.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import board
66
import displayio
7+
import busdisplay
78
import paralleldisplaybus
89

910
# Release any previously configured displays
@@ -46,7 +47,7 @@
4647
)
4748

4849
# Setup the Display
49-
display = displayio.Display(display_bus, INIT_SEQUENCE, width=320, height=240)
50+
display = busdisplay.BusDisplay(display_bus, INIT_SEQUENCE, width=320, height=240)
5051

5152
#
5253
# DONE - now you can use the display however you want

OV5640_Breakout/CircuitPython_Kaluga-jpeg/code.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import board
2626
import busio
2727
import displayio
28+
import busdisplay
2829
import fourwire
2930
import espcamera
3031
import espidf
@@ -68,7 +69,7 @@
6869
b"\x29\x80\x78" # Display on then delay 0x78 (120ms)
6970
)
7071

71-
display = displayio.Display(display_bus, _INIT_SEQUENCE, width=320, height=240)
72+
display = busdisplay.BusDisplay(display_bus, _INIT_SEQUENCE, width=320, height=240)
7273

7374
if espidf.get_reserved_psram() < 1047586:
7475
print("""Place the following line in CIRCUITPY/settings.toml, then hard-reset the board:

OV5640_Breakout/CircuitPython_Kaluga-lcd-mirror/code.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import busio
2020
import keypad
2121
import displayio
22+
import busdisplay
2223
import fourwire
2324
import espcamera
2425
import espidf
@@ -59,7 +60,7 @@
5960
b"\x29\x80\x78" # Display on then delay 0x78 (120ms)
6061
)
6162

62-
display = displayio.Display(display_bus, _INIT_SEQUENCE, width=320, height=240)
63+
display = busdisplay.BusDisplay(display_bus, _INIT_SEQUENCE, width=320, height=240)
6364

6465
if espidf.get_reserved_psram() < 1047586:
6566
print("""Place the following line in CIRCUITPY/settings.toml, then hard-reset the board:

0 commit comments

Comments
 (0)