From: satmandu Date: Sat, 8 Jun 2019 01:39:42 +0000 (-0400) Subject: Allows Raspberry Pi boards on arm64 to work w/ BLINKA_FORCEBOARD X-Git-Tag: 2.1.2^2 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/7518159b471b90574cc355f4841ee1a9ec7cd13e Allows Raspberry Pi boards on arm64 to work w/ BLINKA_FORCEBOARD Fixes issue in https://github.com/adafruit/Adafruit_Blinka/issues/130 for RPI boards running ubuntu/arm64 if using, for instance BLINKA_FORCEBOARD=RASPBERRY_PI_3B_PLUS and BLINKA_FORCECHIP=BCM2XXX to bypass board detection failure. --- diff --git a/src/busio.py b/src/busio.py index 0928b87..0c38d1e 100755 --- a/src/busio.py +++ b/src/busio.py @@ -90,7 +90,7 @@ class SPI(Lockable): format((clock, MOSI, MISO), spiPorts)) def configure(self, baudrate=100000, polarity=0, phase=0, bits=8): - if detector.board.any_raspberry_pi: + if detector.board.any_raspberry_pi or detector.board.any_raspberry_pi_40_pin: from adafruit_blinka.microcontroller.bcm283x.pin import Pin from adafruit_blinka.microcontroller.generic_linux.spi import SPI as _SPI elif detector.board.any_beaglebone: