alanesq / BasicOLEDMenu

A very simple menu system using an oled and rotary encoder
GNU General Public License v3.0
51 stars 10 forks source link

display live data #3

Open skull-candy opened 2 years ago

skull-candy commented 2 years ago

hi, great work there mate, I have a question, how do you display live data calculated from analog pins in one of the menus?

alanesq commented 2 years ago

Hi, The menus are not really designed to do this but you should be able to add your own updating information over top of the menu's at the end of LOOP (probably want to add a short delay after it). or you could add it to the bottom of the menu procedure just before display.display();

skull-candy commented 2 years ago

Thank you for your reply ! I will try that ASAP !

skull-candy commented 2 years ago

Hi, The menus are not really designed to do this but you should be able to add your own updating information over top of the menu's at the end of LOOP (probably want to add a short delay after it). or you could add it to the bottom of the menu procedure just before display.display();

Non Of The Suggested Methods Are Working ! Can You Please Write an Example Code?

alanesq commented 2 years ago

Hi,

If you modify the end of 'serviceMenu()' to the below should work although there is not a lot of free space on the screen to display much. (I am struggling to get this thing to display code ok - lol)

// show millis on oled
  display.setCursor(80, 25);
  display.println(millis());

display.display();