Skip to content

Commit 4dd7dca

Browse files
committed
Linting.
1 parent 3e07b2f commit 4dd7dca

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

CircuitPython_Essentials/CircuitPython_I2C_Scan.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""CircuitPython Essentials I2C Scan example"""
22
# If you run this and it seems to hang, try manually unlocking
33
# your I2C bus from the REPL with
4-
# >>> import board
5-
# >>> board.I2C().unlock()
4+
# >>> import board
5+
# >>> board.I2C().unlock()
66

77
import time
88
import board

CircuitPython_Essentials/I2C_Test_Script.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,5 @@ def get_unique_pins():
3131
for sda_pin in get_unique_pins():
3232
if scl_pin is sda_pin:
3333
continue
34-
else:
35-
if is_hardware_I2C(scl_pin, sda_pin):
36-
print("SCL pin:", scl_pin, "\t SDA pin:", sda_pin)
37-
else:
38-
pass
34+
if is_hardware_I2C(scl_pin, sda_pin):
35+
print("SCL pin:", scl_pin, "\t SDA pin:", sda_pin)

CircuitPython_Essentials/UART_Test_Script.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,5 @@ def get_unique_pins():
2929
for rx_pin in get_unique_pins():
3030
if rx_pin is tx_pin:
3131
continue
32-
else:
33-
if is_hardware_uart(tx_pin, rx_pin):
34-
print("RX pin:", rx_pin, "\t TX pin:", tx_pin)
35-
else:
36-
pass
32+
if is_hardware_uart(tx_pin, rx_pin):
33+
print("RX pin:", rx_pin, "\t TX pin:", tx_pin)

0 commit comments

Comments
 (0)