Dashboard with oled 1306 display issues #305
Replies: 5 comments 10 replies
-
I even tried a bare bones example from scratch: DrawableDashboard* mainDashboard; void SetupDashboard() { The display doesn't freeze, but nothing happens in this case |
Beta Was this translation helpful? Give feedback.
-
Using the tcMenuLib and tcUnicodeHelper master branch, I converted the Adafruit dashboard example to use the oled display using the U8G2 display plugin, MonoOled theme with TcUnicode checked and fonts set to Adafruit RobotoMedium24. There were some compilation errors, maybe due to using the 3.1.0 menu editor: /home/Arduino-ESP-Projects/picoAdafruitDashboard/dashboardConfig.cpp: In member function 'virtual bool MyDrawableDashboardDelegate::dashboardWillOpen(BaseMenuRenderer*)': exit status 1 Compilation error: 'gfxDrawable' was not declared in this scope; did you mean 'U8g2Drawable'? |
Beta Was this translation helpful? Give feedback.
-
the other option is just do "renderer.getDeviceDrawable()" but that returns a pointer. See https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/rendering-with-tcmenu-lcd-tft-oled/#drawing-direct-to-the-display-with-devicedrawable |
Beta Was this translation helpful? Give feedback.
-
But the next UI release will export for u8g2 automatically. |
Beta Was this translation helpful? Give feedback.
-
See https://github.com/davetcc/tcMenuLib/blob/master/examples/esp/esp32s2Saola/u8g2DashConfig.cpp |
Beta Was this translation helpful? Give feedback.
-
Short of having a TFT color display handy atm, I converted the Adafruit dashboard example to use the oled display using the U8G2 display plugin, MonoOled theme with TcUnicode checked and fonts set to Adafruit RobotoMedium18 (setting them to TcUnicode RobotoMedium18 yields duplication errors). As soon as i enter the settings submenu, the display just freezes until the OK button is pressed and we're back to the menu. I even trimmed the dashboard, removed the delegate altogether, and kept a single drawing item with the same results.
When the delegate is setup, its functions are indeed being called (WillDraw and DidDraw repetitively).
Any pointers about what is wrong?
Is there a debug setting/define to trace what's going on?
TcMenu ver 3.1.0 / ESP8266 / Ubuntu 22.04
Beta Was this translation helpful? Give feedback.
All reactions