joey120373
Well-known member
Hardware: buyDisplay 800x480 RA8875 tft
And, at the moment a T4 running at 150Mhz.
Using HW SPI for display and IIC for cap touch interface.
I am in the early stages of getting a GUI up and running on this display and so far it’s been relatively pain free. I’ve got multiple screens or pegs that pop up and the touch screen works great.
But I’m having real issues wrapping my head around the hardware scroll feature. It’s not well documented on the library wiki. As far as I can tell, I define a window, then call a scroll function with direction and number of pixells to scroll. But it doesn’t seem to work exactly like I would want. And, as it seems to wrap the window, It’s not exactly what I need, but I could live with that if it’s all I can get.
What I want is a simple serial terminal, that loos and acts similar to hyper-term, or similar. When a serial stream is fed into the teensy buffer, it will display it on the TFT.
That’s easy, what I can’t seem to do is get the screen to scroll when the data being printed reaches the bottom of the screen. Depending on the font scale I use, I can get 15 or 30 lines of data on the screen ( in landscape orientation ) , using the small default code gets me the 30
Lines but text is too small, setting the font scale to 1 gives nice readable text but cuts the available lines in half. What I would really like is for the data lines to start moving up once the print function hits the last available line ( basically set cursor is : tft.height() - tft.getFontHeight )
Or even have it start printing on the bottom “line” and scroll up from there, either way would be ok. Don’t really care what happens to the data once it has left the screen, though it would be nice to be able to use the touch screen to scroll through it, though inrealize there are limits to how much data could be saved.
I am basically a hobbies level tinkerer, and my programming skills are not great, so I was hoping someone could give me some pointers, or even a bit of general code that might get me on the right track.
I have see. Some YouTube videos of people using the mcufreind.kbv library on a much smaller tft, with a uno, and getting exactly the results I am hoping for, but no descriptions or links. I’m hoping that since a lowly uno driving an ilixxxx can do it, there is hope for a teensy and the RA8875 combo.
At the moment I am on my phone so cannot post code, however i can do that once I get back to my computer if that might help.
I do have the scroll function working with some static text that’s printed, then scrolled, as a cute animation, but once I try to print, then scroll, it just doesn’t work for me.
Thanks
Joe
And, at the moment a T4 running at 150Mhz.
Using HW SPI for display and IIC for cap touch interface.
I am in the early stages of getting a GUI up and running on this display and so far it’s been relatively pain free. I’ve got multiple screens or pegs that pop up and the touch screen works great.
But I’m having real issues wrapping my head around the hardware scroll feature. It’s not well documented on the library wiki. As far as I can tell, I define a window, then call a scroll function with direction and number of pixells to scroll. But it doesn’t seem to work exactly like I would want. And, as it seems to wrap the window, It’s not exactly what I need, but I could live with that if it’s all I can get.
What I want is a simple serial terminal, that loos and acts similar to hyper-term, or similar. When a serial stream is fed into the teensy buffer, it will display it on the TFT.
That’s easy, what I can’t seem to do is get the screen to scroll when the data being printed reaches the bottom of the screen. Depending on the font scale I use, I can get 15 or 30 lines of data on the screen ( in landscape orientation ) , using the small default code gets me the 30
Lines but text is too small, setting the font scale to 1 gives nice readable text but cuts the available lines in half. What I would really like is for the data lines to start moving up once the print function hits the last available line ( basically set cursor is : tft.height() - tft.getFontHeight )
Or even have it start printing on the bottom “line” and scroll up from there, either way would be ok. Don’t really care what happens to the data once it has left the screen, though it would be nice to be able to use the touch screen to scroll through it, though inrealize there are limits to how much data could be saved.
I am basically a hobbies level tinkerer, and my programming skills are not great, so I was hoping someone could give me some pointers, or even a bit of general code that might get me on the right track.
I have see. Some YouTube videos of people using the mcufreind.kbv library on a much smaller tft, with a uno, and getting exactly the results I am hoping for, but no descriptions or links. I’m hoping that since a lowly uno driving an ilixxxx can do it, there is hope for a teensy and the RA8875 combo.
At the moment I am on my phone so cannot post code, however i can do that once I get back to my computer if that might help.
I do have the scroll function working with some static text that’s printed, then scrolled, as a cute animation, but once I try to print, then scroll, it just doesn’t work for me.
Thanks
Joe