CircuitPython: added more stub files.

Thu, 29 Aug 2019 19:05:05 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 29 Aug 2019 19:05:05 +0200
changeset 7
e336d6afc5a6
parent 6
81a2208f13e4
child 8
f706499906b8

CircuitPython: added more stub files.

CircuitPython/analogio.py file | annotate | diff | comparison | revisions
CircuitPython/array.py file | annotate | diff | comparison | revisions
CircuitPython/audiobusio.py file | annotate | diff | comparison | revisions
CircuitPython/audiocore.py file | annotate | diff | comparison | revisions
CircuitPython/audioio.py file | annotate | diff | comparison | revisions
CircuitPython/audiopwmio.py file | annotate | diff | comparison | revisions
CircuitPython/binascii.py file | annotate | diff | comparison | revisions
CircuitPython/bleio.py file | annotate | diff | comparison | revisions
CircuitPython/btree.py file | annotate | diff | comparison | revisions
CircuitPython/busio.py file | annotate | diff | comparison | revisions
CircuitPython/collections.py file | annotate | diff | comparison | revisions
CircuitPython/digitalio.py file | annotate | diff | comparison | revisions
CircuitPython/displayio.py file | annotate | diff | comparison | revisions
CircuitPython/esp.py file | annotate | diff | comparison | revisions
CircuitPython/fontio.py file | annotate | diff | comparison | revisions
CircuitPython/framebuf.py file | annotate | diff | comparison | revisions
CircuitPython/frequencyio.py file | annotate | diff | comparison | revisions
CircuitPython/gamepad.py file | annotate | diff | comparison | revisions
CircuitPython/gamepadshift.py file | annotate | diff | comparison | revisions
CircuitPython/gc.py file | annotate | diff | comparison | revisions
CircuitPython/hashlib.py file | annotate | diff | comparison | revisions
CircuitPython/i2cslave.py file | annotate | diff | comparison | revisions
CircuitPython/math.py file | annotate | diff | comparison | revisions
CircuitPython/microcontroller.py file | annotate | diff | comparison | revisions
CircuitPython/micropython.py file | annotate | diff | comparison | revisions
CircuitPython/multiterminal.py file | annotate | diff | comparison | revisions
CircuitPython/neopixel_write.py file | annotate | diff | comparison | revisions
CircuitPython/network.py file | annotate | diff | comparison | revisions
CircuitPython/nvm.py file | annotate | diff | comparison | revisions
CircuitPython/os.py file | annotate | diff | comparison | revisions
CircuitPython/ps2io.py file | annotate | diff | comparison | revisions
CircuitPython/pulseio.py file | annotate | diff | comparison | revisions
CircuitPython/random.py file | annotate | diff | comparison | revisions
CircuitPython/rotaryio.py file | annotate | diff | comparison | revisions
CircuitPython/rtc.py file | annotate | diff | comparison | revisions
CircuitPython/samd.py file | annotate | diff | comparison | revisions
CircuitPython/socket.py file | annotate | diff | comparison | revisions
CircuitPython/storage.py file | annotate | diff | comparison | revisions
CircuitPython/struct.py file | annotate | diff | comparison | revisions
CircuitPython/supervisor.py file | annotate | diff | comparison | revisions
CircuitPython/sys.py file | annotate | diff | comparison | revisions
CircuitPython/terminalio.py file | annotate | diff | comparison | revisions
CircuitPython/time.py file | annotate | diff | comparison | revisions
CircuitPython/touchio.py file | annotate | diff | comparison | revisions
CircuitPython/uctypes.py file | annotate | diff | comparison | revisions
CircuitPython/uerrno.py file | annotate | diff | comparison | revisions
CircuitPython/uheap.py file | annotate | diff | comparison | revisions
CircuitPython/uheapq.py file | annotate | diff | comparison | revisions
CircuitPython/uio.py file | annotate | diff | comparison | revisions
CircuitPython/ujson.py file | annotate | diff | comparison | revisions
CircuitPython/ure.py file | annotate | diff | comparison | revisions
CircuitPython/usb_hid.py file | annotate | diff | comparison | revisions
CircuitPython/usb_midi.py file | annotate | diff | comparison | revisions
CircuitPython/uselect.py file | annotate | diff | comparison | revisions
CircuitPython/usocket.py file | annotate | diff | comparison | revisions
CircuitPython/ussl.py file | annotate | diff | comparison | revisions
CircuitPython/ustack.py file | annotate | diff | comparison | revisions
CircuitPython/uzlib file | annotate | diff | comparison | revisions
CircuitPython/wiznet.py file | annotate | diff | comparison | revisions
micropython.e4p file | annotate | diff | comparison | revisions
--- a/CircuitPython/analogio.py	Wed Aug 28 19:53:19 2019 +0200
+++ b/CircuitPython/analogio.py	Thu Aug 29 19:05:05 2019 +0200
@@ -8,27 +8,20 @@
 """
 
 class AnalogIn():
+    value = 0
+    reference_voltage = 0
+    
     def __init__(self, pin):
         pass
     
     def deinit(self):
         pass
-    
-    @property
-    def value(self):
-        pass
-    
-    @property
-    def reference_voltage(self):
-        pass
 
 class AnalogOut():
+    value = 0
+    
     def __init__(self, pin):
         pass
     
     def deinit(self):
         pass
-    
-    @property
-    def value(self):
-        pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/array.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,18 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'array' module.
+"""
+
+class array():
+    def __init__(self, typecode, iterable=None):
+        pass
+    
+    def append(self, value):
+        pass
+    
+    def extend(self, iterable):
+        pass
--- a/CircuitPython/audiobusio.py	Wed Aug 28 19:53:19 2019 +0200
+++ b/CircuitPython/audiobusio.py	Thu Aug 29 19:05:05 2019 +0200
@@ -8,6 +8,9 @@
 """
 
 class I2SOut():
+    playing = 0
+    paused = 0
+    
     def __init__(self, bit_clock, word_select, data, *, left_justified):
         pass
     
@@ -20,21 +23,15 @@
     def stop(self):
         pass
     
-    @property
-    def playing(self):
-        pass
-    
     def pause(self):
         pass
     
     def resume(self):
         pass
-    
-    @property
-    def paused(self):
-        pass
 
 class PDMIn():
+    sample_rate = 0
+    
     def __init__(self, clock_pin, data_pin, *, sample_rate=16000, bit_depth=8,
                  mono=True, oversample=64, startup_delay=0.11):
         pass
@@ -44,7 +41,3 @@
     
     def record(self, destination, destination_length):
         pass
-    
-    @property
-    def sample_rate(self):
-        pass
--- a/CircuitPython/audiocore.py	Wed Aug 28 19:53:19 2019 +0200
+++ b/CircuitPython/audiocore.py	Thu Aug 29 19:05:05 2019 +0200
@@ -8,6 +8,9 @@
 """
 
 class Mixer():
