Skip to content

Commit eca53dd

Browse files
authored
Merge pull request #28 from ladyada/master
add raspi 4b
2 parents 9e224f3 + 87e659a commit eca53dd

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

adafruit_platformdetect/board.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
RASPBERRY_PI_3B_PLUS = "RASPBERRY_PI_3B_PLUS"
5353
RASPBERRY_PI_CM3 = "RASPBERRY_PI_CM3"
5454
RASPBERRY_PI_3A_PLUS = "RASPBERRY_PI_3A_PLUS"
55+
RASPBERRY_PI_4B = "RASPBERRY_PI_4B"
5556

5657
ODROID_C1 = "ODROID_C1"
5758
ODROID_C1_PLUS = "ODROID_C1_PLUS"
@@ -86,7 +87,8 @@
8687
RASPBERRY_PI_2B,
8788
RASPBERRY_PI_3B,
8889
RASPBERRY_PI_3B_PLUS,
89-
RASPBERRY_PI_3A_PLUS
90+
RASPBERRY_PI_3A_PLUS,
91+
RASPBERRY_PI_4B
9092
)
9193

9294
_ODROID_40_PIN_IDS = (
@@ -249,6 +251,10 @@
249251
'9020e0',
250252
'19020e0', '29020e0', # warranty bits
251253
),
254+
RASPBERRY_PI_4B: (
255+
'c03111',
256+
'1c03111', '2c03111', # warranty bits
257+
),
252258
}
253259

254260
class Board:

bin/detect.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
print("Is this a DragonBoard 410c?", detector.board.DRAGONBOARD_410C)
1212
print("Is this a Pi 3B+?", detector.board.RASPBERRY_PI_3B_PLUS)
13+
print("Is this a Pi 4B?", detector.board.RASPBERRY_PI_4B)
1314
print("Is this a 40-pin Raspberry Pi?", detector.board.any_raspberry_pi_40_pin)
1415
print("Is this a BBB?", detector.board.BEAGLEBONE_BLACK)
1516
print("Is this a Giant Board?", detector.board.GIANT_BOARD)

0 commit comments

Comments
 (0)