Use a reference:
auto &display = *(Heltec.display);
Don't do this at the global scope, though, see Static Initialization Order Fiasco - cppreference.com
Either do it locally, or write a function that returns a reference to the display.
Use a reference:
auto &display = *(Heltec.display);
Don't do this at the global scope, though, see Static Initialization Order Fiasco - cppreference.com
Either do it locally, or write a function that returns a reference to the display.