+    playing = 0
+    sample_rate = 0
+    
     def __init__(self, channel_count=2, buffer_size=1024):
         pass
     
@@ -19,41 +22,23 @@
     
     def stop_voice(self, voice=0):
         pass
-    
-    @property
-    def playing(self):
-        pass
-    
-    @property
-    def sample_rate(self):
-        pass
 
 class RawSample():
+    sample_rate = 0
+    
     def __init__(self, buffer, *, channel_count=1, sample_rate=8000):
         pass
     
     def deinit(self):
         pass
-    
-    @property
-    def sample_rate(self):
-        pass
 
 class WaveFile():
+    sample_rate = 0
+    bits_per_sample = 0
+    channel_count = 0
+    
     def __init__(self, file, buffer=None):
         pass
     
     def deinit(self):
         pass
-    
-    @property
-    def sample_rate(self):
-        pass
-    
-    @property
-    def bits_per_sample(self):
-        pass
-    
-    @property
-    def channel_count(self):
-        pass
--- a/CircuitPython/audioio.py	Wed Aug 28 19:53:19 2019 +0200
+++ b/CircuitPython/audioio.py	Thu Aug 29 19:05:05 2019 +0200
@@ -8,6 +8,9 @@
 """
 
 class AudioOut():
+    playing = 0
+    paused = 0
+    
     def __init__(self, left_channel, *, right_channel=None,
                  quiescent_value=0x8000):
         pass
@@ -21,16 +24,8 @@
     def stop(self):
         pass
     
-    @property
-    def playing(self):
-        pass
-    
     def pause(self):
         pass
     
     def resume(self):
         pass
-    
-    @property
-    def paused(self):
-        pass
--- a/CircuitPython/audiopwmio.py	Wed Aug 28 19:53:19 2019 +0200
+++ b/CircuitPython/audiopwmio.py	Thu Aug 29 19:05:05 2019 +0200
@@ -8,6 +8,9 @@
 """
 
 class PWMAudioOut():
+    playing = 0
+    paused = 0
+    
     def __init__(self, left_channel, *, right_channel=None,
                  quiescent_value=0x8000):
         pass
@@ -21,16 +24,8 @@
     def stop(self):
         pass
     
-    @property
-    def playing(self):
-        pass
-    
     def pause(self):
         pass
     
     def resume(self):
         pass
