Page 1 of 1

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

Posted: Sat Jul 24, 2021 8:18 pm
by Yadnik
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!!