Hi, I need a little help
I'm trying to use a button in this pic with the wiring
But seems like everytime its in Off condition the output never goes 0. It will be 111100001111
The code here
const int buttonBL = 3;
int buttonBR = LOW;
void setup() {
Serial.begin(9600);
pinMode(buttonBL,INPUT);
}
void loop() {
if (digitalRead(buttonBL)==HIGH) Serial.print("1"); else Serial.print("0");
delay(100);
}
Teach me please
Thank you
