Do the A-Star boards have internal pullup or pulldown resistors on the digital i/o pins?
I think I just answered my own question. The Arduino DigitalInputPullup example shows how to use the pinMode(INPUT_PULLUP) command to use the internal pullup resistors.
Hello.
The A-Star microcontrollers do not have physical pull-up or pull-down resistors on their digital I/O pins, but the ATmega chip on the A-Stars has internal pull-up resistors that you can access.
You are correct. You can use pinMode()
and set the mode parameter to INPUT_PULLUP
to enable the AVR’s internal pull-up resistor for that digital input pin. For more information, look at the pinMode() reference page on the Arduino website.
- Amanda
Thanks Amanda!