-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.h.example
42 lines (35 loc) · 1.03 KB
/
config.h.example
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
// General config
#define KEY_NAME "Room Name"
#define KEY_NAME_CONFIG "CONFIG_" KEY_NAME
#define KEY_NAME_DATA "DATA_" KEY_NAME
#define KEY_NAME_LC "LASTCONNECTION_" KEY_NAME
#define LED_TYPE "SK6812"
#define LOCATION "DESK"
// NTP Client setup
#define NTP_OFFSET 60 * 60 // In seconds
#define NTP_INTERVAL 60 * 1000 // In miliseconds
#define NTP_ADDRESS "europe.pool.ntp.org"
WiFiUDP ntpUDP;
NTPClient timeClient(ntpUDP, NTP_ADDRESS, NTP_OFFSET, NTP_INTERVAL);
// FastLED
#define NUM_LEDS 72
#define DATA_PIN 3
#define BRIGHTNESS 128
// WiFi
#define WIFI_SSID "WiFi Name"
#define WIFI_PASS "WiFi Password"
WiFiClient redisConnection; // WiFi Client instance for redis
byte mac[6];
// Redis
#define REDIS_ADDR "192.168.0.2"
#define REDIS_PORT 6379
#define REDIS_PASS "PaSsWoRd123"
Redis* gRedis = nullptr;
// FastLED
CRGBW leds[NUM_LEDS];
CRGB *ledsRGB = (CRGB *) &leds[0];
const uint8_t brightness = BRIGHTNESS;
// Number of cycles on one boot.
int maxCycles = 1000;
// How many cycles to update the time.
int updateTimeCycle = 18;