]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Add P2_25 pin to fix error on PocketBeagle
authorDrew Fustini <drew@pdp7.com>
Sun, 31 Mar 2019 22:43:42 +0000 (23:43 +0100)
committerGitHub <noreply@github.com>
Sun, 31 Mar 2019 22:43:42 +0000 (23:43 +0100)
Add P2_25 pin to fix error on PocketBeagle.  This is the error that occurs without this fix:
```
Traceback (most recent call last):
  File "examples/bbb_digitalio.py", line 10, in <module>
    import board
  File "/usr/local/lib/python3.5/dist-packages/Adafruit_Blinka-1.2.9.dev5+gcbfa2eb.d20190330-py3.5.egg/board.py", line 59, in <module>
    from adafruit_blinka.board.beaglebone_pocketbeagle import *
  File "/usr/local/lib/python3.5/dist-packages/Adafruit_Blinka-1.2.9.dev5+gcbfa2eb.d20190330-py3.5.egg/adafruit_blinka/board/beaglebone_pocketbeagle.py", line 114, in <module>
    MOSI_1 = pin.P2_25
AttributeError: module 'adafruit_blinka.microcontroller.am335x.pin' has no attribute 'P2_25'
```
Refer to comments in PR #101

src/adafruit_blinka/microcontroller/am335x/pin.py

index b07ad0ffee2f4f462bfc6e3c04898a74ef6af364..71715e6afb53c2932b925ba05159bdc33a825b54 100644 (file)
@@ -110,7 +110,7 @@ P2_20 = Pin('P2_20')
 P2_22 = Pin('P2_22')
 
 P2_24 = Pin('P2_24')
 P2_22 = Pin('P2_22')
 
 P2_24 = Pin('P2_24')
-
+P2_25 = Pin('P2_25')
 P2_26 = Pin('P2_26')
 P2_27 = Pin('P2_27')
 P2_28 = Pin('P2_28')
 P2_26 = Pin('P2_26')
 P2_27 = Pin('P2_27')
 P2_28 = Pin('P2_28')