KillaX
New member
Heya, New to the forums. Been using Teensy chips for awhile, number of years for small projects as I find Arduino kinda..big. Love these little boards, only as of recently decided to step up to a Teensy 3.5 ( as I didnt want to deal with 3.3V with the 3.6 ) Though, Honestly, it wouldn't have been hard.
I'm using the "ILI9341_t3" Library with this ( https://tinyurl.com/ph3l2eo Link to Adafruit's Product ) These use HXD8357D Drivers. Which I understand isnt the same. However, with no modifications at all, it works flawlessly. I tried to use DMA one, then running the 2 'old' examples. Both give me failures due to Region/Ram, despite it being a Teensy 3.5. I shoved that aside saying whatever, and resumed using the normal library. So far everything works on it. I can draw bitmaps from the SD card ( On the screen and Teensy 3.5 board ) I decided to go about my case design to take advantage of the Teensy's SD card slot, figuring it would be faster.
http://i.imgur.com/ITZATC3.jpg
As seen here, I'm trying to mimic my car's display screen style. I'm making a volt meter ( more/less just for fun ) which displays a scrolling graph to show voltage history up to a few seconds, Actual voltage readout, and meter. If I use Adafruit's font, I can display live-voltage readout at STUPID fast speeds that makes it unreadable ( but no flicker ). If I use a font, it looks SOOO much nicer, but it's prone to flicker due to having to draw the previous number in dark blue, then draw the new number, to prevent stacking digits, thus causing 4 big blue squares eventually. I get away with it, if I run a low refresh rate. I'm kinda amazed how fast I can make the 260-point array scrolling graph go. Running massive delays in it as if I run no delays, it scrolls by at killer speed..with no flicker ( doing an array shift with drawPixel )
I'm currently REAAAALLY loving the Teensy with this touchscreen LCD. I didnt expect these kinds of speeds ( It's been awhile ) over SPI.
So. Now comes my main questions. I've dug this forum for awhile, and I'm pretty sure I know what I'm going to hear, but...Figure'd ID ask due to this being a totally different screen.
1) Font. Adafruit's font can display extremely fast, with no flickering, as well as background color. Custom font's can as well, but lack background color ability. Manually adding a fix ( display prev-color text or rectangles ) just results in really..really annoying flickers. Is there any real 'fix' around this, to make it run like Adafruit? Or is it best I just stick with a low refresh rate on the digits to prevent flicker. As...lets face it. No one wants 96-Size super pixel fonts. It looks SO much better with the higher quality.
2) BMP files and SD cards. Yes, that question so many have asked.
Bit Depth: 24
Image size: 320x480
Loaded in 2146 ms
Currently, I'm drawing the main HUD as a BMP, then adding active numbers/events on top. However, Due to this being a touch screen, I've added menus for "Touch to alter color" for customization. This requires me to re-draw the background which..is really annoying to see a 2146ms load time. I recently installed Bill's SDFat library, the speed above is what I get. I'm running a old SD card, 64MB..so I'm half guessing that's part of the problem. All my fast SD cards are 64GB and I read somewhere >32GB doesnt work. Running 120Mhz on the CPU Speed. Is there a way to speed this up? I rather not use embedded C file pictures to save space on the chip. I may consider that for the meter, as its curved, and it seams easier to just run the bars in as images VS shapes.
But, Far as I'm aware. I'm not seeing any way to speed things up..specially now that I'm on a better SD library. Using the on-board SD reader. Replacing it with a better SD card is probably my only option? I often wonder if I'm taking full advantage of these HXD8357D drivers..considering I'm using a library made for a different screen.
Just getting ideas. Thanks!
I'm using the "ILI9341_t3" Library with this ( https://tinyurl.com/ph3l2eo Link to Adafruit's Product ) These use HXD8357D Drivers. Which I understand isnt the same. However, with no modifications at all, it works flawlessly. I tried to use DMA one, then running the 2 'old' examples. Both give me failures due to Region/Ram, despite it being a Teensy 3.5. I shoved that aside saying whatever, and resumed using the normal library. So far everything works on it. I can draw bitmaps from the SD card ( On the screen and Teensy 3.5 board ) I decided to go about my case design to take advantage of the Teensy's SD card slot, figuring it would be faster.
http://i.imgur.com/ITZATC3.jpg
As seen here, I'm trying to mimic my car's display screen style. I'm making a volt meter ( more/less just for fun ) which displays a scrolling graph to show voltage history up to a few seconds, Actual voltage readout, and meter. If I use Adafruit's font, I can display live-voltage readout at STUPID fast speeds that makes it unreadable ( but no flicker ). If I use a font, it looks SOOO much nicer, but it's prone to flicker due to having to draw the previous number in dark blue, then draw the new number, to prevent stacking digits, thus causing 4 big blue squares eventually. I get away with it, if I run a low refresh rate. I'm kinda amazed how fast I can make the 260-point array scrolling graph go. Running massive delays in it as if I run no delays, it scrolls by at killer speed..with no flicker ( doing an array shift with drawPixel )
I'm currently REAAAALLY loving the Teensy with this touchscreen LCD. I didnt expect these kinds of speeds ( It's been awhile ) over SPI.
So. Now comes my main questions. I've dug this forum for awhile, and I'm pretty sure I know what I'm going to hear, but...Figure'd ID ask due to this being a totally different screen.
1) Font. Adafruit's font can display extremely fast, with no flickering, as well as background color. Custom font's can as well, but lack background color ability. Manually adding a fix ( display prev-color text or rectangles ) just results in really..really annoying flickers. Is there any real 'fix' around this, to make it run like Adafruit? Or is it best I just stick with a low refresh rate on the digits to prevent flicker. As...lets face it. No one wants 96-Size super pixel fonts. It looks SO much better with the higher quality.
2) BMP files and SD cards. Yes, that question so many have asked.
Bit Depth: 24
Image size: 320x480
Loaded in 2146 ms
Currently, I'm drawing the main HUD as a BMP, then adding active numbers/events on top. However, Due to this being a touch screen, I've added menus for "Touch to alter color" for customization. This requires me to re-draw the background which..is really annoying to see a 2146ms load time. I recently installed Bill's SDFat library, the speed above is what I get. I'm running a old SD card, 64MB..so I'm half guessing that's part of the problem. All my fast SD cards are 64GB and I read somewhere >32GB doesnt work. Running 120Mhz on the CPU Speed. Is there a way to speed this up? I rather not use embedded C file pictures to save space on the chip. I may consider that for the meter, as its curved, and it seams easier to just run the bars in as images VS shapes.
But, Far as I'm aware. I'm not seeing any way to speed things up..specially now that I'm on a better SD library. Using the on-board SD reader. Replacing it with a better SD card is probably my only option? I often wonder if I'm taking full advantage of these HXD8357D drivers..considering I'm using a library made for a different screen.
Just getting ideas. Thanks!