Im doing some signal analysis using an ADC on a Teensy 4.1 and I have code that creates a histogram that I currently print out to the serial monitor.
I would like to display the histogram on a display, but my only concern is the histogram has 1024 bins and my display width is only 480px wide, so Im sure there will be some compressing of the visual data, but can a chart handle that many data points at once?
Also, searching here I have only seen one person post about displaying a histogram but there is not direct code example, so would love a tip if anyone can assist.
My histogram is a uint16_t with 1024 positions as I mentioned. I counts values in each bin.
What MCU/Processor/Board and compiler are you using?
First off, an object too large to fit in its area (your entire display in this case) will automatically be made scrollable - so as for it being too large it might not be an issue if scrolling is possible on your device.
Concerning the amount of data points, there’s only really one way to figure if your chart can handle it, I don’t know myself and I don’t think anybody has really tried that and mentioned it here.
I can scroll but it updates 10 times a second so I need to disable scrolling
I read somewhere there is an auto compression on charts with many data points, it’s built into the lv_chart.c file