Hey
danadak ! I read your post last night and entered the rabbit hole of FREERTOS. It's a bit advanced for my mellon (which is mostly mush at this point) but I'm trying to understand. If I'm correct, it's a more direct way to program, which allows you more control. I could be totally off-base, I was reading about it right before bed. But definitely something I want to learn more about. I'll be able to dive in more once I get this project done.
I've only recently gotten into touch displays. Being my first experience with them, I went with a Nextion bc the software seems to do a lot of the heavy lifting. At $60 for the smallest "intelligent" version, I definitely want to learn to do it myself. The "virtual display interface" sounds interesting. How does that work? Does it recreate the display in RAM every cycle and compare the actual display to it? That can't be right, seems like it would be too taxing. That's something else I'd like to learn about.
Thanks for all the info and future Google searches!
Oh, and my problem wasn't 100% fixed like I had thought. Turns out that when I change pages on the display it overflows the buffer again. At least that's my limited take on it. It takes almost 20 seconds for it to catch back up. One workaround I just found this morning is if I clear the buffer with:
while (Serial.available() > 0) {
Serial.read();}
at the end of the loop, it won't hang. But I think I lose data occasionally doing so.
I was trying to increase the TX buffer in the library like Nigel suggested but can't even find the doc to change it. urgh...
Anyway, thanks again for the info! I'm going to get back to the nightmare I've created.