klingel_sender_nano_serial.ino
This commit is contained in:
@@ -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 (<");
|
||||||
|
|||||||
Reference in New Issue
Block a user