diff -r 2151a8fd54e3 -r f5e2683cdbe6 MicroPython/lcd160cr.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MicroPython/lcd160cr.py Tue Aug 27 12:27:36 2019 +0200 @@ -0,0 +1,162 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Module containing stubs for API generation of the def 'lcd160cr' module. +""" + +PORTRAIT = 0 +LANDSCAPE = 0 +PORTRAIT_UPSIDEDOWN = 0 +LANDSCAPE_UPSIDEDOWN = 0 +STARTUP_DECO_NONE = 0 +STARTUP_DECO_MLOGO = 0 +STARTUP_DECO_INFO = 0 + +class LCD160CR(): + def __init__(self, connect=None, *, pwr=None, i2c=None, spi=None, + i2c_addr=98): + self.w = 0 + self.h = 0 + + def set_power(self, on): + pass + + def set_orient(self, orient): + pass + + def set_brightness(self, value): + pass + + def set_i2c_addr(self, addr): + pass + + def set_uart_baudrate(self, baudrate): + pass + + def set_startup_deco(self, value): + pass + + def save_to_flash(self): + pass + + def set_pixel(self, x, y, c): + pass + + def get_pixel(self, x, y): + pass + + def get_line(self, x, y, buf): + pass + + def screen_dump(self, buf, x=0, y=0, w=None, h=None): + pass + + def screen_load(self, buf): + pass + + def set_pos(self, x, y): + pass + + def set_text_color(self, fg, bg): + pass + + def set_font(self, font, scale=0, bold=0, trans=0, scroll=0): + pass + + def write(self, s): + pass + + def set_pen(self, line, fill): + pass + + def erase(self): + pass + + def dot(self, x, y): + pass + + def rect(self, x, y, w, h): + pass + + def rect_outline(self, x, y, w, h): + pass + + def rect_interior(self, x, y, w, h): + pass + + def line(self, x1, y1, x2, y2): + pass + + def dot_no_clip(self, x, y): + pass + + def rect_no_clip(self, x, y, w, h): + pass + + def rect_outline_no_clip(self, x, y, w, h): + pass + + def rect_interior_no_clip(self, x, y, w, h): + pass + + def line_no_clip(self, x1, y1, x2, y2): + pass + + def poly_dot(self, data): + pass + + def poly_line(self, data): + pass + + def touch_config(self, calib=False, save=False, irq=None): + pass + + def is_touched(self): + pass + + def get_touch(self): + pass + + def set_spi_win(self, x, y, w, h): + pass + + def fast_spi(self, flush=True): + pass + + def show_framebuf(self, buf): + pass + + def set_scroll(self, on): + pass + + def set_scroll_win(self, win, x=-1, y=0, w=0, h=0, vec=0, pat=0, + fill=0x07e0, color=0): + pass + + def set_scroll_win_param(self, win, param, value): + pass + + def set_scroll_buf(self, s): + pass + + def jpeg(self, buf): + pass + + def jpeg_start(self, total_len): + pass + + def jpeg_data(self, buf): + pass + + def feed_wdt(self): + pass + + def reset(self): + pass + + @staticmethod + def rgb(r, g, b): + pass