![]() |
Speeduino
|
Pin translation functions. More...
#include <stdint.h>
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. | |
Pin translation functions.
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 |


Translate a pin number (0 - 22) to the relevant Ax (analog) pin reference.
This is required as some ARM chips do not have all analog pins in order (EG pin A15 != A14 + 1).
| rawPin |

