My issue is simple, but for the life of me, ran into a mental block to think of the correct code to fix it.
I want each page to remain until the next or prev buttons are pressed. I have an issue where the page texts displaying on the TVout are not waiting to see prev or next button press, so after about 3 seconds, the screen is unreadable, as its jumbling up all the pages onto one screen.
I tried TVclear_screen, but it posed no affect.
FYI: there is no problem from the LCD doing this. Its only affecting the monitor output.
My issue is simple, but for the life of me, ran into a mental block to think of the correct code to fix it.
I want each page to remain until the next or prev buttons are pressed. I have an issue where the page texts displaying on the TVout are not waiting to see prev or next button press, so after about 3 seconds, the screen is unreadable, as its jumbling up all the pages onto one screen.
I tried TVclear_screen, but it posed no affect.
FYI: there is no problem from the LCD doing this. Its only affecting the monitor output.
Boy post full information (Code) and this very limited info. What i find to check condition on pagenumber use "if elseif elseif else" statements.
No. You can use the Additional Options link below the text entry box. Yes, it's a link, even though it doesn't look like one. When you click it, you'll see an option to attach a file to a post.
You can't use reading and previous to refer to the current and previous reading for all the switches, and think that the Arduino is going to somehow magically infer that you expect it to remember the previous reading for several switches.
That code that tries to combine edge detection, current state, and debounce all in one if statement is horrid. You are trying to do three different things. You should be using three if statements.
You should put all the { on new lines, and use Tools + Auto Format to make that code at least somewhat readable.
A little white space is good. Many blank lines looks silly.