Zephyr: Errors encountered with driver code for the HTU21DF

Discuss development of drivers for external hardware and components, such as LCD screens, sensors, motor drivers, etc.
Target audience: Users and developers of drivers.
Post Reply
Yadnik
Posts: 65
Joined: Thu May 13, 2021 6:01 am

Zephyr: Errors encountered with driver code for the HTU21DF

Post by Yadnik » Thu Jul 29, 2021 3:55 pm

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!!

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

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

Post by jimmo » Wed Aug 04, 2021 5:05 am

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."

Post Reply