X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/blobdiff_plain/40b64d58a1a537ccc55e1c45fe6804b495c6e055..82ff2f40b52f57e3d5ac746ca965fdc026f38d9e:/src/adafruit_blinka/microcontroller/bcm283x/pin.py diff --git a/src/adafruit_blinka/microcontroller/bcm283x/pin.py b/src/adafruit_blinka/microcontroller/bcm283x/pin.py index 5b6ea24..3db76df 100644 --- a/src/adafruit_blinka/microcontroller/bcm283x/pin.py +++ b/src/adafruit_blinka/microcontroller/bcm283x/pin.py @@ -58,6 +58,10 @@ class Pin: else: return GPIO.input(self.id) +# Pi 1B rev1 only? +D0 = Pin(0) +D1 = Pin(1) + D2 = Pin(2) SDA = Pin(2) D3 = Pin(3) @@ -103,9 +107,31 @@ D24 = Pin(24) D25 = Pin(25) D26 = Pin(26) D27 = Pin(27) +D28 = Pin(28) +D29 = Pin(29) +D30 = Pin(30) +D31 = Pin(31) +D32 = Pin(32) +D33 = Pin(33) +D34 = Pin(34) +D35 = Pin(35) +D36 = Pin(36) +D37 = Pin(37) +D38 = Pin(38) +D39 = Pin(39) +D40 = Pin(40) +MISO_2 = Pin(40) +D41 = Pin(41) +MOSI_2 = Pin(41) +D42 = Pin(42) +SCLK_2 = Pin(42) +SCK_2 = Pin(43) +D43 = Pin(43) +D44 = Pin(44) +D45 = Pin(45) # ordered as spiId, sckId, mosiId, misoId -spiPorts = ((0, SCLK, MOSI, MISO), (1, SCLK_1, MOSI_1, MISO_1)) +spiPorts = ((0, SCLK, MOSI, MISO), (1, SCLK_1, MOSI_1, MISO_1), (2, SCLK_2, MOSI_2, MISO_2)) # ordered as uartId, txId, rxId uartPorts = ( @@ -113,6 +139,5 @@ uartPorts = ( ) i2cPorts = ( - (1, SCL, SDA), + (3, SCL, SDA), (1, SCL, SDA), (0, D1, D0), # both pi 1 and pi 2 i2c ports! ) -