Simultaneous GPIO monitoring
Hello,
I want to monitor two sensor values using two GPIO pins of MetaWearC in MetaWear app,
Is it possible to show two sensor values in a graph simultaneously?
According to the discussion below,
https://mbientlab.com/community/discussion/comment/5849#Comment_5849
I checked the barometer code in Github to show pressure and altitude simultaneously.
I tried to edit the GPIO Fragment code to nest two timer.scheduleAsync, but it has not worked.
Comments
This is the code I make nesting.
What do you mean by "is has not worked"? Provide more details.
Hi Eric,
Thank you for your attention.
Though I tap "start sampling" toggle button first, sampling and graphing do not start.
The curious thing is that, after tap the toggle button (stop) and clear the graph, sampling and graphing start by tapping the toggle button.
Both data are collected and plotted in the graph, but the sampling rate is doubled.
FYI, I uploaded the video. https://streamable.com/t6hv6