Skip to content

Commit 6cf52c7

Browse files
authored
Fixed the default number of LED panels
Put it back to 4 instead of 8
1 parent 3ec2fff commit 6cf52c7

File tree

1 file changed

+113
-113
lines changed

1 file changed

+113
-113
lines changed

marquee/Settings.h

+113-113
Original file line numberDiff line numberDiff line change
@@ -1,114 +1,114 @@
1-
/** The MIT License (MIT)
2-
3-
Copyright (c) 2018 David Payne
4-
5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
11-
12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
22-
*/
23-
24-
/******************************************************************************
25-
* This is designed for the Wemos D1 ESP8266
26-
* Wemos D1 Mini: https://amzn.to/2qLyKJd
27-
* MAX7219 Dot Matrix Module 4-in-1 Display For Arduino
28-
* Matrix Display: https://amzn.to/2HtnQlD
29-
******************************************************************************/
30-
/******************************************************************************
31-
* NOTE: The settings here are the default settings for the first loading.
32-
* After loading you will manage changes to the settings via the Web Interface.
33-
* If you want to change settings again in the settings.h, you will need to
34-
* erase the file system on the Wemos or use the “Reset Settings” option in
35-
* the Web Interface.
36-
******************************************************************************/
37-
38-
#include <ESP8266WiFi.h>
39-
#include <ArduinoJson.h>
40-
#include <ESP8266WebServer.h>
41-
#include <ESP8266HTTPUpdateServer.h>
42-
#include <WiFiManager.h>
43-
#include <ESP8266mDNS.h>
44-
#include <ArduinoOTA.h>
45-
#include "FS.h"
46-
#include <SPI.h>
47-
#include <Adafruit_GFX.h>
48-
#include <Max72xxPanel.h>
49-
#include <pgmspace.h>
50-
#include "OpenWeatherMapClient.h"
51-
#include "GeoNamesClient.h"
52-
#include "TimeClient.h" // Using updated lib by Qrome
53-
#include "NewsApiClient.h"
54-
#include "OctoPrintClient.h"
55-
#include "AdviceSlipClient.h"
56-
#include "BitcoinApiClient.h"
57-
58-
//******************************
59-
// Start Settings
60-
//******************************
61-
62-
String APIKEY = ""; // Your API Key from http://openweathermap.org/
63-
// Default City Location (use http://openweathermap.org/find to find city ID)
64-
int CityIDs[] = { 5304391 }; //Only USE ONE for weather marquee
65-
String marqueeMessage = "";
66-
boolean IS_METRIC = false; // false = Imperial and true = Metric
67-
boolean IS_24HOUR = false; // 23:00 millitary 24 hour clock
68-
boolean IS_DST = true; // Does your TimeZone use Daylight Savings Time (DST)?
69-
const int WEBSERVER_PORT = 80; // The port you can access this device on over HTTP
70-
const boolean WEBSERVER_ENABLED = true; // Device will provide a web interface via http://[ip]:[port]/
71-
boolean IS_BASIC_AUTH = true; // Use Basic Authorization for Configuration security on Web Interface
72-
char* www_username = "admin"; // User account for the Web Interface
73-
char* www_password = "password"; // Password for the Web Interface
74-
int minutesBetweenDataRefresh = 15; // Time in minutes between data refresh (default 15 minutes)
75-
int minutesBetweenScrolling = 1; // Time in minutes between scrolling data (default 1 minutes and max is 10)
76-
int displayScrollSpeed = 25; // In milliseconds -- Configurable by the web UI (slow = 35, normal = 25, fast = 15)
77-
78-
boolean NEWS_ENABLED = true;
79-
String NEWS_API_KEY = ""; // Get your News API Key from https://newsapi.org
80-
String NEWS_SOURCE = "reuters"; // https://newsapi.org/sources to get full list of news sources available
81-
82-
boolean ADVICE_ENABLED = false;
83-
84-
// Display Settings
85-
// CLK -> D5 (SCK)
86-
// CS -> D6
87-
// DIN -> D7 (MOSI)
88-
const int pinCS = D6; // Attach CS to this pin, DIN to MOSI and CLK to SCK (cf http://arduino.cc/en/Reference/SPI )
89-
int displayIntensity = 1; //(This can be set from 1 - 15)
90-
const int numberOfHorizontalDisplays = 8; // default 4 for standard 4 x 1 display Max size of 16
91-
const int numberOfVerticalDisplays = 1; // default 1 for a single row height
92-
93-
String timeDisplayTurnsOn = "06:30"; // 24 Hour Format HH:MM -- Leave blank for always on. (ie 05:30)
94-
String timeDisplayTurnsOff = "23:00"; // 24 Hour Format HH:MM -- Leave blank for always on. Both must be set to work.
95-
96-
const String GEONAMES_USER = "qrome"; // user account for http://www.geonames.org/ -- this service is used to lookup TimeZone Offsets
97-
98-
// OctoPrint Monitoring -- Monitor your 3D printer OctoPrint Server
99-
boolean OCTOPRINT_ENABLED = false;
100-
String OctoPrintApiKey = ""; // ApiKey from your User Account on OctoPrint
101-
String OctoPrintServer = ""; // IP or Address of your OctoPrint Server (DO NOT include http://)
102-
int OctoPrintPort = 80; // the port you are running your OctoPrint server on (usually 80);
103-
String OctoAuthUser = ""; // only used if you have haproxy or basic athentintication turned on (not default)
104-
String OctoAuthPass = ""; // only used with haproxy or basic auth (only needed if you must authenticate)
105-
106-
// Bitcoin Client - NONE or empty is off
107-
String BitcoinCurrencyCode = "NONE"; // Change to USD, GBD, EUR, or NONE -- this can be managed in the Web Interface
108-
109-
boolean ENABLE_OTA = true; // this will allow you to load firmware to the device over WiFi (see OTA for ESP8266)
110-
String OTA_Password = ""; // Set an OTA password here -- leave blank if you don't want to be prompted for password
111-
112-
//******************************
113-
// End Settings
1+
/** The MIT License (MIT)
2+
3+
Copyright (c) 2018 David Payne
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+
*/
23+
24+
/******************************************************************************
25+
* This is designed for the Wemos D1 ESP8266
26+
* Wemos D1 Mini: https://amzn.to/2qLyKJd
27+
* MAX7219 Dot Matrix Module 4-in-1 Display For Arduino
28+
* Matrix Display: https://amzn.to/2HtnQlD
29+
******************************************************************************/
30+
/******************************************************************************
31+
* NOTE: The settings here are the default settings for the first loading.
32+
* After loading you will manage changes to the settings via the Web Interface.
33+
* If you want to change settings again in the settings.h, you will need to
34+
* erase the file system on the Wemos or use the “Reset Settings” option in
35+
* the Web Interface.
36+
******************************************************************************/
37+
38+
#include <ESP8266WiFi.h>
39+
#include <ArduinoJson.h>
40+
#include <ESP8266WebServer.h>
41+
#include <ESP8266HTTPUpdateServer.h>
42+
#include <WiFiManager.h>
43+
#include <ESP8266mDNS.h>
44+
#include <ArduinoOTA.h>
45+
#include "FS.h"
46+
#include <SPI.h>
47+
#include <Adafruit_GFX.h>
48+
#include <Max72xxPanel.h>
49+
#include <pgmspace.h>
50+
#include "OpenWeatherMapClient.h"
51+
#include "GeoNamesClient.h"
52+
#include "TimeClient.h" // Using updated lib by Qrome
53+
#include "NewsApiClient.h"
54+
#include "OctoPrintClient.h"
55+
#include "AdviceSlipClient.h"
56+
#include "BitcoinApiClient.h"
57+
58+
//******************************
59+
// Start Settings
60+
//******************************
61+
62+
String APIKEY = ""; // Your API Key from http://openweathermap.org/
63+
// Default City Location (use http://openweathermap.org/find to find city ID)
64+
int CityIDs[] = { 5304391 }; //Only USE ONE for weather marquee
65+
String marqueeMessage = "";
66+
boolean IS_METRIC = false; // false = Imperial and true = Metric
67+
boolean IS_24HOUR = false; // 23:00 millitary 24 hour clock
68+
boolean IS_DST = true; // Does your TimeZone use Daylight Savings Time (DST)?
69+
const int WEBSERVER_PORT = 80; // The port you can access this device on over HTTP
70+
const boolean WEBSERVER_ENABLED = true; // Device will provide a web interface via http://[ip]:[port]/
71+
boolean IS_BASIC_AUTH = true; // Use Basic Authorization for Configuration security on Web Interface
72+
char* www_username = "admin"; // User account for the Web Interface
73+
char* www_password = "password"; // Password for the Web Interface
74+
int minutesBetweenDataRefresh = 15; // Time in minutes between data refresh (default 15 minutes)
75+
int minutesBetweenScrolling = 1; // Time in minutes between scrolling data (default 1 minutes and max is 10)
76+
int displayScrollSpeed = 25; // In milliseconds -- Configurable by the web UI (slow = 35, normal = 25, fast = 15)
77+
78+
boolean NEWS_ENABLED = true;
79+
String NEWS_API_KEY = ""; // Get your News API Key from https://newsapi.org
80+
String NEWS_SOURCE = "reuters"; // https://newsapi.org/sources to get full list of news sources available
81+
82+
boolean ADVICE_ENABLED = false;
83+
84+
// Display Settings
85+
// CLK -> D5 (SCK)
86+
// CS -> D6
87+
// DIN -> D7 (MOSI)
88+
const int pinCS = D6; // Attach CS to this pin, DIN to MOSI and CLK to SCK (cf http://arduino.cc/en/Reference/SPI )
89+
int displayIntensity = 1; //(This can be set from 1 - 15)
90+
const int numberOfHorizontalDisplays = 4; // default 4 for standard 4 x 1 display Max size of 16
91+
const int numberOfVerticalDisplays = 1; // default 1 for a single row height
92+
93+
String timeDisplayTurnsOn = "06:30"; // 24 Hour Format HH:MM -- Leave blank for always on. (ie 05:30)
94+
String timeDisplayTurnsOff = "23:00"; // 24 Hour Format HH:MM -- Leave blank for always on. Both must be set to work.
95+
96+
const String GEONAMES_USER = "qrome"; // user account for http://www.geonames.org/ -- this service is used to lookup TimeZone Offsets
97+
98+
// OctoPrint Monitoring -- Monitor your 3D printer OctoPrint Server
99+
boolean OCTOPRINT_ENABLED = false;
100+
String OctoPrintApiKey = ""; // ApiKey from your User Account on OctoPrint
101+
String OctoPrintServer = ""; // IP or Address of your OctoPrint Server (DO NOT include http://)
102+
int OctoPrintPort = 80; // the port you are running your OctoPrint server on (usually 80);
103+
String OctoAuthUser = ""; // only used if you have haproxy or basic athentintication turned on (not default)
104+
String OctoAuthPass = ""; // only used with haproxy or basic auth (only needed if you must authenticate)
105+
106+
// Bitcoin Client - NONE or empty is off
107+
String BitcoinCurrencyCode = "NONE"; // Change to USD, GBD, EUR, or NONE -- this can be managed in the Web Interface
108+
109+
boolean ENABLE_OTA = true; // this will allow you to load firmware to the device over WiFi (see OTA for ESP8266)
110+
String OTA_Password = ""; // Set an OTA password here -- leave blank if you don't want to be prompted for password
111+
112+
//******************************
113+
// End Settings
114114
//******************************

0 commit comments

Comments
 (0)