aboutsummaryrefslogtreecommitdiff
path: root/arduino_sketch/fuzzy_alarm_clock_esp32/config.h
blob: ae8ca577c95c9fd9128ee493f71da9a0e9188bdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#define WIFI_SSID ""
#define WIFI_PASS ""

#define DEBUG 1

#define NTP_SERV_1 "pool.ntp.org"
#define NTP_SERV_2 "time.nist.gov"

// TimeZone rule for Europe/Rome including daylight adjustment rules (optional)
// 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"