Fix board detect

This commit is contained in:
Thomas Farstrike
2026-02-15 14:37:24 +01:00
parent c8ffb9d752
commit 4ab4e31de1
+7 -6
View File
@@ -110,13 +110,14 @@ def detect_board():
if single_address_i2c_scan(i2c0, 0x6B): # IMU (plus possibly the Communicator's LANA TNY at 0x38)
return "fri3d_2024"
print("odroid_go ?")
if check_pins(0, 13, 27, 39): # this matches too much (also fri3d_2024) so move towards the end
return "odroid_go"
import machine
if machine.unique_id()[0] == 0xdc: # prototype board had: dc:b4:d9:0b:7d:80
# or: if single_address_i2c_scan(i2c0, 0x6A): # IMU currently not installed on prototype board
return "fri3d_2026"
print("Fallback to fri3d_2026")
# default: if single_address_i2c_scan(i2c0, 0x6A): # IMU but currently not installed
return "fri3d_2026"
print("odroid_go ?")
#if check_pins(0, 13, 27, 39): # not good because it matches other boards (like fri3d_2024 and fri3d_2026)
return "odroid_go"
# EXECUTION STARTS HERE