The pico requires that the function of the pin is defined. In Arduino, there is no such concept - however we need to define if the pin is input or output.
More...
#include <PicoPinFunction.h>
|
void | clear (pin_size_t pinNumber) |
| set gpio function to GPIO_FUNC_NULL
|
|
bool | isInput (pin_size_t pinNumber) |
| checks if the pin has been defined as input
|
|
bool | isModeDefined (pin_size_t pinNumber) |
| checks if the mode was defined for the pin
|
|
bool | isOutput (pin_size_t pinNumber) |
| checks if the pin has been defined as output
|
|
bool | isSetup (pin_size_t pinNumber) |
| checks if the setup has been done for the pin
|
|
PinMode | pinMode (pin_size_t pinNumber) |
| returns the pin mode
|
|
const char * | pinModeStr (pin_size_t pinNumber) |
| returns the PinMode as string
|
|
bool | setPinMode (pin_size_t pinNumber, PinMode pinMode) |
| defines the actual Arduino PinMode. Returns true if it needed to be changed
|
|
void | setSetup (pin_size_t pinNumber) |
| marks the pin setup as completed
|
|
void | usePin (pin_size_t pinNumber, PinFunctionEnum pinFunction, PinSetup *setup=nullptr) |
| setup Pico pin init function bysed on functionality
|
|
|
bool | adc_init_flag = false |
|
int | current_adc |
|
PinInfo * | pinInfo |
|
The pico requires that the function of the pin is defined. In Arduino, there is no such concept - however we need to define if the pin is input or output.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
The documentation for this class was generated from the following file: