Some months back Grovepi+ Drivers changed i2c so that when using multiple sensors, mutex is now required.
I understand that a mutex script has been written to allow multiple i2c devices to run without IOError: [Errno 121]. I have searched for many times for information as how to use Grove Mutex, without any luck.
The project I am working on requires the main programme to use two modules one of them reads ic2 devices continuously in 5 second infinite loop, and the other reads ic2 devices every 5 seconds, data use by the main script.
I have prevent IOError: [Err no 121] by using one script to read the devices, by using threading and locks however, the locks delays the speed at which the continuous loop reads some of the sensors, causing a loss of data.
Is there any way to prevent this and would your mutex help?
If it will do you have an idiots guide explaining how to use Grove mutex with multiple modules using i2c devices.
Note the scripts are written using Python3
Hoping for some help