Created
November 11, 2018 16:22
-
-
Save boochow/2f87052d058e10a9452c0f6f58528590 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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