From fb3a7c52bc31e6b0e2ed4ba3168b3152107ba7c8 Mon Sep 17 00:00:00 2001 From: dnssoftware <34219854+dnssoftware@users.noreply.github.com> Date: Thu, 28 May 2020 02:43:40 +1000 Subject: [PATCH] Update pin.py On beaglebone black, the spi devices are spidev0.0, spidev0.1, spidev1.0, spidev1.1 and the existing code tries to open up spidev2.0 when using SPI1. Renumbering fixes this. --- src/adafruit_blinka/microcontroller/am335x/pin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/adafruit_blinka/microcontroller/am335x/pin.py b/src/adafruit_blinka/microcontroller/am335x/pin.py index dbc0143..1553ff2 100644 --- a/src/adafruit_blinka/microcontroller/am335x/pin.py +++ b/src/adafruit_blinka/microcontroller/am335x/pin.py @@ -330,8 +330,8 @@ UART5_CTSn = Pin("UART5_CTSn") # ordered as spiId, sckId, mosiId, misoId spiPorts = ( - (1, SPI0_SCLK, SPI0_D1, SPI0_D0), - (2, SPI1_SCLK, SPI1_D1, SPI1_D0), + (0, SPI0_SCLK, SPI0_D1, SPI0_D0), + (1, SPI1_SCLK, SPI1_D1, SPI1_D0), ) # ordered as uartId, txId, rxId -- 2.49.0