-    
-    @property
-    def paused(self):
-        pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/binascii.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'binascii' module.
+"""
+
+def hexlify(data, sep=""):
+    pass
+
+def unhexlify(data):
+    pass
+
+def a2b_base64(data):
+    pass
+
+def b2a_base64(data):
+    pass
--- a/CircuitPython/bleio.py	Wed Aug 28 19:53:19 2019 +0200
+++ b/CircuitPython/bleio.py	Thu Aug 29 19:05:05 2019 +0200
@@ -14,30 +14,17 @@
     RANDOM_STATIC = 0
     RANDOM_PRIVATE_RESOLVABLE = 0
     RANDOM_PRIVATE_NON_RESOLVABLE = 0
+    
+    address_bytes = 0
+    type = 0
 
     def __init__(self, address, address_type):
         pass
-    
-    @property
-    def address_bytes(self):
-        pass
-    
-    @property
-    def type(self):
-        pass
 
 class Adapter():
-    @property
-    def enabled(self):
-        pass
-    
-    @property
-    def address(self):
-        pass
-    
-    @property
-    def default_name(self):
-        pass
+    enabled = 0
+    address = 0
+    default_name = ""
 
 class Attribute():
     NO_ACCESS = 0
@@ -49,6 +36,8 @@
     SIGNED_WITH_MITM = 0
 
 class Central():
+    connected = 0
+    
     def __init__(self):
         pass
     
@@ -60,10 +49,6 @@
     
     def discover_remote_services(self, service_uuids_whitelist=None):
         pass
-    
-    @property
-    def connected(self):
-        pass
 
 class Characteristic():
     BROADCAST = 0
@@ -72,28 +57,17 @@
     READ = 0
     WRITE = 0
     WRITE_NO_RESPONSE = 0
+    
+    properties = 0
+    uuid = 0
+    value = 0
+    descriptors = 0
 
     def __init__(self, uuid, *, properties=0, read_perm=Attribute.OPEN,
                  write_perm=Attribute.OPEN, max_length=20,
                  fixed_length=False, descriptors=None):
         pass
     
-    @property
-    def properties(self):
-        pass
-    
-    @property
-    def uuid(self):
-        pass
-    
-    @property
-    def value(self):
-        pass
-    
-    @property
-    def descriptors(self):
-        pass
-    
     def service(self, read_only):
         pass
     
@@ -101,6 +75,8 @@
         pass
     
 class CharacteristicBuffer():
+    in_waiting = 0
+    
     def __init__(self, characteristic, *, timeout=1, buffer_size=64):
         pass
     
@@ -113,10 +89,6 @@
     def readline(self):
         pass
     
-    @property
-    def in_waiting(self):
-        pass
-    
     def reset_input_buffer(self):
         pass
     
@@ -124,36 +96,26 @@
         pass
 
 class Descriptor():
+    uuid = 0
+    value = 0
+    
     def __init__(self, uuid, *, read_perm=Attribute.OPEN,
                  write_perm=Attribute.OPEN):
         pass
     
     def characteristic(self, read_only):
         pass
-    
-    @property
-    def uuid(self):
-        pass
-    
-    @property
-    def value(self):
-        pass
 
 class Peripheral():
+    services = 0
+    name = ""
+    
     def __init__(self, services=(), *, name=None):
         pass
     
     def connected(self, read_only):
         pass
     
-    @property
-    def services(self):
-        pass
-    
-    @property
-    def name(self):
-        pass
-    
     def start_advertising(self, data, *, scan_response=None, connectable=True,
                           interval=1):
         pass
@@ -171,17 +133,9 @@
         pass
 
 class ScanEntry():
-    @property
-    def address(self):
-        pass
-    
-    @property
-    def advertisement_bytes(self):
-        pass
-    
-    @property
-    def rssi(self):
-        pass
+    address = 0
+    advertisement_bytes = 0
+    rssi = 0
 
 class Scanner():
     def __init__(self):
@@ -191,33 +145,17 @@
         pass
 
 class Service():
-    def __init__(self, uuid, characteristics, *, secondary=False):
-        pass
-    
-    @property
-    def remotes(self):
-        pass
+    remotes = 0
+    secondary = 0
+    uuids = 0
     
-    @property
-    def secondarys(self):
-        pass
-    
-    @property
-    def uuids(self):
+    def __init__(self, uuid, characteristics, *, secondary=False):
         pass
 
 class UUID():
+    uuid16 = 0
+    uuid128 = 0
+    size = 0
+    
     def __init__(self, value):
         pass
-    
-    @property
-    def uuid16(self):
-        pass
-    
-    @property
-    def uuid128(self):
-        pass
-    
-    @property
-    def size(self):
-        pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/btree.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,33 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the def 'btree' module.
+"""
+
+INCL = 1
+DESC = 2
+
+def open(stream, *, flags=0, pagesize=0, cachesize=0, minkeypage=0):
+    pass
+
+class BTree():
+    def close(self):
+        pass
+    
+    def flush(self):
+        pass
+    
+    def get(self, key, default=None):
+        pass
+    
+    def keys(self, start_key=None, end_key=None, flags=0):
+        pass
+    
+    def values(self, start_key=None, end_key=None, flags=0):
+        pass
+    
+    def items(self, start_key=None, end_key=None, flags=0):
+        pass
--- a/CircuitPython/busio.py	Wed Aug 28 19:53:19 2019 +0200
+++ b/CircuitPython/busio.py	Thu Aug 29 19:05:05 2019 +0200
@@ -46,6 +46,8 @@
         pass
 
 class SPI():
+    frequency = 0
+    
     def __init__(self, clock, MOSI=None, MISO=None):
         pass
     
@@ -71,12 +73,11 @@
     def write_readinto(self, buffer_out, buffer_in, *, out_start=0,
                        out_end=None, in_start=0, in_end=None):
         pass
-    
-    @property
-    def frequency(self):
-        pass
 
 class UART():
+    baudrate = 0
+    in_waiting = 0
+    
     def __init__(self, x, rx, *, baudrate=9600, bits=8, parity=None, stop=1,
                  timeout=1, receiver_buffer_size=64):
         pass
@@ -96,13 +97,5 @@
     def write(self, buf):
         pass
     
-    @property
-    def baudrate(self):
-        pass
-    
-    @property
-    def in_waiting(self):
-        pass
-    
     def reset_input_buffer(self):
         pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/collections.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,16 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'collections' module.
