-
Notifications
You must be signed in to change notification settings - Fork 9
/
common.h
63 lines (50 loc) · 1.37 KB
/
common.h
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
* Common defines that you'll need to update.
*
*/
/* Google calendar */
#define GCALURL "https://script.google.com/macros/s/SOME-RANDOM-LONG-STRING/exec"
/* WiFi network defines */
// Your WiFi SSID name
#define WIFI_SSID "Your WIFFY SSID";
// Your WiFi SSID password
#define WIFI_PASSWD "Your WIFFY passowrd";
// Your clock hostname
#define WIFI_HOSTNAME "Clock";
/* Web server defines */
// Web server port
#define WWW_PORT 80
/* NTP defines */
// NTP server to use
#define NTP_SERVER 10,0,0,12
// NTP port to listen on
#define NTP_PORT 123
// Time between NTP sync fetches
#define NTP_SYNC 60
// Default timezone to use
#define TIMEZONE 10 // Straya
//#define TIMEZONE -5; // Eastern Standard Time (USA)
//#define TIMEZONE -4; // Eastern Daylight Time (USA)
//#define TIMEZONE -8; // Pacific Standard Time (USA)
//#define TIMEZONE -7; // Pacific Daylight Time (USA)
/* MP3 player GPIO pins */
#define SERIAL2_RXPIN 16
#define SERIAL2_TXPIN 17
#define BUSY_PIN 4
/* Buttons & LDR GPIO pins */
#define BUTTON1 D2
#define BUTTON2 D3
#define BUTTON3 D4
#define LDR A0
/* FireBeetle 24x8 LED hat GPIO pins */
#if defined( ESP_PLATFORM ) || defined( ARDUINO_ARCH_FIREBEETLE8266 ) //FireBeetle-ESP32 FireBeetle-ESP8266
#define FBD_DATA D6
#define FBD_CS D5
#define FBD_WR D7
//#define FBD_RD D8
#else
#define FBD_DATA 6
#define FBD_CS 5
#define FBD_WR 7
//#define FBD_RD 8
#endif