]> Repositories - Adafruit_Blinka-hackapet.git/blobdiff - src/adafruit_blinka/microcontroller/nxp_lpc4330/uart.py
Black formatted
[Adafruit_Blinka-hackapet.git] / src / adafruit_blinka / microcontroller / nxp_lpc4330 / uart.py
index b791269653b5e8de28fd7aafc55df7b8296d093e..16f18737e83cccd96ede299decbe0b2ba1b69768 100644 (file)
@@ -2,13 +2,14 @@
 from greatfet import GreatFET
 from greatfet.interfaces.uart import UART as _UART
 
+
 class UART:
     """Custom UART Class for NXP LPC4330"""
 
-    PARITY_NONE          = 0
-    PARITY_ODD           = 1
-    PARITY_EVEN          = 2
-    PARITY_STUCK_AT_ONE  = 3
+    PARITY_NONE = 0
+    PARITY_ODD = 1
+    PARITY_EVEN = 2
+    PARITY_STUCK_AT_ONE = 3
     PARITY_STUCK_AT_ZERO = 4
 
     # pylint: disable=too-many-arguments
@@ -24,8 +25,15 @@ class UART:
         flow=None,
     ):
         self._gf = GreatFET()
-        self._uart = _UART(self._gf, baud=baudrate, data_bits=bits, stop_bits=stop, parity=parity, uart_number=portid)
-        
+        self._uart = _UART(
+            self._gf,
+            baud=baudrate,
+            data_bits=bits,
+            stop_bits=stop,
+            parity=parity,
+            uart_number=portid,
+        )
+
         if flow is not None:  # default None
             raise NotImplementedError(
                 "Parameter '{}' unsupported on GreatFET One".format("flow")