Page 1 of 1

Zephyr: Errors encountered with driver code for the HTU21DF

Posted: Thu Jul 29, 2021 3:55 pm
by Yadnik
I have written a library for the HTU21DF sensor, however I am facing some issues with the execution.The link to my driver code is :https://github.com/Yadnik1/Tempandhumcl ... umclick.py. The error I get is around as follows:

>> %Run -c $EDITOR_CONTENT
Traceback (most recent call last):
File "<stdin>", line 64, in <module>
File "<stdin>", line 56, in humidity
File "<stdin>", line 35, in _issue_measurement
OSError: I2C operation not supported

I feel that that the i2c library is not being called correctly (or similar).I am working on the Zephyr port of MicroPython.(Reference for it:https://github.com/micropython/micropyt ... /README.md)
It would be very grateful if someone can please guide me with it.Thank you very much!!

Re: Zephyr: Errors encountered with driver code for the HTU21DF

Posted: Wed Aug 04, 2021 5:05 am
by jimmo
Yadnik wrote:
Thu Jul 29, 2021 3:55 pm
OSError: I2C operation not supported
It looks like you've already solved this, but it looks like your original code was using start/stop/etc... See https://docs.micropython.org/en/latest/ ... operations which says "These methods are only available on the machine.SoftI2C class."