Skip to content

InputPin

Damian Melamed edited this page Jun 17, 2021 · 3 revisions

InputPin

Description

With this object you can configure a pin as an input and configure it's operation mode.

Syntax

InputPin(port, pin)
InputPin(port, pin, mode) \

Arguments

  • 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

Methods

Clone this wiki locally