We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27b6b53 commit 2db9b4bCopy full SHA for 2db9b4b
internal_filesystem/lib/mpos/main.py
@@ -13,13 +13,12 @@
13
if sys.platform == "linux" or sys.platform == "darwin": # linux and macOS
14
board = "linux"
15
elif sys.platform == "esp32":
16
- import machine
17
from machine import Pin, I2C
18
- i2c0 = I2C(0, sda=machine.Pin(48), scl=machine.Pin(47))
+ i2c0 = I2C(0, sda=Pin(48), scl=Pin(47))
19
if i2c0.scan() == [21, 107]: # touch screen and IMU
20
board = "waveshare_esp32_s3_touch_lcd_2"
21
else:
22
- i2c0 = I2C(0, sda=machine.Pin(9), scl=machine.Pin(18))
+ i2c0 = I2C(0, sda=Pin(9), scl=Pin(18))
23
if i2c0.scan() == [107]: # only IMU
24
board = "fri3d_2024"
25
0 commit comments