you can use the internal pull-down resistor this way
void setup()
{
pinMode(button1, INPUT);
digitalWrite(button1, HIGH);
Serial.begin(31250);
}
Please use the # button to apply [ code] tags to code to make it more readable
you can use the internal pull-down resistor this way
void setup()
{
pinMode(button1, INPUT);
digitalWrite(button1, HIGH);
Serial.begin(31250);
}
Please use the # button to apply [ code] tags to code to make it more readable