You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a go at using AsyncW1ThermSensor to collect data asynchronously from a GPS running at a "fast" rate without having to wait for multiple "slow" DS18B20's to return their readings. I put the code for each DS18B20 into its own function. Ideally it would be nice to handle multiple DSB1820's in one function. Any tips on how to do that? Here is my code:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I had a go at using AsyncW1ThermSensor to collect data asynchronously from a GPS running at a "fast" rate without having to wait for multiple "slow" DS18B20's to return their readings. I put the code for each DS18B20 into its own function. Ideally it would be nice to handle multiple DSB1820's in one function. Any tips on how to do that? Here is my code:
Basic idea for async functions from: https://www.geeksforgeeks.org/how-to-run-two-async-functions-forever-python
Beta Was this translation helpful? Give feedback.
All reactions