Lora 32 v3 custom code - stop frame counter and autoanimation

Hi
I developed simple communication based on examples from Heltec Library. I love UIDemo, scrolling pages.
But i need my user to control pages, so can you advise me:
1- how to stop it from moving itself (if i disable ui.update() it s not moving, but also not responding)

  • i managed to change frames/pages by button click
    if (button.pressed() || (PAUSE && tx_legal && millis() - last_tx > (PAUSE * 1000)) ) //.isSingleClick())
    {
    ui.nextFrame();
    }

  • but its still scrolling by itself.

  1. how to prevent frame counter from displaying (top left corner)

Ill answer myself (:
Frame counter is displayed in msOverlay function, so you can comment one line or not use overlay at all.

And to prevernt autoanimations: after declaring DisplayUi ui( &factory_display );
you can set option:

ui.disableAutoTransition();// nie ma autoanimacji (:

and use ui.nextFrame() ui.previousFrame();

1 Like