-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefines.h
74 lines (68 loc) · 1.87 KB
/
defines.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
64
65
66
67
68
69
70
71
72
73
74
#define PASSWORD "LampPassword"
#define HOSTNAME "SyncedLEDLight"
#define PIXEL_COUNT 80 // make sure to set this to the number of pixels in your strip
#define SSID_ADDR 0 // String[60]
#define WIFI_PASSWORD_ADDR (SSID_ADDR + sizeof(ssid)) // char[60]
#define BRIGHTNESS_ADDR (WIFI_PASSWORD_ADDR + sizeof(wifiPassword)) // int
#define BLYNK_SERVER_ADDR (BRIGHTNESS_ADDR + sizeof(brightness)) // char[60]
#define BLYNK_AUTH_ADDR (BLYNK_SERVER_ADDR + sizeof(blynkServer)) // char[60]
// Limit the power consumption. A full lit display can take up to 4 Amps.
// A value of 255 disabled the limit and allows all LEDs to be full brightness.
#define MAX_BRIGHTNESS 100
// The timezone to sync the date/time to, using NTP. For timezone to use, see TZ.h.
#define MY_TZ TZ_Europe_Amsterdam
// NTP server list to use for syncing time.
#define NTP_SERVERS "0.nl.pool.ntp.org", "1.nl.pool.ntp.org", "2.nl.pool.ntp.org"
#define CSS "<style>\
body {\
background: #fad7a0;\
color: #154360;\
padding: 20px;\
font-size: 2em;\
text-align: center;\
}\
div.container {\
display: inline-block;\
width: 90%;\
height: 90%;\
background: #f8c471;\
box-shadow: 15px 20px 20px #88888888;\
border-radius: 20px;\
padding: 2%;\
text-align: left;\
}\
h1 {\
margin-top: 0;\
margin-bottom: .1em;\
}\
input {\
width: 100%;\
border: 0;\
border-bottom: 2px solid grey;\
background: none;\
color: #154360;\
font-size: 1.2em;\
}\
input[type=\"range\"] {\
width: 100%;\
}\
input[type=\"submit\"] {\
background: #154360;\
color: #fad7a0;\
border: 0;\
border-radius: 5px;\
width: 40%;\
height: 10%;\
cursor: pointer;\
font-size: 1em;\
position: absolute;\
left: 30%;\
bottom: 20%;\
}\
div div {\
position: absolute;\
right: 2%;\
bottom: 2%;\
font-size: .6em;\
}\
</style>"