how can i do a digitalWrite to a pin that ive set as an input?
You just do it and it enables the internal pull up resistor - that's how the chip works.
Just run your code to test the button.
how can i do a digitalWrite to a pin that ive set as an input?
You just do it and it enables the internal pull up resistor - that's how the chip works.
Just run your code to test the button.