![]() |
Speeduino
|
Pin translation functions. More...

Go to the source code of this file.
Functions | |
| uint8_t | pinTranslate (uint8_t rawPin) |
| Translate between the pin list that appears in TS and the actual pin numbers. | |
| uint8_t | pinTranslateAnalog (uint8_t rawPin) |
| Translate a pin number (0 - 22) to the relevant Ax (analog) pin reference. | |
| pinNumbers_t | getPinMapping (uint8_t boardID) |
| Get the pin numbers for the relevant board, based on the boardID. | |
Pin translation functions.
| pinNumbers_t getPinMapping | ( | uint8_t | boardID | ) |
Get the pin numbers for the relevant board, based on the boardID.
The boardID is set in the tuning SW and is used to allow the same firmware to be used across different hardware configurations with different pin layouts.


Translate between the pin list that appears in TS and the actual pin numbers.
For the digital IO, this will simply return the same number as the rawPin value as those are mapped directly. For analog pins, it will translate them into the correct internal pin number.
| rawPin | High level pin number |
