diff --git a/micropython/examples/pico_display/demo.py b/micropython/examples/pico_display/demo.py index 9236d0b3..48fd7698 100644 --- a/micropython/examples/pico_display/demo.py +++ b/micropython/examples/pico_display/demo.py @@ -1,6 +1,11 @@ import time, random -import picodisplay as display -display.init() +import picodisplay as display + +WIDTH = 240 +HEIGHT = 135 + +display_buffer = bytearray(WIDTH * HEIGHT) +display.init(display_buffer) display.set_backlight(1.0) i = 0 width = display.get_width()