i have one huge process one get positon sensor using i2c bus and another get led color also using i2c bus.
when color function is added in the process,positon sensor data seems freeze for a while , how can i avoid this ?
thank you !
i have one huge process one get positon sensor using i2c bus and another get led color also using i2c bus.
when color function is added in the process,positon sensor data seems freeze for a while , how can i avoid this ?
thank you !
how can i avoid this ?
You have to design your system so that it doesn't happen!
The I2C (TWI) bus is a shared resource - so you need to manage the access to it by the two processes using it.