kopia lustrzana https://github.com/pimoroni/pimoroni-pico
Fixing buffer in picodisplay micropython example
Signed-off-by: James Sutton <1068763+jpwsutton@users.noreply.github.com>pull/16/head
rodzic
2e743ca302
commit
f913f3198b
|
@ -1,6 +1,11 @@
|
||||||
import time, random
|
import time, random
|
||||||
import picodisplay as display
|
import picodisplay as display
|
||||||
display.init()
|
|
||||||
|
WIDTH = 240
|
||||||
|
HEIGHT = 135
|
||||||
|
|
||||||
|
display_buffer = bytearray(WIDTH * HEIGHT)
|
||||||
|
display.init(display_buffer)
|
||||||
display.set_backlight(1.0)
|
display.set_backlight(1.0)
|
||||||
i = 0
|
i = 0
|
||||||
width = display.get_width()
|
width = display.get_width()
|
||||||
|
|
Ładowanie…
Reference in New Issue