pins: Add arduino aliases for Adafruit Grand Central board

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2019-08-09 20:15:40 -04:00
parent 43ab8e7113
commit 8c5fc1688a
1 changed files with 22 additions and 0 deletions

View File

@ -60,6 +60,27 @@ Arduino_Due_analog = [
"PB19", "PB20" "PB19", "PB20"
] ]
Adafruit_GrandCentral = [
"PB25", "PB24", "PC18", "PC19", "PC20",
"PC21", "PD20", "PD21", "PB18", "PB2",
"PB22", "PB23", "PB0", "PB1", "PB16",
"PB17", "PC22", "PC23", "PB12", "PB13",
"PB20", "PB21", "PD12", "PA15", "PC17",
"PC16", "PA12", "PA13", "PA14", "PB19",
"PA23", "PA22", "PA21", "PA20", "PA19",
"PA18", "PA17", "PA16", "PB15", "PB14",
"PC13", "PC12", "PC15", "PC14", "PC11",
"PC10", "PC6", "PC7", "PC4", "PC5",
"PD11", "PD8", "PD9", "PD10", "PA2",
"PA5", "PB3", "PC0", "PC1", "PC2",
"PC3", "PB4", "PB5", "PB6", "PB7",
"PB8", "PB9", "PA4", "PA6", "PA7"
]
Adafruit_GrandCentral_analog = [
"PA2", "PA5", "PB3", "PC0", "PC1", "PC2", "PC3", "PB4", "PB5", "PB6", "PB7",
"PB8", "PB9", "PA4", "PA6", "PA7"
]
Arduino_from_mcu = { Arduino_from_mcu = {
"atmega168": (Arduino_standard, Arduino_analog_standard), "atmega168": (Arduino_standard, Arduino_analog_standard),
@ -69,6 +90,7 @@ Arduino_from_mcu = {
"atmega1280": (Arduino_mega, Arduino_analog_mega), "atmega1280": (Arduino_mega, Arduino_analog_mega),
"atmega2560": (Arduino_mega, Arduino_analog_mega), "atmega2560": (Arduino_mega, Arduino_analog_mega),
"sam3x8e": (Arduino_Due, Arduino_Due_analog), "sam3x8e": (Arduino_Due, Arduino_Due_analog),
"samd51p20a": (Adafruit_GrandCentral, Adafruit_GrandCentral_analog),
} }
def get_aliases_arduino(mcu): def get_aliases_arduino(mcu):