klingel_sender_nano_serial.ino

This commit is contained in:
2023-10-04 16:47:39 +02:00
parent 56ea217f4c
commit 4a7a82c20a
@@ -14,7 +14,8 @@
const int ledPin = LED_BUILTIN; const int ledPin = LED_BUILTIN;
const int buttonPin = 2; // Button connected to D2 const int buttonPin = 2; // Button connected to D2
const int flare_threshold = 60; const int flare_threshold = 200;
const int ring_delay = 250;
bool active = false; bool active = false;
@@ -36,7 +37,7 @@ void loop() {
Serial.println("RING"); Serial.println("RING");
digitalWrite(ledPin, HIGH); digitalWrite(ledPin, HIGH);
active = true; active = true;
delay(250); delay(ring_delay);
} }
else if (val == LOW) { else if (val == LOW) {
Serial.print("flare (<"); Serial.print("flare (<");