-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmyConfig.h
More file actions
65 lines (56 loc) · 1.73 KB
/
myConfig.h
File metadata and controls
65 lines (56 loc) · 1.73 KB
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
#ifndef MY_CONFIG_H
#define MY_CONFIG_H
#include <Arduino.h>
#define ENABLE_OTA
// Our configuration structure.
//
// Never use a JsonDocument to store the configuration!
// A JsonDocument is *not* a permanent storage; it's only a temporary storage
// used during the serialization phase. See:
// https://arduinojson.org/v6/faq/why-must-i-create-a-separate-config-object/
struct Config {
char syslog_server[64];
char device_name[64];
char ntp_server[64];
char timezone[64];
bool leading_zeros;
bool clever;
bool second_blinking;
byte brightness;
bool auto_brightness;
};
#define device_name_default "HalClock"
#define ntp_server_default "hu.pool.ntp.org"
#define timezone_default "Europe/Budapest"
#define syslog_server_default "192.168.0.6"
#define brightness_default 255
#define brightness_default_char "255"
#define second_blinking_default false
#define second_blinking_default_char "false"
#define clever_numbering_default true
#define clever_numbering_default_char "true"
#define leading_zeros_default true
#define leading_zeros_default_char "true"
#define auto_brightness_default true
#define auto_brightness_default_char "true"
#define auto_brightness_minimum_light 245
#define APPLICATION_NAME "HalClock"
/*
*/
#define SR_OE 15 // output enable (inverted)
/*
Data from the input serial shift register is placed in the output register
with a rising pulse on the storages resister clock (STCP).
*/
#define SR_RCLK 12 // storages resister clock (STCP)
/*
An eight bit shift register accpets data from the serial input (DS) on
each positive transition of the shift register clock (SHCP).
*/
#define SR_SRCLK 14 // shift register clock (SHCP)
/*
*/
#define SR_SER 13 // serial input (DS)
char* getAPName();
char* getAPPassword();
#endif