dashboard/src/config.cpp

73 lines
2.6 KiB
C++
Raw Normal View History

2021-10-02 18:14:58 +00:00
///////////////////////////////////////////////////////////////////////////////
// Tyler Perkins
// 9-29-21
// configuration file
//
#include "config.hpp"
// PANELS
// A list of all panels to be displayed, in order
dashboard::panel::panel* PANELS[] = {
new dashboard::panel::weather(),
2021-12-21 22:27:48 +00:00
new dashboard::panel::wifi(),
2021-10-02 18:14:58 +00:00
};
size_t PANELS_LENGTH = sizeof(PANELS)/sizeof(PANELS[0]);
2021-12-20 20:13:12 +00:00
// OVERLAY
// This is a special panel that is overlayed on top of all other panels
dashboard::panel::panel* OVERLAY = new dashboard::panel::def_overlay();
2021-10-02 18:14:58 +00:00
// IMAGE_LOCATIONS
// Locations of all static images used
const char* IMAGE_LOCATIONS[] = {
"bmp_24.png",
2021-12-21 21:28:57 +00:00
"sky.png",
2021-12-21 22:27:48 +00:00
"wifi_background.jpg",
2021-12-21 23:10:27 +00:00
"wifi.png",
2021-10-02 18:14:58 +00:00
};
size_t IMAGE_LOCATIONS_LENGTH = sizeof(IMAGE_LOCATIONS)/sizeof(IMAGE_LOCATIONS[0]);
// FONT_LOCATIONS
// Locations of all fonts used
//struct FONT_SIZE {
// const char* _name;
// const size_t _size;
//};
const FONT_SIZE FONT_LOCATIONS[] = {
2021-12-20 01:29:41 +00:00
{ "Roboto_Mono/RobotoMono-Medium.ttf", 50 },
2021-12-20 20:33:27 +00:00
{ "Roboto_Mono/RobotoMono-Medium.ttf", 28 },
2021-10-02 18:14:58 +00:00
};
size_t FONT_LOCATIONS_LENGTH = sizeof(FONT_LOCATIONS)/sizeof(FONT_LOCATIONS[0]);
// CONST_STRINGS
// All constant strings
//struct FONT_SIZE_STRING {
// const char* _text;
// const FONT_SIZE _font_size;
//};
const FONT_SIZE_STRING CONST_STRINGS[] = {
2021-12-22 23:27:55 +00:00
//Overlay strings
{ "Weather", { "Roboto_Mono/RobotoMono-Medium.ttf", 50 } },
2021-12-22 04:53:50 +00:00
{ "Wireless", { "Roboto_Mono/RobotoMono-Medium.ttf", 50 } },
2021-12-22 23:27:55 +00:00
//Weather strings
{ "Clear Skies", { "Roboto_Mono/RobotoMono-Medium.ttf", 50 } },
{ "Slightly cloudy", { "Roboto_Mono/RobotoMono-Medium.ttf", 50 } },
{ "Moderately cloudy", { "Roboto_Mono/RobotoMono-Medium.ttf", 50 } },
{ "Very cloudy", { "Roboto_Mono/RobotoMono-Medium.ttf", 50 } },
{ "Very humid", { "Roboto_Mono/RobotoMono-Medium.ttf", 50 } },
{ "Light rain", { "Roboto_Mono/RobotoMono-Medium.ttf", 50 } },
{ "Rain", { "Roboto_Mono/RobotoMono-Medium.ttf", 50 } },
{ "Overcast with showers", { "Roboto_Mono/RobotoMono-Medium.ttf", 50 } },
{ "Moderate showers", { "Roboto_Mono/RobotoMono-Medium.ttf", 50 } },
{ "Light snow", { "Roboto_Mono/RobotoMono-Medium.ttf", 50 } },
{ "Moderate snow", { "Roboto_Mono/RobotoMono-Medium.ttf", 50 } },
{ "Rain and snow", { "Roboto_Mono/RobotoMono-Medium.ttf", 50 } },
{ "Currently,", { "Roboto_Mono/RobotoMono-Medium.ttf", 50 } },
{ "Tommorow,", { "Roboto_Mono/RobotoMono-Medium.ttf", 50 } },
{ "Day after,", { "Roboto_Mono/RobotoMono-Medium.ttf", 50 } },
2021-10-02 18:14:58 +00:00
};
size_t CONST_STRINGS_LENGTH = sizeof(CONST_STRINGS)/sizeof(CONST_STRINGS[0]);