Arduino Zero Pulldown Resistors [SOLVED]


On most Arduino boards, we can do something like this to activate the AVR’s internal pullup resistors:

pinMode(6, INPUT_PULLUP);

I am using an Arduino Zero, which uses the Atmel SAMD21, which has both pullup and pulldown resistors. So my question is, can I do this on the Arduino Zero?


If I try it, the syntax highlighting doesn’t recognize INPUT_PULLDOWN, but it compiles.

Thank you.

Ignore highlighting - it's just fluff.

I downloaded the Arduino SAMD core from GitHub, and confirmed that INPUT_PULLDOWN is indeed valid. It's defined in wiring_constants.h.

Now I just need to figure out where the keywords are defined for the Arduino IDE... :)