Answer the question
In order to leave comments, you need to log in
How to organize simultaneous access to a resource (I2C sensor) in JavaME?
There is a method of polling the sensor on the I2C bus (simplified)
private float readCurrentTemperatureValue() {
I2CDevice lm75ad = DeviceManager.open(I2CDevice.class, config);
lm75ad.begin();
lm75ad.read(TEMPERATURE_REGISTER, REGISTER_ADDRESS_SIZE, rxBuf);
lm75ad.end();
lm75ad.close();
Answer the question
In order to leave comments, you need to log in
There is a suspicion that monitoring the bus will make it possible to understand whether it is busy at the moment or not. It seems like there are START and STOP states...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question