From: Ryan L Date: Sun, 24 Apr 2022 16:31:58 +0000 (+0100) Subject: Add SCK labels to SPI ports for compatiblity with libraries thatuse this rather than... X-Git-Tag: 8.23.0~1^2~34 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/90c669779d15187697c5863c16bdf2e2e26fd8f5 Add SCK labels to SPI ports for compatiblity with libraries thatuse this rather than SCLK. Additionally simplify access to the i2c bus by renaming the pins from 'SDA2' and 'SCL2' to 'SDA' and 'SCL' as realistically this is the only i2c port that is actually avaliable on the board --- diff --git a/src/adafruit_blinka/board/linksprite/pcduino2.py b/src/adafruit_blinka/board/linksprite/pcduino2.py index af210be..c7f6121 100644 --- a/src/adafruit_blinka/board/linksprite/pcduino2.py +++ b/src/adafruit_blinka/board/linksprite/pcduino2.py @@ -18,11 +18,12 @@ D10 = pin.PI10 D11 = pin.PI12 D12 = pin.PI13 D13 = pin.PI11 -SDA2 = pin.PB21 -SCL2 = pin.PB20 +SDA = pin.PB21 +SCL = pin.PB20 #P7 Header SCLK = D13 +SCK = SCLK MOSI = D11 MSIO = D12 CS = D10 @@ -30,6 +31,7 @@ CS = D10 #P6 Header SCLK2 = pin.PC20 +SCK2 = SCLK2 MOSI2 = pin.PC21 MSIO2 = pin.PC22 CS2 = pin.PC19