Skip to content

Commit 605b74f

Browse files
mcauserdpgeorge
authored andcommitted
esp32/boards: Fix spelling mistakes in comments for UM_xxx boards.
1 parent 9e65662 commit 605b74f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

ports/esp32/boards/UM_FEATHERS2/modules/feathers2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def toggle_led(state):
5050
l.value(not l.value())
5151

5252

53-
# Create ADC and set attenuation and return teh ambient light value from the onboard sensor
53+
# Create ADC and set attenuation and return the ambient light value from the onboard sensor
5454
def get_amb_light():
5555
adc = ADC(Pin(AMB_LIGHT))
5656
adc.atten(ADC.ATTN_11DB)
@@ -62,7 +62,7 @@ def get_amb_light():
6262
# prevent parasitic power from lighting the LED even with the LDO off, causing current use.
6363
# The DotStar is a beautiful LED, but parasitic power makes it a terrible choice for battery use :(
6464
def set_ldo2_power(state):
65-
"""Set the power for the on-board Dostar to allow no current draw when not needed."""
65+
"""Set the power for the on-board Dotstar to allow no current draw when not needed."""
6666
# Set the power pin to the inverse of state
6767
ldo2 = Pin(LDO2, Pin.OUT)
6868
ldo2.value(state)

ports/esp32/boards/UM_TINYPICO/modules/tinypico.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def get_battery_charging():
8080
# need to be able to cut power to it to minimise power consumption during deep sleep or with general battery powered use
8181
# to minimise unneeded battery drain
8282
def set_dotstar_power(state):
83-
"""Set the power for the on-board Dostar to allow no current draw when not needed."""
83+
"""Set the power for the on-board Dotstar to allow no current draw when not needed."""
8484
# Set the power pin to the inverse of state
8585
if state:
8686
Pin(DOTSTAR_PWR, Pin.OUT, None) # Break the PULL_HOLD on the pin

ports/esp32/boards/UM_TINYS2/modules/tinys2.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
# Helper functions
4040
def set_pixel_power(state):
41-
"""Enable or Disable power to the onboard NeoPixel to either show colour, or to reduce power fro deep sleep."""
41+
"""Enable or Disable power to the onboard NeoPixel to either show colour, or to reduce power for deep sleep."""
4242
Pin(RGB_PWR, Pin.OUT).value(state)
4343

4444

@@ -59,7 +59,7 @@ def get_vbus_present():
5959
return Pin(VBUS_SENSE, Pin.IN).value() == 1
6060

6161

62-
# Dotstar rainbow colour wheel
62+
# NeoPixel rainbow colour wheel
6363
def rgb_color_wheel(wheel_pos):
6464
"""Color wheel to allow for cycling through the rainbow of RGB colors."""
6565
wheel_pos = wheel_pos % 255
@@ -74,9 +74,9 @@ def rgb_color_wheel(wheel_pos):
7474
return wheel_pos * 3, 255 - wheel_pos * 3, 0
7575

7676

77-
# Go into deep sleep but shut down the APA first to save power
78-
# Use this if you want lowest deep sleep current
77+
# Go into deep sleep but shut down the RGB LED first to save power
78+
# Use this if you want lowest deep sleep current
7979
def go_deepsleep(t):
80-
"""Deep sleep helper that also powers down the on-board Dotstar."""
80+
"""Deep sleep helper that also powers down the on-board NeoPixel."""
8181
set_pixel_power(False)
8282
machine.deepsleep(t)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy