Hey all,
I have Teensy 4.0 with adxl sensor and I want draw FFT spectrum smoothly in realtime.
Now I use something like:
Of course, this it wrong and display is blinking. How to re-draw smoothly withou blinking and fast?
I need draw 300 or 780 bars / lines / bins - according TFT size.
One TFT I have is 800x480, RA8875, second TFT is ILI9341, 320x240, both SPI.
examples what I mean:
https://www.youtube.com/watch?v=gJxs3Rm0aTU&ab_channel=BenjaminKBenjaminK
or
https://www.youtube.com/watch?v=Xkov499IYvo&ab_channel=IanWallIanWall
Thanks a lot for help.
Michal
I have Teensy 4.0 with adxl sensor and I want draw FFT spectrum smoothly in realtime.
Now I use something like:
Code:
x_pos = 0;
for (int k = 0 ; k < 299; k++)
{
tft.drawLine(x_pos,70, x_pos, 70- sensor_value, ILI9341_GREEN);
x_pos++;
if (x_pos > 299)
{
x_pos=0;
}
}
tft.fillScreen(ILI9341_BLACK);
Of course, this it wrong and display is blinking. How to re-draw smoothly withou blinking and fast?
I need draw 300 or 780 bars / lines / bins - according TFT size.
One TFT I have is 800x480, RA8875, second TFT is ILI9341, 320x240, both SPI.
examples what I mean:
https://www.youtube.com/watch?v=gJxs3Rm0aTU&ab_channel=BenjaminKBenjaminK
or
https://www.youtube.com/watch?v=Xkov499IYvo&ab_channel=IanWallIanWall
Thanks a lot for help.
Michal