summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Causer <mcauser@gmail.com>2021-05-14 15:36:59 +1000
committerDamien George <damien@micropython.org>2021-05-14 22:26:29 +1000
commit605b74f390e1ce9acdbca32d0b3215d37b96852e (patch)
treeb84f48c6176506cb6eaa42385ddac72ac9eca59e
parent9e65662a11c37599299ba4ab9c3ddf0510306498 (diff)
esp32/boards: Fix spelling mistakes in comments for UM_xxx boards.
-rw-r--r--ports/esp32/boards/UM_FEATHERS2/modules/feathers2.py4
-rw-r--r--ports/esp32/boards/UM_TINYPICO/modules/tinypico.py2
-rw-r--r--ports/esp32/boards/UM_TINYS2/modules/tinys2.py10
3 files changed, 8 insertions, 8 deletions
diff --git a/ports/esp32/boards/UM_FEATHERS2/modules/feathers2.py b/ports/esp32/boards/UM_FEATHERS2/modules/feathers2.py
index 93c50a181..95e1f5268 100644
--- a/ports/esp32/boards/UM_FEATHERS2/modules/feathers2.py
+++ b/ports/esp32/boards/UM_FEATHERS2/modules/feathers2.py
@@ -50,7 +50,7 @@ def toggle_led(state):
l.value(not l.value())
-# Create ADC and set attenuation and return teh ambient light value from the onboard sensor
+# Create ADC and set attenuation and return the ambient light value from the onboard sensor
def get_amb_light():
adc = ADC(Pin(AMB_LIGHT))
adc.atten(ADC.ATTN_11DB)
@@ -62,7 +62,7 @@ def get_amb_light():
# prevent parasitic power from lighting the LED even with the LDO off, causing current use.
# The DotStar is a beautiful LED, but parasitic power makes it a terrible choice for battery use :(
def set_ldo2_power(state):
- """Set the power for the on-board Dostar to allow no current draw when not needed."""
+ """Set the power for the on-board Dotstar to allow no current draw when not needed."""
# Set the power pin to the inverse of state
ldo2 = Pin(LDO2, Pin.OUT)
ldo2.value(state)
diff --git a/ports/esp32/boards/UM_TINYPICO/modules/tinypico.py b/ports/esp32/boards/UM_TINYPICO/modules/tinypico.py
index 846e07960..04b274bb5 100644
--- a/ports/esp32/boards/UM_TINYPICO/modules/tinypico.py
+++ b/ports/esp32/boards/UM_TINYPICO/modules/tinypico.py
@@ -80,7 +80,7 @@ def get_battery_charging():
# need to be able to cut power to it to minimise power consumption during deep sleep or with general battery powered use
# to minimise unneeded battery drain
def set_dotstar_power(state):
- """Set the power for the on-board Dostar to allow no current draw when not needed."""
+ """Set the power for the on-board Dotstar to allow no current draw when not needed."""
# Set the power pin to the inverse of state
if state:
Pin(DOTSTAR_PWR, Pin.OUT, None) # Break the PULL_HOLD on the pin
diff --git a/ports/esp32/boards/UM_TINYS2/modules/tinys2.py b/ports/esp32/boards/UM_TINYS2/modules/tinys2.py
index ca59cb123..0a3eaf14d 100644
--- a/ports/esp32/boards/UM_TINYS2/modules/tinys2.py
+++ b/ports/esp32/boards/UM_TINYS2/modules/tinys2.py
@@ -38,7 +38,7 @@ 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 fro deep sleep."""
+ """Enable or Disable power to the onboard NeoPixel to either show colour, or to reduce power for deep sleep."""
Pin(RGB_PWR, Pin.OUT).value(state)
@@ -59,7 +59,7 @@ def get_vbus_present():
return Pin(VBUS_SENSE, Pin.IN).value() == 1
-# Dotstar rainbow colour wheel
+# NeoPixel rainbow colour wheel
def rgb_color_wheel(wheel_pos):
"""Color wheel to allow for cycling through the rainbow of RGB colors."""
wheel_pos = wheel_pos % 255
@@ -74,9 +74,9 @@ def rgb_color_wheel(wheel_pos):
return wheel_pos * 3, 255 - wheel_pos * 3, 0
-# Go into deep sleep but shut down the APA first to save power
-# Use this if you want lowest deep sleep current
+# Go into deep sleep but shut down the RGB LED first to save power
+# Use this if you want lowest deep sleep current
def go_deepsleep(t):
- """Deep sleep helper that also powers down the on-board Dotstar."""
+ """Deep sleep helper that also powers down the on-board NeoPixel."""
set_pixel_power(False)
machine.deepsleep(t)