]> Repositories - Adafruit_Blinka-hackapet.git/blobdiff - src/adafruit_blinka/microcontroller/nxp_lpc4330/i2c.py
Revert change to address review comment.
[Adafruit_Blinka-hackapet.git] / src / adafruit_blinka / microcontroller / nxp_lpc4330 / i2c.py
index 1eadf688098fc74727f4c614f9b6f60354de50b2..4c6311145c0e6a0bfbc263cb36b8c5b2efc1ecdc 100644 (file)
@@ -5,6 +5,7 @@ from greatfet import GreatFET
 class I2C:
     """Custom I2C Class for NXP LPC4330"""
 
+    # pylint: disable=unused-argument
     def __init__(self, *, frequency=100000):
         self._gf = GreatFET()
 
@@ -12,7 +13,6 @@ class I2C:
         """Perform an I2C Device Scan"""
         return [index for index, dev in enumerate(self._gf.i2c.scan()) if dev[0]]
 
-    # pylint: disable=unused-argument
     def writeto(self, address, buffer, *, start=0, end=None, stop=True):
         """Write data from the buffer to an address"""
         if end is None:
@@ -39,7 +39,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