Skip to content

Commit

Permalink
Update lib_deps; tidy preprocessor logic
Browse files Browse the repository at this point in the history
  • Loading branch information
todd-herbert committed Sep 20, 2024
1 parent c340168 commit cceee51
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/graphics/Screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1670,11 +1670,9 @@ void Screen::setup()
static_cast<SH1106Wire *>(dispdev)->setSubtype(7);
#endif

#ifdef USE_ST7789
// Heltec T114 and T190: honor a custom text color, if defined in variant.h
#ifdef TFT_MESH
#if defined(USE_ST7789) && defined(TFT_MESH)
// Heltec T114 and T190: honor a custom text color, if defined in variant.h
static_cast<ST7789Spi *>(dispdev)->setRGB(TFT_MESH);
#endif
#endif

// Initialising the UI will init the display too.
Expand Down
2 changes: 1 addition & 1 deletion variants/heltec_mesh_node_t114/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ build_src_filter = ${nrf52_base.build_src_filter} +<../variants/heltec_mesh_node
lib_deps =
${nrf52840_base.lib_deps}
lewisxhe/PCF8563_Library@^1.0.1
https://github.com/todd-herbert/meshtastic-st7789-heltec#flip-and-color
https://github.com/meshtastic/st7789#bd33ea58ddfe4a5e4a66d53300ccbd38d66ac21f
2 changes: 1 addition & 1 deletion variants/heltec_vision_master_t190/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ build_flags =
lib_deps =
${esp32s3_base.lib_deps}
lewisxhe/PCF8563_Library@^1.0.1
https://github.com/todd-herbert/meshtastic-st7789-heltec#flip-and-color
https://github.com/meshtastic/st7789#bd33ea58ddfe4a5e4a66d53300ccbd38d66ac21f
upload_speed = 921600

0 comments on commit cceee51

Please sign in to comment.