+"""
+
+class namedtuple():
+    def __init__(self, name, fields):
+        pass
+
+class OrderedDict():
+    def __init__(self, iterableOfKeyValue):
+        pass
--- a/CircuitPython/digitalio.py	Wed Aug 28 19:53:19 2019 +0200
+++ b/CircuitPython/digitalio.py	Thu Aug 29 19:05:05 2019 +0200
@@ -12,6 +12,11 @@
     OPEN_DRAIN = 0
 
 class DigitalInOut():
+    direction = 0
+    value = 0
+    drive_mode = 0
+    pull = 0
+    
     def __init__(self, pin):
         pass
     
@@ -23,22 +28,6 @@
     
     def switch_to_input(self, pull=None):
         pass
-    
-    @property
-    def direction(self):
-        pass
-    
-    @property
-    def value(self):
-        pass
-    
-    @property
-    def drive_mode(self):
-        pass
-    
-    @property
-    def pull(self):
-        pass
 
 class Pull():
     UP = 0
--- a/CircuitPython/displayio.py	Wed Aug 28 19:53:19 2019 +0200
+++ b/CircuitPython/displayio.py	Thu Aug 29 19:05:05 2019 +0200
@@ -11,15 +11,10 @@
     pass
 
 class Bitmap():
-    def __init__(self, width, height, value_count):
-        pass
+    width = 0
+    height = 0
     
-    @property
-    def width(self):
-        pass
-    
-    @property
-    def height(self):
+    def __init__(self, width, height, value_count):
         pass
 
 class ColorConverter():
@@ -30,6 +25,12 @@
         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,
@@ -46,26 +47,6 @@
     
     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):
@@ -75,19 +56,11 @@
         pass
 
 class Group():
-    def __init__(self, *, max_size=4, scale=1, x=0, y=0):
-        pass
-    
-    @property
-    def scale(self):
-        pass
+    scale = 0
+    x = 0
+    y = 0
     
-    @property
-    def x(self):
-        pass
-    
-    @property
-    def y(self):
+    def __init__(self, *, max_size=4, scale=1, x=0, y=0):
         pass
     
     def append(self, layer):
@@ -100,15 +73,10 @@
         pass
 
 class OnDiskBitmap():
-    def __init__(self, file):
-        pass
+    width = 0
+    height = 0
     
-    @property
-    def width(self):
-        pass
-    
-    @property
-    def height(self):
+    def __init__(self, file):
         pass
 
 class Palette():
@@ -136,18 +104,10 @@
         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
-    
-    @property
-    def x(self):
-        pass
-    
-    @property
-    def y(self):
-        pass
-    
-    @property
-    def pixel_shader(self):
-        pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/esp.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,39 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the def 'esp' module.
+"""
+
+SLEEP_NONE = 0
+SLEEP_MODEM = 0
+SLEEP_LIGHT = 0
+
+def sleep_type(sleep_type=None):
+    pass
+
+def deepsleep(time=0):
+    pass
+
+def flash_id():
+    pass
+
+def flash_size():
+    pass
+
+def flash_user_start():
+    pass
+
+def flash_read(byte_offset, length_or_buffer):
+    pass
+
+def flash_write(byte_offset, bytes):
+    pass
+
+def flash_erase(sector_no):
+    pass
+
+def set_native_code_location(start, length):
+    pass
--- a/CircuitPython/fontio.py	Wed Aug 28 19:53:19 2019 +0200
+++ b/CircuitPython/fontio.py	Thu Aug 29 19:05:05 2019 +0200
@@ -8,9 +8,7 @@
 """
 
 class BuiltinFont():
-    @property
-    def bitmap(self):
-        pass
+    bitmap = object()
     
     def get_bounding_box(self):
         pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/framebuf.py	Thu Aug 29 19:05:05 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
--- a/CircuitPython/frequencyio.py	Wed Aug 28 19:53:19 2019 +0200
+++ b/CircuitPython/frequencyio.py	Thu Aug 29 19:05:05 2019 +0200
@@ -8,21 +8,19 @@
 """
 
 class FrequencyIn():
+    capture_period = 0
+    
     def __init__(self, pin, capture_period=10):
         pass
     
     def deinit(self):
         pass
     
-    def _pause(self):
-        pass
-    
-    def _resume(self):
+    def pause(self):
         pass
     
-    def _clear(self):
+    def resume(self):
         pass
     
-    @property
-    def capture_period(self):
+    def clear(self):
         pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/gamepad.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,19 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'gamepad' module.
