Fixing buffer in picodisplay micropython example
Signed-off-by: James Sutton <1068763+jpwsutton@users.noreply.github.com>
This commit is contained in:
parent
2e743ca302
commit
f913f3198b
|
@ -1,6 +1,11 @@
|
|||
import time, random
|
||||
import picodisplay as display
|
||||
display.init()
|
||||
|
||||
WIDTH = 240
|
||||
HEIGHT = 135
|
||||
|
||||
display_buffer = bytearray(WIDTH * HEIGHT)
|
||||
display.init(display_buffer)
|
||||
display.set_backlight(1.0)
|
||||
i = 0
|
||||
width = display.get_width()
|
||||
|
|
Loading…
Reference in New Issue