Fixing buffer in picodisplay micropython example

Signed-off-by: James Sutton <1068763+jpwsutton@users.noreply.github.com>
This commit is contained in:
James Sutton 2021-01-22 23:05:23 +00:00 committed by Phil Howard
parent 2e743ca302
commit f913f3198b
1 changed files with 7 additions and 2 deletions

View File

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