This forum is read only and new users cannot register, please ask all new questions either using GitHub discussions, or in Arduino forum tagging @davetcc.
So the task that is executed is long running (it is actually processing and displaying morse code that has been translated to characters by my rig and the rotary allows backward forward movement in the time dimension). So I need to be diligent in reading the serial line and of course displaying the received code.
1. It looks like I could schedule a task to read from the serial line every xxx ms.
2. Seems like it would not be efficient to take over the display on every character that I receive. Is that the best practice or would a different approach be advisable?
I use the tcMenu to initiated a function that takes character coming into thru a digital pin and displays them on the screen. I create a buffer of "x" characters and had planned on using the rotary encoder to move up and down in this buffer displaying the different characters in the buffer.
Several questions. Please feel free to tell me where I should be rtfm-ing
1. Is this possible using just one encoder? While in the function, I want to process the encoder. When I exit this callback function, I want the menu to re-engage and take over the encoder input.
2. The plan would be to use the encoder switch to exit from this subtask to get back to the menu system. Is that button event something I can capture in the processing function?
3. Aside from exiting the callback function, should I be executing any tcMenu function prior to exit?
4. Can I use the same "lcd" variable for displaying the results as used by the menu system?
This site uses cookies to analyse traffic, serve ads by Google AdSense (non-personalized in EEA/UK),
and to record consent. We also embed Twitter, Youtube and Disqus content on some pages, these companies
have their own privacy policies.