aboutsummaryrefslogtreecommitdiff
path: root/arduino_sketch/fuzzy_alarm_clock_esp32/config.h
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2023-05-01 16:22:52 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2023-05-01 16:22:52 +0200
commita5d9cb72b5ff351c239bb20c4a091fe42b892239 (patch)
tree3cf33d517a4df79d7146a9875f24bcfd8e82d78b /arduino_sketch/fuzzy_alarm_clock_esp32/config.h
parentcd6afd7cad53107069233adb208863393688de7d (diff)
ESP32 rewrite: ring an alarm until a button is pressed.HEADmaster
Diffstat (limited to 'arduino_sketch/fuzzy_alarm_clock_esp32/config.h')
-rw-r--r--arduino_sketch/fuzzy_alarm_clock_esp32/config.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/arduino_sketch/fuzzy_alarm_clock_esp32/config.h b/arduino_sketch/fuzzy_alarm_clock_esp32/config.h
index 1e505b2..ae8ca57 100644
--- a/arduino_sketch/fuzzy_alarm_clock_esp32/config.h
+++ b/arduino_sketch/fuzzy_alarm_clock_esp32/config.h
@@ -10,6 +10,20 @@
// See https://github.com/esp8266/Arduino/blob/master/cores/esp8266/TZ.h
#define TZ "CET-1CEST,M3.5.0,M10.5.0/3"
+// Alarms
+#define ALARM_PIN 1
+// Sound of the alarm: frequencies, and NFREQ should be the length of freq
+#define NFREQ 9
+int freq[] = { 255, 192, 128, 96, 64, 96, 128, 192, 255 };
+
+// Button
+#define BTN_PIN 2
+
+// RGB LED
+#define LED_R_PIN 7
+#define LED_G_PIN 8
+#define LED_B_PIN 10
+
// Create the file local_config.h in this directory and override all of the
// #defines you need
#include "local_config.h"