Created Wed, 19 Sep 2018 18:07:52 +0000 by db-electronics
Wed, 19 Sep 2018 18:07:52 +0000
Hi all,
I'm searching through the board_defs.h file in variants/UBW_MX7 for all of the pin numbers on the UBW32 boards. There are "some" pin numbers listed here but it doesn't seem exhaustive, or at least nothing as exhaustive as what can be found on the chipkit.net board's pin tables (https://chipkit.net/wiki/index.php?title=ChipKIT_Pro_MX7#Pinout_Table).
So to summarize, are their pin number tables/files available for UBW32 boards?
Wed, 19 Sep 2018 23:33:30 +0000
The pins are defined in Board_Data.c, not Board_Defs.h
It looks like, rather bizarrely, that board has every possible pin in every possible port, whether it actually exists or not, defined in the tables.
Port A occupies pins 0-15, B occupies 16-31, C is 32-47, etc.
A few pins have some macros defined for easy usage - mainly since they are required for proper operation of the core (such as the PIN_OCx and PIN_INTx definitions) or because they are our "standard" definitions (like PIN_LED1). We do not by default name all the pins in such a way, since people just work with the pin numbers in the Arduino world.