Closed manuio closed 9 years ago
I've tested this examples without I2C HW, I suppose that the error is normal but not the strange behavior.
Without hardware, all of this is normal. i2c = initI2C() display the following error : weioRunner.py: UPER API: I2C bus not connected. and i2c.scan() raise the exception.
Normally, if initI2C fails, i2c.scan shouldn't be called. So all of that is normal.
_lm75senslrSMBusPY opens the I2CBus via SMBus, while all other examples open the I2C bus via the api function initI2C(). That's why the behavior is different.
Ok for the error, I assumed that is normal but try to run one of this examples without HW (It can happen if you are "exploring" examples) and then try to run other examples). For me the result is that nothing happens but no new error messages appears.
You mean that the other examples are not working anymore ? You need to soft reset the board, right ?
Yes right!
It will be fixed soon with this commit : https://github.com/ks156/weio/commit/464d66b07b7e6b322078a763903b7f7ad2cb2b6c
I still need to test it before submitting a pull request.
:+1:
Fixed ? Can be closed ?
yes :)
Examples using I2C bus doesn't work and return this error:
I've also noticed that after error message, when you run other examples, all seems good but nothing happens (no print on IDE console and no HW events). WeIO needs to be restarted otherwise this behavior is still there.
All examples returns this error except lm75sensorSMBus_PY, however all examples have the same strange behavior...