Arduino pro micro STOP button

In my example in the above video I soldered the button between pins 3 and GND because they are so close to eachother, if you use different pins make sure to make changes to the code. To get the button working add the following code at the top of the setup() function:

pinMode(3, INPUT_PULLUP);
if (digitalRead(3) == LOW){

If the button is pressed when plugged in the arduino will go into an infinite while loop, preventing any other code from running.

Leave a Reply