-
Notifications
You must be signed in to change notification settings - Fork 0
/
Config.h
41 lines (32 loc) · 951 Bytes
/
Config.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
/*
* Config file for the ESP8266 Tweet Search
*/
#ifndef CONFIG_H
#define CONFIG_H
static const char* WIFI_NETWORK = "";
static const char* WIFI_PASSWORD = "";
// Twitter GET request timeout
#define TWI_TIMEOUT 3000 // in msec
// NTP Server to use to set time
static const char* NTP_SERVER = "time.nist.gov";
// Timezone to use (number of hours behind UTC)
static const int TIMEZONE_DIFFERENCE = -8; // PST time
// Twitter API things
static const char CONSUMER_KEY[] = "";
static const char CONSUMER_SECRET[] = "";
static const char ACCESS_TOKEN[] = "";
static const char ACCESS_TOKEN_SECRET[] = "";
// Twitter search terms
static const std::string SEARCH_TERMS[] =
{
"#starwars",
"#cybersecurity",
"#malware"
};
// Number of tweets to display from each search term
#define TWEET_COUNT 5
// Constants for the SSD1306 OLED display
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
#define OLED_RESET -1 // OLED reset pin
#endif