diff --git a/src/graphics/Screen.cpp b/src/graphics/Screen.cpp index 42ebb8ae8..44a0dab29 100644 --- a/src/graphics/Screen.cpp +++ b/src/graphics/Screen.cpp @@ -42,7 +42,9 @@ along with this program. If not, see . #include "mesh/http/WiFiAPClient.h" #endif +#ifdef OLED_RU #include "fonts/OLEDDisplayFontsRU.h" +#endif using namespace meshtastic; /** @todo remove */ @@ -94,7 +96,11 @@ static uint16_t displayWidth, displayHeight; #define FONT_MEDIUM ArialMT_Plain_24 #define FONT_LARGE ArialMT_Plain_24 #else +#ifdef OLED_RU #define FONT_SMALL ArialMT_Plain_10_RU +#else +#define FONT_SMALL ArialMT_Plain_10 +#endif #define FONT_MEDIUM ArialMT_Plain_16 #define FONT_LARGE ArialMT_Plain_24 #endif diff --git a/variants/diy/platformio.ini b/variants/diy/platformio.ini index 0c3982261..9a2b5d467 100644 --- a/variants/diy/platformio.ini +++ b/variants/diy/platformio.ini @@ -6,6 +6,7 @@ build_flags = ${esp32_base.build_flags} -D DIY_V1 -D EBYTE_E22 + -D OLED_RU -I variants/diy/v1 ; Meshtastic DIY v1.1 new schematic based on ESP32-WROOM-32 & SX1262/SX1268 modules @@ -16,6 +17,7 @@ build_flags = ${esp32_base.build_flags} -D DIY_V1 -D EBYTE_E22 + -D OLED_RU -I variants/diy/v1_1 ; Port to Disaster Radio's ESP32-v3 Dev Board