You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Fix board detect
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user