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:
@@ -39,6 +39,7 @@ AMB_LIGHT = const(4)
|
||||
|
||||
# Helper functions
|
||||
|
||||
|
||||
# LED & Ambient Light Sensor control
|
||||
def set_led(state):
|
||||
l = Pin(LED, Pin.OUT)
|
||||
|
||||
@@ -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."""
|
||||
|
||||
@@ -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"""
|
||||
|
||||
@@ -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"""
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user