From 0179800e8c53f610a349cc8e98fda554bf6ed195 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Sun, 8 Feb 2026 19:39:28 +0100 Subject: [PATCH] Fix board detect order --- internal_filesystem/lib/mpos/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal_filesystem/lib/mpos/main.py b/internal_filesystem/lib/mpos/main.py index 78b10704..df169035 100644 --- a/internal_filesystem/lib/mpos/main.py +++ b/internal_filesystem/lib/mpos/main.py @@ -57,14 +57,14 @@ def detect_board(): elif sys.platform == "esp32": from machine import Pin, I2C - i2c0 = I2C(0, sda=Pin(48), scl=Pin(47)) - if single_address_i2c_scan(i2c0, 0x15) and single_address_i2c_scan(i2c0, 0x6B): # CST816S touch screen and IMU - return "waveshare_esp32_s3_touch_lcd_2" - i2c0 = I2C(0, sda=Pin(39), scl=Pin(38)) if single_address_i2c_scan(i2c0, 0x14) or single_address_i2c_scan(i2c0, 0x5D): # "ghost" or real GT911 touch screen return "matouch_esp32_s3_2_8" + i2c0 = I2C(0, sda=Pin(48), scl=Pin(47)) # IO48 is floating on matouch and therefore, using that for I2C will find many devices, so do this after matouch_esp32_s3_2_8 + if single_address_i2c_scan(i2c0, 0x15) and single_address_i2c_scan(i2c0, 0x6B): # CST816S touch screen and IMU + return "waveshare_esp32_s3_touch_lcd_2" + i2c0 = I2C(0, sda=Pin(9), scl=Pin(18)) if single_address_i2c_scan(i2c0, 0x6B): # IMU (plus possibly the Communicator's LANA TNY at 0x38) return "fri3d_2024"