Tweak demo to use display w/h and 16bit buf
import time, random
import picodisplay as display
-WIDTH = 240
-HEIGHT = 135
+width = display.get_width()
+height = display.get_height()
-display_buffer = bytearray(WIDTH * HEIGHT)
+display_buffer = bytearray(width * height * 2) # 2-bytes per pixel (RGB565)
display.init(display_buffer)
+
display.set_backlight(1.0)
-i = 0
-width = display.get_width()
-height = display.get_height()
+
class Ball:
def __init__(self, x, y, r, dx, dy, pen):
