-
Notifications
You must be signed in to change notification settings - Fork 0
InputPin
Damian Melamed edited this page Jun 17, 2021
·
3 revisions
With this object you can configure a pin as an input and configure it's operation mode.
InputPin(port, pin)
InputPin(port, pin, mode) \
- port: The port of the pin. use defines PORTA, PORTB, PORTC
- pin: Pin number
-
Mode: mode of operation, use defines of the "InputPin" class.
- InputPin::ANALOG --> configures the pin as an analog input
- InputPin::FLOATING --> does not add a pull resistor
- InputPin::PULLUP --> adds an internal pull-up resitor to the input
- InputPin::PULLDOWN --> adds an internal pull-down resitor to the input