|
25 | 25 |
|
26 | 26 | detector = adafruit_platformdetect.Detector()
|
27 | 27 |
|
| 28 | +print("Board Detection Test") |
| 29 | +print() |
| 30 | +print("Check that the Chip and Board IDs match your board and that this it is") |
| 31 | +print("correctly detecting whether or not it is a Linux board.") |
| 32 | +print() |
28 | 33 | print("Chip id: ", detector.chip.id)
|
29 | 34 | print("Board id: ", detector.board.id)
|
30 | 35 | print()
|
| 36 | +print("Linux Detection") |
| 37 | +print("---------------") |
| 38 | +print("Is this an embedded Linux system?", detector.board.any_embedded_linux) |
| 39 | +print() |
| 40 | +print("Raspberry Pi Boards") |
| 41 | +print("-------------------") |
| 42 | +if detector.board.any_raspberry_pi: |
| 43 | + print("Raspberry Pi detected.") |
| 44 | +print("Is this a Pi 3B+?", detector.board.RASPBERRY_PI_3B_PLUS) |
| 45 | +print("Is this a Pi 4B?", detector.board.RASPBERRY_PI_4B) |
| 46 | +print("Is this a 40-pin Raspberry Pi?", detector.board.any_raspberry_pi_40_pin) |
| 47 | +print("Is this a Raspberry Pi Compute Module?", detector.board.any_raspberry_pi_cm) |
| 48 | +print() |
31 | 49 |
|
| 50 | +print("Other Boards") |
| 51 | +print("-------------------") |
32 | 52 | print(
|
33 | 53 | "Is this a Siemens Simatic IOT2000 Gateway?",
|
34 | 54 | detector.board.any_siemens_simatic_iot2000,
|
35 | 55 | )
|
36 |
| -print("Is this a DragonBoard 410c?", detector.board.DRAGONBOARD_410C) |
37 |
| -print("Is this a Pi 3B+?", detector.board.RASPBERRY_PI_3B_PLUS) |
38 |
| -print("Is this a Pi 4B?", detector.board.RASPBERRY_PI_4B) |
39 |
| -print("Is this a 40-pin Raspberry Pi?", detector.board.any_raspberry_pi_40_pin) |
40 |
| -print("Is this a Raspberry Pi Compute Module?", detector.board.any_raspberry_pi_cm) |
41 |
| -print("Is this a BeagleBone Board?", detector.board.any_beaglebone) |
42 |
| -print("Is this a Giant Board?", detector.board.GIANT_BOARD) |
43 |
| -print("Is this a Coral Dev Board?", detector.board.CORAL_EDGE_TPU_DEV) |
44 |
| -print("Is this a Coral Dev Board Mini?", detector.board.CORAL_EDGE_TPU_DEV_MINI) |
45 |
| -print("Is this a MaaXBoard?", detector.board.MAAXBOARD) |
46 |
| -print("Is this a MaaXBoard Mini?", detector.board.MAAXBOARD_MINI) |
47 |
| -print("Is this a SiFive Unleashed? ", detector.board.SIFIVE_UNLEASHED) |
48 |
| -print("Is this a PYNQ Board?", detector.board.PYNQ_Z1 | detector.board.PYNQ_Z2) |
| 56 | +print("Is this a 96boards board?", detector.board.any_96boards) |
| 57 | +print("Is this a BeagleBone board?", detector.board.any_beaglebone) |
| 58 | +print("Is this a Giant board?", detector.board.any_giant_board) |
| 59 | +print("Is this a Coral Dev board?", detector.board.any_coral_board) |
| 60 | +print("Is this a MaaXBoard?", detector.board.any_maaxboard) |
| 61 | +print("Is this a SiFive board? ", detector.board.any_sifive_board) |
| 62 | +print("Is this a PYNQ board?", detector.board.any_pynq_board) |
49 | 63 | print("Is this a Rock Pi board?", detector.board.any_rock_pi_board)
|
50 | 64 | print("Is this a NanoPi board?", detector.board.any_nanopi)
|
51 |
| -print("Is this a Khadas VIM3 board?", detector.board.KHADAS_VIM3) |
| 65 | +print("Is this a Khadas VIM3 board?", detector.board.khadas_vim3_40_pin) |
52 | 66 | print("Is this a Clockwork Pi board?", detector.board.any_clockwork_pi_board)
|
53 |
| -print("Is this an embedded Linux system?", detector.board.any_embedded_linux) |
54 |
| -print("Is this a generic Linux PC?", detector.board.GENERIC_LINUX_PC) |
55 |
| -print("Is this a UDOO Bolt?", detector.board.UDOO_BOLT) |
56 |
| -print("Is this a ODYSSEY X86YJ4105?", detector.board.ODYSSEY_X86J4105) |
57 |
| -print("Is this an ASUS Tinker Board?", detector.board.ASUS_TINKER_BOARD) |
58 |
| -print("Is this an STM32MP1 Board?", detector.board.any_stm32mp1) |
| 67 | +print("Is this a Seeed Board?", detector.board.any_seeed_board) |
| 68 | +print("Is this a UDOO board?", detector.board.any_udoo_board) |
| 69 | +print("Is this an ASUS Tinker board?", detector.board.any_asus_tinker_board) |
| 70 | +print("Is this an STM32MP1 board?", detector.board.any_stm32mp1) |
| 71 | +print("Is this a generic Linux PC?", detector.board.generic_linux) |
59 | 72 | print(
|
60 |
| - "Is this an OS environment variable special case?", |
61 |
| - detector.board.FTDI_FT232H |
62 |
| - | detector.board.FTDI_FT2232H |
63 |
| - | detector.board.MICROCHIP_MCP2221 |
64 |
| - | detector.board.BINHO_NOVA |
65 |
| - | detector.board.GREATFET_ONE |
66 |
| - | detector.board.PICO_U2IF |
67 |
| - | detector.board.FEATHER_U2IF |
68 |
| - | detector.board.ITSYBITY_U2IF |
69 |
| - | detector.board.MACROPAD_U2IF |
70 |
| - | detector.board.QTPY_U2IF |
71 |
| - | detector.board.QT2040_TRINKEY_U2IF, |
| 73 | + "Is this an OS environment variable special case?", detector.board.os_environ_board |
72 | 74 | )
|
73 | 75 |
|
74 |
| -if detector.board.any_raspberry_pi: |
75 |
| - print("Raspberry Pi detected.") |
76 |
| - |
77 | 76 | if detector.board.any_jetson_board:
|
78 | 77 | print("Jetson platform detected.")
|
79 | 78 |
|
|
89 | 88 | if detector.board.any_odroid_40_pin:
|
90 | 89 | print("Odroid detected.")
|
91 | 90 |
|
92 |
| -if detector.board.khadas_vim3_40_pin: |
93 |
| - print("Khadas VIM3 detected.") |
94 |
| - |
95 | 91 | if detector.board.any_onion_omega_board:
|
96 | 92 | print("Onion Omega detected.")
|
97 | 93 |
|
|
101 | 97 | if detector.board.any_rock_pi_board:
|
102 | 98 | print("Rock Pi device detected.")
|
103 | 99 |
|
104 |
| -if detector.board.any_clockwork_pi: |
| 100 | +if detector.board.any_clockwork_pi_board: |
105 | 101 | print("Clockwork Pi device detected.")
|
106 | 102 |
|
107 | 103 | if detector.board.any_asus_tinker_board:
|
|
0 commit comments