Making changes to the HTU21DF library for the Zephyr port of Micropython

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
Yadnik
Posts: 65
Joined: Thu May 13, 2021 6:01 am

Making changes to the HTU21DF library for the Zephyr port of Micropython

Post by Yadnik » Sat Jul 24, 2021 8:18 pm

I tried making changes to the HTU21DF library https://github.com/Yadnik1/HTU21D-Micro ... U21D(F).py from my end for the zephyr port however I get a <bound_error>.I have to run it on the zephyr port of Micropython and all I have I think the arguments I am passing.I am bit puzzled as of what to put in place of scl, sda in this case.
Zephyr's driver model defines the various peripherals by name (and this is configured in the board/mcu definitions and will correspond to pins etc). MicroPython just makes those names available to the machine API.
Can someone please have a look at my code https://github.com/Yadnik1/HTU21D-Micro ... /HTU21D.py and tell me what mistake I am making.
Thank you very much!!

Post Reply