+"""
+
+class GamePad():
+    def __init__(self, b1=None, b2=None, b3=None, b4=None, b5=None, b6=None,
+                 b7=None, b8=None):
+        pass
+    
+    def get_pressed(self):
+        pass
+    
+    def deinit(self):
+        pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/gamepadshift.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,18 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'gamepadshift' module.
+"""
+
+class GamePadShift():
+    def __init__(self, clock, data, latch):
+        pass
+    
+    def get_pressed(self):
+        pass
+    
+    def deinit(self):
+        pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/gc.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,26 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'gc' module.
+"""
+
+def enable():
+    pass
+
+def disable():
+    pass
+
+def collect():
+    pass
+
+def mem_alloc():
+    pass
+
+def mem_free():
+    pass
+
+def threshold(amount=None):
+    pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/hashlib.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,38 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'hashlib' module.
+"""
+
+class sha1():
+    def __init__(self, data=None):
+        pass
+    
+    def update(self, data):
+        pass
+    
+    def digest(self):
+        pass
+
+class sha256():
+    def __init__(self, data=None):
+        pass
+    
+    def update(self, data):
+        pass
+    
+    def digest(self):
+        pass
+
+class md5():
+    def __init__(self, data=None):
+        pass
+    
+    def update(self, data):
+        pass
+    
+    def digest(self):
+        pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/i2cslave.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,35 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'i2cslave' module.
+"""
+
+class I2CSlave():
+    def __init__(self, scl, sda, addresses, smbus=False):
+        pass
+    
+    def deinit(self):
+        pass
+    
+    def request(self, timeout=-1):
+        pass
+
+class I2CSlaveRequest():
+    address = 0
+    is_read = 0
+    is_restart = 0
+    
+    def __init__(self, slave, address, is_read, is_restart):
+        pass
+    
+    def read(self, n=-1, ack=True):
+        pass
+    
+    def write(self, buffer):
+        pass
+    
+    def ack(self, ack=True):
+        pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/math.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,83 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'math' module.
+"""
+
+def acos(x):
+    pass
+
+def asin(x):
+    pass
+
+def atan(x):
+    pass
+
+def atan2(y, x):
+    pass
+
+def ceil(x):
+    pass
+
+def copysign(x, y):
+    pass
+
+def cos(x):
+    pass
+
+def degrees(x):
+    pass
+
+def exp(x):
+    pass
+
+def fabs(x):
+    pass
+
+def floor(x):
+    pass
+
+def fmod(x, y):
+    pass
+
+def frexp(x):
+    pass
+
+def isfinite(x):
+    pass
+
+def isinf(x):
+    pass
+
+def isnan(x):
+    pass
+
+def ldexp(x, exp):
+    pass
+
+def modf(x):
+    pass
+
+def pow(x, y):
+    pass
+
+def radians(x):
+    pass
+
+def sin(x):
+    pass
+
+def sqrt(x):
+    pass
+
+def tan(x):
+    pass
+
+def trunc(x):
+    pass
+
+e = 2.718281828459045
+pi = 3.141592653589793
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/microcontroller.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,42 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'microcontroller' module.
+"""
+
+def delay_us(delay):
+    pass
+
+def disable_interrupts():
+    pass
+
+def enable_interrupts():
+    pass
+
+def on_next_reset(run_mode):
+    pass
+
+def reset():
+    pass
+
+class Pin():
+    pass
+
+class Processor():
+    frequency = 0
+    temperatur = 0
+    uid = 0
+
+class RunMode():
+    NORMAL = 0
+    SAFE_MODE = 0
+    BOOTLOADER = 0
+
+cpu = Processor()
+pin = Pin()
+
+import nvm
+nvm = nvm.ByteArray()
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/micropython.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,32 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the def 'micropython' module.
+"""
+
+def const(expr):
+    pass
+
+def opt_level(level=None):
+    pass
+
+def mem_info(verbose=False):
+    pass
+
+def qstr_info(verbose=False):
+    pass
+
+def stack_use():
+    pass
+
+def heap_lock():
+    pass
+
+def heap_unlock():
+    pass
+
+def kbd_intr(chr):
+    pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/multiterminal.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'multiterminal' module.
+"""
+
+def get_secondary_terminal():
+    pass
+
+def set_secondary_terminal(stream):
+    pass
+
+def clear_secondary_terminal():
+    pass
+
+def schedule_secondary_terminal_read(socket):
+    pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/neopixel_write.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,11 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'neopixel_write' module.
+"""
+
+def neopixel_write(digitalinout, buf):
+    pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/network.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,96 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'network' module.
+"""
+
+def route():
+    pass
+
+class AbstractNIC():
+    def __init__(self, id=None, *args):
+        pass
+    
+    def active(self, is_active=None):
+        pass
+    
+    def connect(self, service_id=None, key=None, *args):
+        pass
+    
+    def disconnect(self):
+        pass
+    
+    def isconnected(self):
+        pass
+    
+    def scan(self, *args):
+        pass
+    
+    def status(self, param=None):
+        pass
+    
+    def ifconfig(self, params=tuple()):
+        pass
+    
+    def config(self, param):
+        pass
+    
+    def config(self, **params):
+        pass
+
+def phy_mode(mode=None):
+    pass
+
+MODE_11B = 0
+MODE_11G = 0
+MODE_11N = 0
+
+STA_IF = 0
+AP_IF = 1
+
+AUTH_OPEN = 0
+AUTH_WEP = 1
+AUTH_WPA2_PSK = 3
+AUTH_WPA_PSK = 2
+AUTH_WPA_WPA2_PSK = 4
+
+STAT_IDLE = 0
+STAT_CONNECTING = 0
+STAT_WRONG_PASSWORD = 0
+STAT_NO_AP_FOUND = 0
+STAT_CONNECT_FAIL = 0
+STAT_GOT_IP = 0
+
+class WLAN():
+    def __init__(self, interface_id):
+        pass
+    
+    def active(self, is_active=None):
+        pass
+    
+    def connect(self, ssid=None, password=None, *, bssid=None):
+        pass
+    
+    def disconnect(self):
+        pass
+    
+    def scan(self):
+        pass
+    
+    def status(self, param=None):
+        pass
+    
+    def isconnected(self):
+        pass
+    
+    def ifconfig(self, params=tuple()):
+        pass
+    
+    def config(self, param):
+        pass
+    
+    def config(self, **params):
+        pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/nvm.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,11 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'nvm' module.
+"""
+
+class ByteArray():
+    pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/os.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,47 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'os' module.
+"""
+
+def uname():
+    pass
+
+def chdir(path):
+    pass
+
+def getcwd():
+    pass
+
+def listdir(dir="."):
+    pass
+
+def mkdir(path):
+    pass
+
+def remove(path):
+    pass
+
+def rmdir(path):
+    pass
+
+def rename(old_path, new_path):
+    pass
+
+def stat(path):
+    pass
+
+def statvfs(path):
+    pass
+
+def sync():
+    pass
+
+def urandom(size):
+    pass
+
+sep = "/"
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/ps2io.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,25 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'ps2io' module.
+"""
+
+class Ps2():
+    def __init__(self, data_pin, clock_pin):
+        pass
+    
+    def deinit(self):
+        pass
+    
+    def popleft(self):
+        pass
+    
+    def sendcmd(self, byte):
+        pass
+    
+    def clear_errors(self):
+        pass
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/pulseio.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,51 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'pulseio' module.
+"""
+
+class PulseIn():
+    maxlen = 0
+    paused = 0
+    
+    def __init__(self, pin, maxlen=2, *, idle_state=False):
+        pass
+    
+    def deinit(self):
+        pass
+    
+    def pause(self):
+        pass
+    
+    def resume(self, trigger_duration=0):
+        pass
+    
+    def clear(self):
+        pass
+    
+    def popleft(self):
+        pass
+
+class PulseOut():
+    def __init__(self, carrier):
+        pass
+    
+    def deinit(self):
+        pass
+    
+    def send(self, pulses):
+        pass
+
+class PWMOut():
+    duty_cycle = 0
+    frequency = 0
+    
+    def __init__(self, pin, *, duty_cycle=0, frequency=500,
+                 variable_frequency=False):
+        pass
+    
+    def deinit(self):
+        pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/random.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,33 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'random' module.
+"""
+
+def seed(seed):
+    pass
+
+def getrandbits(k):
+    pass
+
+def randrange(stop):
+    pass
+
+def randrange(start, stop, step=1):
+    pass
+
+def randint(a, b):
+    pass
+
+def choice(seq):
+    pass
+
+def random():
+    pass
+
+def uniform(a, b):
+    pass
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/rotaryio.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,17 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'rotaryio' module.
+"""
+
+class IncrementalEncoder():
+    position = 0
+    
+    def __init__(self, pin_a, pin_b):
+        pass
+    
+    def deinit(self):
+        pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/rtc.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,15 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'rtc' module.
+"""
+
+def set_time_source(rtc):
+    pass
+
+class RTC():
+    datetime = tuple()
+    calibration = 0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/samd.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,16 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'samd' module.
+"""
+
+clock = []
+
+class Clock():
+    enabled = 0
+    parent = 0
+    frequency = 0
+    calibration = 0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/socket.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,52 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'socket' module.
+"""
+
+class socket():
+    def __init__(self, family, type, proto):
+        pass
+    
+    def bind(self, address):
+        pass
+    
+    def listen(self, backlog):
+        pass
+    
+    def accept(self):
+        pass
+    
+    def connect(self, address):
+        pass
+    
+    def send(self, bytes):
+        pass
+    
+    def recv_into(self, buffer, bufsize=None):
+        pass
+    
+    def recv(self, bufsize):
+        pass
+    
+    def sendto(self, bytes, address):
+        pass
+    
+    def recvfrom(self, bufsize):
+        pass
+    
+    def setsockopt(self, level, optname, value):
+        pass
+    
+    def settimeout(self, value):
+        pass
+    
+    def setblocking(self, flag):
+        pass
+
+def getaddrinfo(host, port):
+    pass
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/storage.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,51 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'storage' module.
+"""
+
+def mount(filesystem, mount_path, *, readonly=False):
+    pass
+
+def umount(mount):
+    pass
+
+def remount(mount_path, readonly=False, *,
+            disable_concurrent_write_protection=False):
+    pass
+
+def getmount(mount_path):
+    pass
+
+def erase_filesystem():
+    pass
+
+class VfsFat():
+    label = ""
+    
+    def __init__(self, block_device):
+        pass
+    
+    def mkfs(self):
+        pass
+    
+    def open(self, path, mode):
+        pass
+    
+    def ilistdir(self, path=None):
+        pass
+    
+    def mkdir(self, path):
+        pass
+    
+    def rmdir(self, path):
+        pass
+    
+    def stat(self, path):
+        pass
+    
+    def statvfs(self, path):
+        pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/struct.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,24 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'struct' module.
+"""
+
+def calcsize(fmt):
+    pass
+
+def pack(fmt, *values):
+    pass
+
+def pack_into(fmt, buffer, offset, *values):
+    pass
+
+def unpack(fmt, data):
+    pass
+
+def unpack_from(fmt, data, offset=0):
+    pass
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/supervisor.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,29 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'supervisor' module.
+"""
+
+class Runtime():
+    serial_connected = 0
+    serial_bytes_available = 0
+
+runtime = Runtime()
+
+def enable_autoreload():
+    pass
+
+def disable_autoreload():
+    pass
+
+def set_rgb_status_brightness():
+    pass
+
+def reload():
+    pass
+
+def set_next_stack_limit(size):
+    pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/sys.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,27 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'sys' module.
+"""
+
+argv = []
+byteorder = ""
+implementation = tuple()
+maxsize = 1
+modules = {}
+path = []
+platform = ""
+stderr = 2
+stdin = 0
+stdout = 1
+version = ""
+version_info = tuple()
+
+def exit(retval=0):
+    pass
+
+def print_exception(exc, file=stdout):
+    pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/terminalio.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,18 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'terminalio' module.
+"""
+
+FONT = object()
+
+class Terminal():
+    def __init__(self, tilegrid, font):
+        pass
+    
+    def write(self, buf):
+        pass
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/time.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,31 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'time' module.
+"""
+
+def monotonic():
+    pass
+
+def sleep(seconds):
+    pass
+
+def time():
+    pass
+
+def monotonic_ns():
+    pass
+
+def localtime(secs=None):
+    pass
+
+def mktime(t):
+    pass
+
+class struct_time():
+    def __init__(self, time_tuple):
+        pass
+    
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/touchio.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,19 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'touchio' module.
+"""
+
+class TouchIn():
+    value = 0
+    raw_value = 0
+    threshold = 0
+    
+    def __init__(self, pin):
+        pass
+    
+    def deinit(self):
+        pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/uctypes.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,42 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the def 'uctypes' module.
+"""
+
+LITTLE_ENDIAN = 0
+BIG_ENDIAN = 0
+NATIVE = 0
+UINT8 = 0
+INT8 = 0
+UINT16 = 0
+INT16 = 0
+UINT32 = 0
+INT32 = 0
+UINT64 = 0
+INT64 = 0
+FLOAT32 = 0
+FLOAT64 = 0
+VOID = 0
+PTR = 0
+ARRAY = 0
+
+def sizeof(struct, layout_type=NATIVE):
+    pass
+
+def addressof(obj):
+    pass
+
+def bytes_at(addr, size):
+    pass
+
+def bytearray_at(addr, size):
+    pass
+
+class struct():
+    def __init__(self, addr, descriptor, layout_type=NATIVE):
+        pass
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/uerrno.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,33 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'uerrno' module.
+"""
+
+errorcode = {}
+
+EACCES = 0
+EADDRINUSE = 0
+EAGAIN = 0
+EALREADY = 0
+EBADF = 0
+ECONNABORTED = 0
+ECONNREFUSED = 0
+ECONNRESET = 0
+EEXIST = 0
+EHOSTUNREACH = 0
+EINPROGRESS = 0
+EINVAL = 0
+EIO = 0
+EISDIR = 0
+ENOBUFS = 0
+ENODEV = 0
+ENOENT = 0
+ENOMEM = 0
+ENOTCONN = 0
+EOPNOTSUPP = 0
+EPERM = 0
+ETIMEDOUT = 0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/uheap.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,11 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'uheap' module.
+"""
+
+def info(object):
+    pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/uheapq.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,17 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'uheapq' module.
+"""
+
+def heappush(heap, item):
+    pass
+
+def heappop(heap):
+    pass
+
+def heapify(x):
+    pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/uio.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,130 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the def 'uiodef' module.
+"""
+
+def open(name, mode='r', **kwargs):
+    pass
+
+class FileIO():
+    def __init__(self, name, mode='r', **kwargs):
+        pass
+    
+    def close(self):
+        pass
+    
+    def flush(self):
+        pass
+    
+    def read(self, size=-1):
+        pass
+    
+    def readinto(self, b):
+        pass
+    
+    def readline(self, size=-1):
+        pass
+    
+    def readlines(self, hint=-1):
+        pass
+    
+    def seek(self, offset, whence=0):
+        pass
+    
+    def tell(self):
+        pass
+    
+    def write(self, b):
+        pass
+
+class TextIOWrapper():
+    def __init__(self, name, mode='r', **kwargs):
+        pass
+    
+    def close(self):
+        pass
+    
+    def flush(self):
+        pass
+    
+    def read(self, size=-1):
+        pass
+    
+    def readinto(self, b):
+        pass
+    
+    def readline(self, size=-1):
+        pass
+    
+    def readlines(self, hint=-1):
+        pass
+    
+    def seek(self, offset, whence=0):
+        pass
+    
+    def tell(self):
+        pass
+    
+    def write(self, s):
+        pass
+
+class StringIO():
+    def __init__(self, initial_value=""):
+        pass
+    
+    def close(self):
+        pass
+    
+    def flush(self):
+        pass
+    
+    def getvalue(self):
+        pass
+    
+    def read(self, size=-1):
+        pass
+    
+    def readinto(self, b):
+        pass
+    
+    def readline(self, size=-1):
+        pass
+    
+    def seek(self, offset, whence=0):
+        pass
+    
+    def write(self, s):
+        pass
+
+
+class BytesIO():
+    def __init__(self, initial_value=b""):
+        pass
+    
+    def close(self):
+        pass
+    
+    def flush(self):
+        pass
+    
+    def getvalue(self):
+        pass
+    
+    def read(self, size=-1):
+        pass
+    
+    def readinto(self, b):
+        pass
+    
+    def readline(self, size=-1):
+        pass
+    
+    def seek(self, offset, whence=0):
+        pass
+    
+    def write(self, b):
+        pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/ujson.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the def 'ujson' module.
+"""
+
+def dump(obj, stream):
+    pass
+
+def dumps(obj):
+    pass
+
+def load(stream):
+    pass
+
+def loads(string):
+    pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/ure.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,46 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the def 'ure' module.
+"""
+
+def compile(regex_str, flags=0):
+    pass
+
+def match(regex_str, string):
+    pass
+
+def search(regex_str, string):
+    pass
+
+DEBUG = False
+
+class regex_object():
+    def match(self, string):
+        pass
+    
+    def search(self, string):
+        pass
+    
+    def split(self, string, max_split=-1):
+        pass
+    
+
+class match_object():
+    def group(self, index):
+        pass
+    
+    def groups(self):
+        pass
+    
+    def start(self, index=0):
+        pass
+    
+    def end(self, index=0):
+        pass
+    
+    def span(self, index=0):
+        pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/usb_hid.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,17 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'usb_hid' module.
+"""
+
+devices = tuple()
+
+class Device():
+    usage_page = 0
+    usage = 0
+    
+    def send_report(self, buf):
+        pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/usb_midi.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,19 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'usb_midi' module.
+"""
+
+class PortIn():
+    def read(self, nbytes=None):
+        pass
+    
+    def readinto(self, buf, nbytes=None):
+        pass
+
+class PortOut():
+    def write(self, buf):
+        pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/uselect.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,35 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the def 'uselect' module.
+"""
+
+def poll():
+    pass
+
+def select(rlist, wlist, xlist, timeout=-1):
+    pass
+
+POLLIN = 1
+POLLOUT = 4
+POLLERR = 8
+POLLHUP = 16
+
+class Poll():
+    def register(self, obj, eventmask = POLLIN | POLLOUT):
+        pass
+    
+    def unregister(self, obj):
+        pass
+    
+    def modify(self, obj, eventmask):
+        pass
+    
+    def poll(self, timeout=-1):
+        pass
+    
+    def ipoll(self, timeout=-1, flags=0):
+        pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/usocket.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,90 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the def 'usocket' module.
+"""
+
+AF_INET = 2
+AF_INET6 = 10
+SOCK_STREAM = 1
+SOCK_DGRAM = 2
+SOCK_RAW = 3
+IPPROTO_IP = 0
+IPPROTO_UDP = 17
+IPPROTO_TCP = 6
+IPPROTO_SEC = 0
+IP_ADD_MEMBERSHIP = 3
+SOL_SOCKET = 4095
+SO_REUSEADDR = 4
+
+error = Exception()
+
+def socket(af=AF_INET, type=SOCK_STREAM, proto=IPPROTO_TCP):
+    pass
+
+def getaddrinfo(host, port, af=0, type=0, proto=0, flags=0):
+    pass
+
+def inet_ntop(af, bin_addr):
+    pass
+
+def inet_pton(af, txt_addr):
+    pass
+
+class Socket():
+    def close(self):
+        pass
+    
+    def bind(self, address):
+        pass
+    
+    def listen(self, backlog=None):
+        pass
+    
+    def accept(self):
+        pass
+    
+    def connect(self, address):
+        pass
+    
+    def send(self, bytes):
+        pass
+    
+    def sendall(self, bytes):
+        pass
+    
+    def recv(self, bufsize):
+        pass
+    
+    def sendto(self, bytes, address):
+        pass
+    
+    def recvfrom(self, bufsize):
+        pass
+    
+    def setsockopt(self, level, optname, value):
+        pass
+    
+    def settimeout(self, value):
+        pass
+    
+    def setblocking(self, flag):
+        pass
+    
+    def makefile(self, mode='rb', buffering=0):
+        pass
+    
+    def read(self, size=None):
+        pass
+    
+    def readinto(self, buf, nbytes=None):
+        pass
+    
+    def readline(self):
+        pass
+    
+    def write(self, buf):
+        pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/ussl.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,16 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the def 'ussl' module.
+"""
+
+CERT_NONE = 0
+CERT_OPTIONAL = 0
+CERT_REQUIRED = 0
+
+def wrap_socket(sock, server_side=False, keyfile=None, certfile=None,
+                cert_reqs=CERT_NONE, ca_certs=None):
+    pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/ustack.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,17 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'ustack' module.
+"""
+
+def max_stack_usage():
+    pass
+
+def stack_size():
+    pass
+
+def stack_usage():
+    pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/uzlib	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,15 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the def 'uzlib' module.
+"""
+
+def decompress(data, wbits=0, bufsize=0):
+    pass
+
+class DecompIO():
+    def __init__(self, stream, wbits=0):
+        pass
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CircuitPython/wiznet.py	Thu Aug 29 19:05:05 2019 +0200
@@ -0,0 +1,18 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'wiznet' module.
+"""
+
+class WIZNET5K():
+    connected = 0
+    dhcp = 0
+    
+    def __init__(self, spi, cs, rst, dhcp=True):
+        pass
+    
+    def ifconfig(self, params=None):
+        pass
--- a/micropython.e4p	Wed Aug 28 19:53:19 2019 +0200
+++ b/micropython.e4p	Thu Aug 29 19:05:05 2019 +0200
@@ -14,18 +14,65 @@
   <Eol index="1"/>
   <Sources>
     <Source>CircuitPython/analogio.py</Source>
