summaryrefslogtreecommitdiff
path: root/src/config-source.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/config-source.h')
-rw-r--r--src/config-source.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/config-source.h b/src/config-source.h
new file mode 100644
index 0000000..628439d
--- /dev/null
+++ b/src/config-source.h
@@ -0,0 +1,40 @@
+//////////////////////////////////////////////////////////
+//
+// Файл нужно заполнить и переименовать в config.h !!!
+//
+/////////////////////////////////////////////////////////
+
+#ifndef CONFIG_H
+#define CONFIG_H
+
+// WiFi настройки:
+static const char *WIFI_SSID = "";
+static const char *WIFI_PASS = "";
+
+// NTP настройки:
+static const char *NTP_SERVER = "1.ru.pool.ntp.org"; // "ntp3.vniiftri.ru";
+
+// Серверные настройки:
+static const char *SERVER_HOST = "";
+static const int SERVER_PORT = 8000;
+static const char *SERVER_PATH = "/";
+
+// Настройки табло
+static const uint8_t TIME_DAY = 8;
+static const uint8_t TIME_NIGHT = 18;
+static const uint8_t BRIGHT_DAY = 4;
+static const uint8_t BRIGHT_NIGHT = 1;
+
+// Названия датчиков
+static const char* SENSOR_1 = ""; // улица
+static const char* SENSOR_2 = ""; // комната
+
+// Цвета (можно вынести для удобства)
+static const uint32_t COLOR_TIME = 16766720; // желтый
+static const uint32_t COLOR_TEMP = 16711935; // красный
+static const uint32_t COLOR_TEMP_OUT = 9127187; // коричневый
+static const uint32_t COLOR_PRESS = 9830400; // розовый
+static const uint32_t COLOR_WIFI = 16728935; // томато
+static const uint32_t COLOR_HUM = 52945; // бирюзовый
+
+#endif \ No newline at end of file