Skip to content

Commit bdae9dd

Browse files
authored
Add RPi 3B+ to pins/data.py
Fixes gpiozero#626
1 parent 6ab5ad9 commit bdae9dd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

gpiozero/pins/data.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ def from_revision(cls, revision):
841841
# CCCC - Manufacturer (0=Sony, 1=Egoman, 2=Embest, 3=Sony Japan)
842842
# PPPP - Processor (0=2835, 1=2836, 2=2837)
843843
# TTTTTTTT - Type (0=A, 1=B, 2=A+, 3=B+, 4=2B, 5=Alpha (??), 6=CM,
844-
# 8=3B, 9=Zero, 10=CM3, 12=Zero W)
844+
# 8=3B, 9=Zero, 10=CM3, 12=Zero W, 13=3B+)
845845
# RRRR - Revision (0, 1, 2, etc.)
846846
revcode_memory = (revision & 0x700000) >> 20
847847
revcode_manufacturer = (revision & 0xf0000) >> 16
@@ -860,6 +860,7 @@ def from_revision(cls, revision):
860860
9: 'Zero',
861861
10: 'CM3',
862862
12: 'Zero W',
863+
13: '3B+',
863864
}.get(revcode_type, '???')
864865
if model in ('A', 'B'):
865866
pcb_revision = {
@@ -896,6 +897,7 @@ def from_revision(cls, revision):
896897
'Zero': '2015Q4' if pcb_revision == '1.2' else '2016Q2',
897898
'CM3': '2017Q1',
898899
'Zero W': '2017Q1',
900+
'3B+': '2018Q1',
899901
}.get(model, 'Unknown')
900902
storage = {
901903
'A': 'SD',
@@ -923,10 +925,12 @@ def from_revision(cls, revision):
923925
wifi = {
924926
'3B': True,
925927
'Zero W': True,
928+
'3B+': True,
926929
}.get(model, False)
927930
bluetooth = {
928931
'3B': True,
929932
'Zero W': True,
933+
'3B+': True,
930934
}.get(model, False)
931935
csi = {
932936
'Zero': 0 if pcb_revision == '1.0' else 1,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy