Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
45d5cabd9This file is pinned to the selected release. Download the original to open it in your design tool.
class ADC:
def __init__(self, *args):
pass
def read_u16(self, *args):
return 0
class I2C:
def __init__(self, channel, sda, scl, freq, *args):
pass
def scan(self):
return []
class Pin:
IN = "in"
def __init__(self, id, *args):
pass
def irq(self, handler=None, trigger=None):
pass
def value(self, *args):
pass
class PWM:
def __init__(self, *args):
pass
def freq(self, f):
pass
def duty_u16(self, f):
pass
class Timer:
ONE_SHOT = 0
PERIODIC = 1
def __init__(self, *, mode=1, freq=-1, period=-1, callback=None):
pass
def init(self, *, mode=1, freq=-1, period=-1, callback=None):
pass
def deinit(self):
pass
def freq(_):
pass