--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CircuitPython/displayio.py Wed Aug 28 19:53:19 2019 +0200 @@ -0,0 +1,153 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Module containing stubs for API generation of the 'displayio' module. +""" + +def release_displays(): + pass + +class Bitmap(): + def __init__(self, width, height, value_count): + pass + + @property + def width(self): + pass + + @property + def height(self): + pass + +class ColorConverter(): + def __init__(self): + pass + + def convert(self, color): + pass + +class Display(): + def __init__(self, display_bus, init_sequence, *, width, height, + colstart=0, rowstart=0, rotation=0, color_depth=16, + set_column_command=0x2a, set_row_command=0x2b, + write_ram_command=0x2c, set_vertical_scroll=0, + backlight_pin=None, brightness=1.0, auto_brightness=False, + single_byte_bounds=False, data_as_commands=False): + pass + + def show(self, group): + pass + + def refresh_soon(self): + pass + + def wait_for_frame(self): + pass + + @property + def brightness(self): + pass + + @property + def auto_brightness(self): + pass + + @property + def width(self): + pass + + @property + def height(self): + pass + + @property + def bus(self): + pass + +class FourWire(): + def __init__(self, spi_bus, *, command, chip_select, reset=None): + pass + + def send(self, command, data): + pass + +class Group(): + def __init__(self, *, max_size=4, scale=1, x=0, y=0): + pass + + @property + def scale(self): + pass + + @property + def x(self): + pass + + @property + def y(self): + pass + + def append(self, layer): + pass + + def insert(self, index, layer): + pass + + def pop(self, i=-1): + pass + +class OnDiskBitmap(): + def __init__(self, file): + pass + + @property + def width(self): + pass + + @property + def height(self): + pass + +class Palette(): + def __init__(self, color_count): + pass + + def make_transparent(self, palette_index): + pass + + def make_opaque(self, palette_index): + pass + +class ParallelBus(): + def __init__(self, *, data0, command, chip_select, write, read, reset): + pass + + def send(self, command, data): + pass + +class Shape(): + def __init__(self, width, height, *, mirror_x=False, mirror_y=False): + pass + + def set_boundary(self, y, start_x, end_x): + pass + +class TileGrid(): + def __init__(self, bitmap, *, pixel_shader, width=1, height=1, + tile_width=None, tile_height=None, default_tile=0, x=0, y=0): + pass + + @property + def x(self): + pass + + @property + def y(self): + pass + + @property + def pixel_shader(self): + pass