InputPin : Pin
Constructor
InputPin(int pinNumber);
Public methods
isPullUp
You can choose to use internal pull-up resistors for input, see details here
Set to true if you want to use pull-up resitor
void isPullUp(bool state);
Get current settings of pull-up input
bool isPullUp();
Important! You cannot change this setting after setup call, so you need to call this method in world_init
function
readDigital
int readDigital();
readAnalog
int readAnalog();