Skip to content

Commit 2db9b4b

Browse files
Simplify
1 parent 27b6b53 commit 2db9b4b

File tree

1 file changed

+2
-3
lines changed
  • internal_filesystem/lib/mpos

1 file changed

+2
-3
lines changed

internal_filesystem/lib/mpos/main.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,12 @@
1313
if sys.platform == "linux" or sys.platform == "darwin": # linux and macOS
1414
board = "linux"
1515
elif sys.platform == "esp32":
16-
import machine
1716
from machine import Pin, I2C
18-
i2c0 = I2C(0, sda=machine.Pin(48), scl=machine.Pin(47))
17+
i2c0 = I2C(0, sda=Pin(48), scl=Pin(47))
1918
if i2c0.scan() == [21, 107]: # touch screen and IMU
2019
board = "waveshare_esp32_s3_touch_lcd_2"
2120
else:
22-
i2c0 = I2C(0, sda=machine.Pin(9), scl=machine.Pin(18))
21+
i2c0 = I2C(0, sda=Pin(9), scl=Pin(18))
2322
if i2c0.scan() == [107]: # only IMU
2423
board = "fri3d_2024"
2524
else:

0 commit comments

Comments
 (0)