Hi all.
Sorry for my bad english, i speak french.
Today i wan't to send message when a button is pressed but if i use the sketch:
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(2, INPUT);
}
void loop() {
// put your main code here, to run repeatedly
if (digitalRead(2) == HIGH) {
Serial.println("1");
}
}
In the serial i have 20-30x "1"
I want to have just one "1", what can i do plz ?