Skip to content

Commit ab39e2a

Browse files
Pin documentation update for KFW
1 parent 4cb9257 commit ab39e2a

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

pydospins.py

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,21 @@
33

44
if implementation.name.upper() == "CIRCUITPYTHON":
55
import board
6-
elif implementation.name.upper() == "MICROPYTHON":
6+
if board.board_id = 'raspberry_pi_pico':
7+
try:
8+
import kfw_pico_board as board
9+
except:
10+
pass
11+
12+
try:
13+
import cyt_mpp_board as board
14+
except:
15+
pass
16+
elif board.board_id = 'unexpectedmaker_feathers2':
17+
try:
18+
import kfw_s2_board as board
19+
except:
20+
elif implementation.name.upper() == "MICROPYTHON":
721
from os import uname
822

923

@@ -61,9 +75,9 @@ def printPinAssignments():
6175
print("SD_COPI ",board.COPI)
6276
print("SD_CIPO ",board.CIPO)
6377
elif board.board_id == 'raspberry_pi_pico':
64-
print("SD_SCK ",board.GP10)
65-
print("SD_MOSI ",board.GP11)
66-
print("SD_MISO ",board.GP12)
78+
print("SD_SCK ",board.GP18)
79+
print("SD_MOSI ",board.GP19)
80+
print("SD_MISO ",board.GP16)
6781
elif 'D14' in dir(board):
6882
print("SD_SCK ",board.D14)
6983
print("SD_MOSI ",board.D15)

0 commit comments

Comments
 (0)