Skip to content

Commit 933b280

Browse files
authored
Merge pull request #124 from PTS93/patch-1
Add support for Raspberry Pi CM4
2 parents fb283c4 + 3a00e32 commit 933b280

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

adafruit_platformdetect/constants/boards.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
RASPBERRY_PI_4B = "RASPBERRY_PI_4B"
8282
RASPBERRY_PI_AVNET_IIOT_GW = "RASPBERY_PI_AVNET_IIOT_GW"
8383
RASPBERRY_PI_400 = "RASPBERRY_PI_400"
84+
RASPBERRY_PI_CM4 = "RASPBERRY_PI_CM4"
8485

8586
ODROID_C1 = "ODROID_C1"
8687
ODROID_C1_PLUS = "ODROID_C1_PLUS"
@@ -207,7 +208,7 @@
207208
RASPBERRY_PI_400,
208209
)
209210

210-
_RASPBERRY_PI_CM_IDS = (RASPBERRY_PI_CM1, RASPBERRY_PI_CM3, RASPBERRY_PI_CM3_PLUS)
211+
_RASPBERRY_PI_CM_IDS = (RASPBERRY_PI_CM1, RASPBERRY_PI_CM3, RASPBERRY_PI_CM3_PLUS, RASPBERRY_PI_CM4)
211212

212213
_ODROID_40_PIN_IDS = (
213214
ODROID_C1,
@@ -403,6 +404,7 @@
403404
"2c03112",
404405
),
405406
RASPBERRY_PI_400: ("c03130",),
407+
RASPBERRY_PI_CM4: ("b03140",),
406408
}
407409

408410
# Onion omega boards

0 commit comments

Comments
 (0)