Skip to content

Instantly share code, notes, and snippets.

@boochow
Created November 11, 2018 16:22
Show Gist options
  • Save boochow/2f87052d058e10a9452c0f6f58528590 to your computer and use it in GitHub Desktop.
Save boochow/2f87052d058e10a9452c0f6f58528590 to your computer and use it in GitHub Desktop.
import gpu
import framebuf
class RPiScreen(framebuf.FrameBuffer):
def __init__(self, width, height):
self.width = width
self.height = height
gpu.fb_init(width,height,screen_w=1920,screen_h=1080)
super().__init__(gpu.fb_data(),width,height,framebuf.RGB565)
self
def show(self):
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment