MicroPython/framebuf.py

changeset 2
2c3f30af031d
diff -r afcd3f0662b1 -r 2c3f30af031d MicroPython/framebuf.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MicroPython/framebuf.py	Sun Aug 25 19:25:37 2019 +0200
@@ -0,0 +1,50 @@
+# -*- 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