Sun, 04 Apr 2021 16:54:03 +0200
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 'displayio' module. """ def release_displays(): pass class Bitmap(): width = 0 height = 0 def __init__(self, width, height, value_count): pass class ColorConverter(): def __init__(self): pass def convert(self, color): pass class Display(): brightness = 0 auto_brightness = 0 width = 0 height = 0 bus = 0 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 class FourWire(): def __init__(self, spi_bus, *, command, chip_select, reset=None): pass def send(self, command, data): pass class Group(): scale = 0 x = 0 y = 0 def __init__(self, *, max_size=4, scale=1, x=0, y=0): pass def append(self, layer): pass def insert(self, index, layer): pass def pop(self, i=-1): pass class OnDiskBitmap(): width = 0 height = 0 def __init__(self, file): 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(): x = 0 y = 0 pixel_shader = 0 def __init__(self, bitmap, *, pixel_shader, width=1, height=1, tile_width=None, tile_height=None, default_tile=0, x=0, y=0): pass