Skip to content

Commit 698f519

Browse files
committed
chore: Fix spelling and typos in comments and docstring.
Spelling preferences based on codespell configuration. Signed-off-by: Jos Verlinde <Jos.Verlinde@Microsoft.com>
1 parent b056c08 commit 698f519

File tree

32 files changed

+48
-47
lines changed

32 files changed

+48
-47
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/aioble/central.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ async def _connect(
119119
_connecting.add(device)
120120

121121
# Event will be set in the connected IRQ, and then later
122-
# re-used to notify disconnection.
122+
# reused to notify disconnection.
123123
connection._event = connection._event or asyncio.ThreadSafeFlag()
124124

125125
try:

micropython/bluetooth/aioble/aioble/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ async def read(self, timeout_ms=1000):
244244
self._register_with_connection()
245245
# This will be set by the done IRQ.
246246
self._read_status = None
247-
# This will be set by the result and done IRQs. Re-use if possible.
247+
# This will be set by the result and done IRQs. Reuse if possible.
248248
self._read_event = self._read_event or asyncio.ThreadSafeFlag()
249249

250250
# Issue the read.

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
@@ -502,7 +502,7 @@ def __init__(
502502
accel_scale=4,
503503
bmm_magnet=None,
504504
):
505-
"""Initalizes Gyro and Accelerometer.
505+
"""Initializes Gyro and Accelerometer.
506506
bus: IMU bus
507507
address: I2C address (in I2C mode).
508508
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
@@ -88,7 +88,7 @@ def __init__(
8888
accel_scale=4,
8989
ucf=None,
9090
):
91-
"""Initalizes Gyro and Accelerator.
91+
"""Initializes Gyro and Accelerator.
9292
accel_odr: (0, 1.6Hz, 3.33Hz, 6.66Hz, 12.5Hz, 26Hz, 52Hz, 104Hz, 208Hz, 416Hz, 888Hz)
9393
gyro_odr: (0, 1.6Hz, 3.33Hz, 6.66Hz, 12.5Hz, 26Hz, 52Hz, 104Hz, 208Hz, 416Hz, 888Hz)
9494
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/espflash/example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
esp = espflash.ESPFlash(reset, gpio0, uart)
1414
# Enter bootloader download mode, at 115200
1515
esp.bootloader()
16-
# Can now chage to higher/lower baudrate
16+
# Can now change to higher/lower baudrate
1717
esp.set_baudrate(921600)
1818
# Must call this first before any flash functions.
1919
esp.flash_attach()

0 commit comments

Comments
 (0)