+    <Source>CircuitPython/array.py</Source>
     <Source>CircuitPython/audiobusio.py</Source>
     <Source>CircuitPython/audiocore.py</Source>
     <Source>CircuitPython/audioio.py</Source>
     <Source>CircuitPython/audiopwmio.py</Source>
+    <Source>CircuitPython/binascii.py</Source>
     <Source>CircuitPython/bitbangio.py</Source>
     <Source>CircuitPython/bleio.py</Source>
     <Source>CircuitPython/board.py</Source>
+    <Source>CircuitPython/btree.py</Source>
     <Source>CircuitPython/busio.py</Source>
+    <Source>CircuitPython/collections.py</Source>
     <Source>CircuitPython/digitalio.py</Source>
     <Source>CircuitPython/displayio.py</Source>
+    <Source>CircuitPython/esp.py</Source>
     <Source>CircuitPython/fontio.py</Source>
+    <Source>CircuitPython/framebuf.py</Source>
     <Source>CircuitPython/frequencyio.py</Source>
+    <Source>CircuitPython/gamepad.py</Source>
+    <Source>CircuitPython/gamepadshift.py</Source>
+    <Source>CircuitPython/gc.py</Source>
+    <Source>CircuitPython/hashlib.py</Source>
+    <Source>CircuitPython/i2cslave.py</Source>
+    <Source>CircuitPython/math.py</Source>
+    <Source>CircuitPython/microcontroller.py</Source>
+    <Source>CircuitPython/micropython.py</Source>
+    <Source>CircuitPython/multiterminal.py</Source>
+    <Source>CircuitPython/neopixel_write.py</Source>
+    <Source>CircuitPython/network.py</Source>
+    <Source>CircuitPython/nvm.py</Source>
+    <Source>CircuitPython/os.py</Source>
+    <Source>CircuitPython/ps2io.py</Source>
+    <Source>CircuitPython/pulseio.py</Source>
+    <Source>CircuitPython/random.py</Source>
+    <Source>CircuitPython/rotaryio.py</Source>
+    <Source>CircuitPython/rtc.py</Source>
+    <Source>CircuitPython/samd.py</Source>
+    <Source>CircuitPython/socket.py</Source>
+    <Source>CircuitPython/storage.py</Source>
+    <Source>CircuitPython/struct.py</Source>
+    <Source>CircuitPython/supervisor.py</Source>
+    <Source>CircuitPython/sys.py</Source>
+    <Source>CircuitPython/terminalio.py</Source>
+    <Source>CircuitPython/time.py</Source>
+    <Source>CircuitPython/touchio.py</Source>
+    <Source>CircuitPython/uctypes.py</Source>
+    <Source>CircuitPython/uerrno.py</Source>
+    <Source>CircuitPython/uheap.py</Source>
+    <Source>CircuitPython/uheapq.py</Source>
+    <Source>CircuitPython/uio.py</Source>
+    <Source>CircuitPython/ujson.py</Source>
+    <Source>CircuitPython/ure.py</Source>
+    <Source>CircuitPython/usb_hid.py</Source>
+    <Source>CircuitPython/usb_midi.py</Source>
+    <Source>CircuitPython/uselect.py</Source>
+    <Source>CircuitPython/usocket.py</Source>
+    <Source>CircuitPython/ussl.py</Source>
+    <Source>CircuitPython/ustack.py</Source>
+    <Source>CircuitPython/wiznet.py</Source>
     <Source>MicroPython/array.py</Source>
     <Source>MicroPython/btree.py</Source>
     <Source>MicroPython/cmath.py</Source>
@@ -78,6 +125,7 @@
   </Sources>
   <Others>
     <Other>.hgignore</Other>
+    <Other>CircuitPython/uzlib</Other>
     <Other>circuitpython.api</Other>
     <Other>circuitpython.bas</Other>
     <Other>create_api.sh</Other>

eric ide

mercurial