Changed the button direction to output, which required the PINMODE to be changed. Because of how the button is configured (hardware) we have to use a pull-down instead of a pull-up resistor.
Changed the button direction to output, which required the PINMODE to be changed. Because of how the button is configured (hardware) we have to use a pull-down instead of a pull-up resistor.

Pieter-Dewachter/Microcontrollers