klingel_sender_nano_serial.ino
This commit is contained in:
@@ -14,7 +14,8 @@
|
||||
|
||||
const int ledPin = LED_BUILTIN;
|
||||
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;
|
||||
|
||||
@@ -36,7 +37,7 @@ void loop() {
|
||||
Serial.println("RING");
|
||||
digitalWrite(ledPin, HIGH);
|
||||
active = true;
|
||||
delay(250);
|
||||
delay(ring_delay);
|
||||
}
|
||||
else if (val == LOW) {
|
||||
Serial.print("flare (<");
|
||||
|
||||
Reference in New Issue
Block a user