X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/6db6ef855f798996075d2919ca924ec31983f7f1..f3ae3c06d4960c48083602274fae53a99e0299f2:/src/adafruit_blinka/microcontroller/generic_micropython/i2c.py diff --git a/src/adafruit_blinka/microcontroller/generic_micropython/i2c.py b/src/adafruit_blinka/microcontroller/generic_micropython/i2c.py index 3ace77a..c609249 100755 --- a/src/adafruit_blinka/microcontroller/generic_micropython/i2c.py +++ b/src/adafruit_blinka/microcontroller/generic_micropython/i2c.py @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries +# +# SPDX-License-Identifier: MIT """I2C Class for Generic MicroPython""" from machine import I2C as _I2C @@ -5,6 +8,7 @@ from machine import I2C as _I2C class I2C: """I2C Class for Generic MicroPython""" + MASTER = 0 # pylint: disable=unused-argument @@ -33,7 +37,7 @@ class I2C: out_end=None, in_start=0, in_end=None, - stop=False + stop=False, ): """Write data from buffer_out to an address and then read data from an address and into buffer_in