Graph Widget as an Oscilloscope?
Hello,
I wanted to try how would TouchGFX look like in one cool application - an Oscilloscope. I checked out the Graph widget and thought to myself, I could use it for that purpose. So, I set up everything like it was explained here, and I put the ADC in the interrupt mode. I saw that the only function to insert the data points into the graph is addDataPoint(). It did work, however, I was only able to insert one point at the time. The line slowly scrolls across the graph, and it takes some time to fill it from one end to the other. Not really the actual "oscilloscope" experience, I was going for. So I'd like to ask:
a) is there a way to speed up the data feed onto the graph?
b) is there a way to flush multiple data points at once, such it might be the array of ADC values?
Best regards,
PK
EDIT: I played with the simulator and found out that I can just add all the points in a for loop within the handleTickEvent() event, and the simulation sounds very promising. This might be what I'm looking for.
