top: Update Python formatting to black "2023 stable style".

See https://black.readthedocs.io/en/stable/the_black_code_style/index.html

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
Jim Mussared
2023-02-02 11:51:48 +11:00
parent fe2a8332ff
commit 8b27482692
75 changed files with 208 additions and 123 deletions

View File

@@ -39,6 +39,7 @@ AMB_LIGHT = const(4)
# Helper functions
# LED & Ambient Light Sensor control
def set_led(state):
l = Pin(LED, Pin.OUT)

View File

@@ -38,6 +38,7 @@ I2C_SCL = const(9)
DAC1 = const(17)
DAC2 = const(18)
# Helper functions
def set_pixel_power(state):
"""Enable or Disable power to the onboard NeoPixel to either show colour, or to reduce power for deep sleep."""

View File

@@ -32,6 +32,7 @@ I2C_SCL = const(9)
# Helper functions
# LED & Ambient Light Sensor control
def led_set(state):
"""Set the state of the BLUE LED on IO13"""

View File

@@ -28,6 +28,7 @@ SPI_CLK = const(36)
I2C_SDA = const(8)
I2C_SCL = const(9)
# Helper functions
def set_ldo2_power(state):
"""Enable or Disable power to the second LDO"""

View File

@@ -39,6 +39,7 @@ DAC2 = const(26)
# Helper functions
# Get a *rough* estimate of the current battery voltage
# If the battery is not present, the charge IC will still report it's trying to charge at X voltage
# so it will still show a voltage.

View File

@@ -28,6 +28,7 @@ SPI_CLK = const(36)
I2C_SDA = const(8)
I2C_SCL = const(9)
# Helper functions
def set_pixel_power(state):
"""Enable or Disable power to the onboard NeoPixel to either show colour, or to reduce power for deep sleep."""