-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make SD cards optional to fix power leak on older boards
- Loading branch information
1 parent
a33e539
commit c1698a5
Showing
5 changed files
with
113 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#ifndef CONFIG_H | ||
#define CONFIG_H | ||
|
||
// Assign config values. | ||
const char* calendarUrl = "http://localhost:8080/calendar.png"; | ||
const char* calendarDailyRefreshTime = "09:00:00"; | ||
const int calendarRetries = 3; // number of times to retry draw/download | ||
|
||
// Wifi config. | ||
const char* wifiSSID = "XXXX"; | ||
const char* wifiPass = "XXXX"; | ||
const int wifiRetries = 6; // number of times to retry WiFi connection | ||
|
||
// NTP config. | ||
const char* ntpHost = | ||
"pool.ntp.org"; // the time server host (keep as pool.ntp.org if in doubt) | ||
const char* ntpTimezone = "Europe/Dublin"; | ||
|
||
// Remote logging config. | ||
bool mqttLoggerEnabled = | ||
false; // set to true for remote logging to a MQTT broker | ||
const char* mqttLoggerBroker = "localhost"; // the broker host | ||
const int mqttLoggerPort = 1883; | ||
const char* mqttLoggerClientID = "inkplate10-weather-client"; | ||
const char* mqttLoggerTopic = "mqtt/inkplate10-weather-client"; | ||
const int mqttLoggerRetries = 3; // number of times to retry MQTT connection | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters