Menue not working #2672
Replies: 10 comments 1 reply
-
|
What exactly doesn't work? |
Beta Was this translation helpful? Give feedback.
-
|
Sorry for beeing not precise enough. And yes, if I jump directly to form 2 in the setup function, the form works pretty well. Exactly how I wanted to do it. Thanks for any hint |
Beta Was this translation helpful? Give feedback.
-
|
As you might see in the Rotary declaration const uint8_t clk = PA0; I'm currently using a Bluepill MCU, where the display is connected to SDA: PB7, SCL: PB6; Just to avoid level shifter for the OLED display and getting more RAM. Maybe these ports cause the trouble? |
Beta Was this translation helpful? Give feedback.
-
|
hmm.. from my perspective the code looks good. I can not say much about specific uC hardware problems, but maybe you can just use the Arduino console to print out some debug info to check whether your buttons and rotary encoder works as expected. |
Beta Was this translation helpful? Give feedback.
-
|
If I would know what to debug this should be no problem. |
Beta Was this translation helpful? Give feedback.
-
|
For debugging: You could use the usual serial out from Arduino env if this works for your uC |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
What I tried now is to modify push_event and rotary_event. Actually the field p1 and p2 got modified, even if I changed mutiple times to form1 and back. But why only in debug mode? I have no plan...
|
Beta Was this translation helpful? Give feedback.
-
|
Yes it worked in debug mode, but I had to enter the rotary_event and push_event variables directly via debugger. |
Beta Was this translation helpful? Give feedback.
-
ah, ok, but this doesn't sound like u8g2 problem.
time is the limiting factor here... currently I am not able to spend more than 30min / week on u8g2 |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I try to make a menue which is showing rpm value in the main form and in a second form I'd like to change velocity and acceleration value as min max field each.
Based on StopWatch example my code looks like this:
Unfortunately the second form doesnt't work at all.
Any ideas?
Thanks in advance.
Bernd
Beta Was this translation helpful? Give feedback.
All reactions