// Button with a pull up resistor set up
int button1 = 8; //sets button to pin 8
void setup()
{
pinMode(button1,INPUT); //set button1 as input
digitalWrite(button1,HIGH); //enable pullups
}
void loop()
{
}
// Button with a pull up resistor set up
int button1 = 8; //sets button to pin 8
void setup()
{
pinMode(button1,INPUT); //set button1 as input
digitalWrite(button1,HIGH); //enable pullups
}
void loop()
{
}