Skip to content

Commit b312524

Browse files
marcelpetrickdpgeorge
authored andcommitted
all: Correct various typos in comments and docs.
Non-functional changes only: - Fixed minor spelling mistakes in comments. - Corrected typos in user-facing strings. - No variables, logic, or functional code was modified. Signed-off-by: Marcel Petrick <mail@marcelpetrick.it>
1 parent 95fd713 commit b312524

File tree

27 files changed

+40
-40
lines changed

27 files changed

+40
-40
lines changed

micropython/aiorepl/aiorepl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ async def kbd_intr_task(exec_task, s):
7474
except asyncio.CancelledError:
7575
pass
7676
else:
77-
# Excute code snippet directly.
77+
# Execute code snippet directly.
7878
try:
7979
try:
8080
micropython.kbd_intr(3)

micropython/bluetooth/aioble/examples/l2cap_file_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# MIT license; Copyright (c) 2021 Jim Mussared
22

33
# This is a BLE file server, based very loosely on the Object Transfer Service
4-
# specification. It demonstrated transfering data over an L2CAP channel, as
4+
# specification. It demonstrated transferring data over an L2CAP channel, as
55
# well as using notifications and GATT writes on a characteristic.
66

77
# The server supports downloading and uploading files, as well as querying

micropython/drivers/display/lcd160cr/lcd160cr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __init__(self, connect=None, *, pwr=None, i2c=None, spi=None, i2c_addr=98):
5656
pwr(1)
5757
sleep_ms(10)
5858
# else:
59-
# alread have power
59+
# already have power
6060
# lets be optimistic...
6161

6262
# set connections

micropython/drivers/imu/bmi270/bmi270.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ def __init__(
504504
accel_scale=4,
505505
bmm_magnet=None,
506506
):
507-
"""Initalizes Gyro and Accelerometer.
507+
"""Initializes Gyro and Accelerometer.
508508
bus: IMU bus
509509
address: I2C address (in I2C mode).
510510
cs: SPI CS pin (in SPI mode).

micropython/drivers/imu/bmm150/bmm150.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def __init__(
6666
address=_DEFAULT_ADDR,
6767
magnet_odr=30,
6868
):
69-
"""Initalizes the Magnetometer.
69+
"""Initializes the Magnetometer.
7070
bus: IMU bus
7171
address: I2C address (in I2C mode).
7272
cs: SPI CS pin (in SPI mode).

micropython/drivers/imu/lsm6dsox/lsm6dsox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def __init__(
8989
accel_scale=4,
9090
ucf=None,
9191
):
92-
"""Initalizes Gyro and Accelerator.
92+
"""Initializes Gyro and Accelerator.
9393
accel_odr: (0, 1.6Hz, 3.33Hz, 6.66Hz, 12.5Hz, 26Hz, 52Hz, 104Hz, 208Hz, 416Hz, 888Hz)
9494
gyro_odr: (0, 1.6Hz, 3.33Hz, 6.66Hz, 12.5Hz, 26Hz, 52Hz, 104Hz, 208Hz, 416Hz, 888Hz)
9595
gyro_scale: (245dps, 500dps, 1000dps, 2000dps)

micropython/drivers/imu/lsm9ds1/lsm9ds1.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def __init__(
8181
magnet_odr=80,
8282
magnet_scale=4,
8383
):
84-
"""Initalizes Gyro, Accelerometer and Magnetometer.
84+
"""Initializes Gyro, Accelerometer and Magnetometer.
8585
bus: IMU bus
8686
address_imu: IMU I2C address.
8787
address_magnet: Magnetometer I2C address.
@@ -134,14 +134,14 @@ def __init__(
134134
mv[5] = 0x2 # ctrl9 - FIFO enabled
135135
self.bus.writeto_mem(self.address_imu, _CTRL_REG4_G, mv)
136136

137-
# fifo: use continous mode (overwrite old data if overflow)
137+
# fifo: use continuous mode (overwrite old data if overflow)
138138
self.bus.writeto_mem(self.address_imu, _FIFO_CTRL_REG, b"\x00")
139139
self.bus.writeto_mem(self.address_imu, _FIFO_CTRL_REG, b"\xc0")
140140

141141
# Configure Magnetometer
142142
mv[0] = 0x40 | (magnet_odr << 2) # ctrl1: high performance mode
143143
mv[1] = _MAGNET_SCALE.index(magnet_scale) << 5 # ctrl2: scale, normal mode, no reset
144-
mv[2] = 0x00 # ctrl3: continous conversion, no low power, I2C
144+
mv[2] = 0x00 # ctrl3: continuous conversion, no low power, I2C
145145
mv[3] = 0x08 # ctrl4: high performance z-axis
146146
mv[4] = 0x00 # ctr5: no fast read, no block update
147147
self.bus.writeto_mem(self.address_magnet, _CTRL_REG1_M, mv[:5])

micropython/lora/lora-sx126x/lora/sx126x.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ def calibrate_image(self):
501501

502502
self._cmd(">BH", _CMD_CALIBRATE_IMAGE, args)
503503

504-
# Can't find anythign in Datasheet about how long image calibration
504+
# Can't find anything in Datasheet about how long image calibration
505505
# takes or exactly how it signals completion. Assuming it will be
506506
# similar to _CMD_CALIBRATE.
507507
self._wait_not_busy(_CALIBRATE_TIMEOUT_US)

micropython/lora/lora/lora/modem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def __init__(self, ant_sw):
4747
self._bw_hz = 125000 # Reset value
4848
self._coding_rate = 5
4949
self._crc_en = True # use packet CRCs
50-
self._implicit_header = False # implict vs explicit header mode
50+
self._implicit_header = False # implicit vs explicit header mode
5151
self._preamble_len = 12
5252
self._coding_rate = 5
5353

micropython/senml/docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Welcome to the API documet site for the micro-python SenML library.
1+
Welcome to the API document site for the micro-python SenML library.
22

33
The following api sections are available:
44

0 commit comments

Comments
 (0)