|
26 | 26 | NODEMCU = "NODEMCU"
|
27 | 27 | ORANGE_PI_PC = "ORANGE_PI_PC"
|
28 | 28 |
|
29 |
| -RASPBERRY_PI_B = "RASPBERRY_PI_B" |
| 29 | +RASPBERRY_PI_B_REV1 = "RASPBERRY_PI_B_REV1" |
| 30 | +RASPBERRY_PI_B_REV2 = "RASPBERRY_PI_B_REV2" |
30 | 31 | RASPBERRY_PI_B_PLUS = "RASPBERRY_PI_B_PLUS"
|
31 | 32 | RASPBERRY_PI_A = "RASPBERRY_PI_A"
|
32 | 33 | RASPBERRY_PI_A_PLUS = "RASPBERRY_PI_A_PLUS"
|
|
40 | 41 | RASPBERRY_PI_3A_PLUS = "RASPBERRY_PI_3A_PLUS"
|
41 | 42 | # pylint: enable=bad-whitespace
|
42 | 43 |
|
| 44 | +_RASPBERRY_PI_40_PIN_IDS = ( |
| 45 | + RASPBERRY_PI_B_PLUS, |
| 46 | + RASPBERRY_PI_A_PLUS, |
| 47 | + RASPBERRY_PI_ZERO, |
| 48 | + RASPBERRY_PI_ZERO_W, |
| 49 | + RASPBERRY_PI_2B, |
| 50 | + RASPBERRY_PI_3B, |
| 51 | + RASPBERRY_PI_3B_PLUS, |
| 52 | + RASPBERRY_PI_3A_PLUS |
| 53 | +) |
| 54 | + |
43 | 55 | _BEAGLEBONE_IDS = (
|
44 | 56 | BEAGLEBONE,
|
45 | 57 | BEAGLEBONE_BLACK,
|
|
58 | 70 | OSD3358_SM_RED,
|
59 | 71 | )
|
60 | 72 |
|
61 |
| -_RASPBERRY_PI_40_PIN_IDS = ( |
62 |
| - RASPBERRY_PI_B_PLUS, |
63 |
| - RASPBERRY_PI_A_PLUS, |
64 |
| - RASPBERRY_PI_ZERO, |
65 |
| - RASPBERRY_PI_ZERO_W, |
66 |
| - RASPBERRY_PI_2B, |
67 |
| - RASPBERRY_PI_3B, |
68 |
| - RASPBERRY_PI_3B_PLUS, |
69 |
| - RASPBERRY_PI_3A_PLUS |
70 |
| -) |
71 |
| - |
72 | 73 | # BeagleBone eeprom board ids from:
|
73 | 74 | # https://github.com/beagleboard/image-builder
|
74 | 75 | # Thanks to zmatt on freenode #beagle for pointers.
|
|
138 | 139 | # https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md
|
139 | 140 |
|
140 | 141 | _PI_REV_CODES = {
|
141 |
| - RASPBERRY_PI_B: ('0002', '0003', '0004', '0005', '0006', '000d', '000e', '000f'), |
| 142 | + RASPBERRY_PI_B_REV1: ('0002', '0003'), |
| 143 | + RASPBERRY_PI_B_REV2: ('0005', '0006', '000d', '000e', '000f'), |
142 | 144 | RASPBERRY_PI_B_PLUS: ('0010', '0013', '900032'),
|
143 | 145 | RASPBERRY_PI_A: ('0007', '0008', '0009'),
|
144 | 146 | RASPBERRY_PI_A_PLUS: ('0012', '0015', '900021'),
|
|
0 commit comments