BlueRobotics_MS5837_Library icon indicating copy to clipboard operation
BlueRobotics_MS5837_Library copied to clipboard

Non-blocking drop-in replacement for read() function

Open RedshiftVelocities opened this issue 3 years ago • 0 comments

The read() function now no longer locks up the Arduino for 40ms. It can be run every main loop, but only communicates with the sensor within the timing spec in the datasheet. The example sketch has also been updated to demonstrate this. These changes are a drop-in replacement for the existing read() function.

Note that I haven't been able to test the code on a real sensor; I've just used another Arduino pretending to be one.

RedshiftVelocities avatar Oct 17 '21 18:10 RedshiftVelocities