void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(2, INPUT_PULLUP);
}
void loop() {
// put your main code here, to run repeatedly:
bool a = digitalRead(2);
Serial.println(a);
}
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(2, INPUT_PULLUP);
}
void loop() {
// put your main code here, to run repeatedly:
bool a = digitalRead(2);
Serial.println(a);
}