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 3919f04 commit 129775fCopy full SHA for 129775f
internal_filesystem/lib/mpos/main.py
@@ -15,11 +15,11 @@
15
elif sys.platform == "esp32":
16
from machine import Pin, I2C
17
i2c0 = I2C(0, sda=Pin(48), scl=Pin(47))
18
- if i2c0.scan() == [21, 107]: # touch screen and IMU
+ if {0x15, 0x6B} <= set(i2c0.scan()): # touch screen and IMU (at least, possibly more)
19
board = "waveshare_esp32_s3_touch_lcd_2"
20
else:
21
i2c0 = I2C(0, sda=Pin(9), scl=Pin(18))
22
- if i2c0.scan() == [107]: # only IMU
+ if {0x6B} <= set(i2c0.scan()): # IMU (plus possibly the Communicator's LANA TNY at 0x38)
23
board = "fri3d_2024"
24
25
print("Unable to identify board, defaulting...")
0 commit comments