MicroPython/framebuf.py

Sun, 04 Apr 2021 16:54:03 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 04 Apr 2021 16:54:03 +0200
changeset 11
c8198736bff3
parent 2
2c3f30af031d
permissions
-rw-r--r--

Updated BBC micro:bit APIs for V2.

# -*- coding: utf-8 -*-

# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
#

"""
Module containing stubs for API generation of the def 'framebuf' module.
"""

MONO_VLSB = 0
MONO_HLSB = 0
MONO_HMSB = 0
RGB565 = 0
GS2_HMSB = 0
GS4_HMSB = 0
GS8 = 0

class FrameBuffer():
    def __init__(self, buffer, width, height, format, stride=None):
        pass
    
    def fill(self, c):
        pass
    
    def pixel(self, x, y, c=None):
        pass
    
    def hline(self, x, y, w, c):
        pass
    
    def vline(self, x, y, h, c):
        pass
    
    def line(self, x1, y1, x2, y2, c):
        pass
    
    def rect(self, x, y, w, h, c):
        pass
    
    def fill_rect(self, x, y, w, h, c):
        pass
    
    def text(self, s, x, y, c=None):
        pass
    
    def scroll(self, xstep, ystep):
        pass
    
    def blit(self, fbuf, x, y, key=None):
        pass

eric ide

mercurial