--- /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