-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility with Genuine MicroPython #10
Comments
For keeping both versions around within a single repository, I propose putting them in different directories instead of calling them Within However, we might want to skip the |
Right now, we've introduced a compatibility adapter called |
In order to make both libraries compatible with each other, we should also send a PR to Genuine MicroPython which adds functionality to the |
We should also take care not to communicate with the hardware within the object constructor already. This has already bitten the C-driver for the HX711 sensor which we recently refactored not to do this anymore through bogde/HX711#123. |
I can see this is currently the case through Lines 15 to 17 in e73b0c1
As we got rid of invoking the Elsewhere, this is done through a |
Already done, but not optimal. Because then the mode is only known to the driver if the method has been called. And adding another check in each and every call is nasty too. |
As the driver API is already compatible with Genuine MicroPython, we might want to close this issue and divert discussions about different topics into another issues. Thanks a bunch for all your work on this, @robert-hh! |
Hi there.
This module is coming from a time when neither Genuine MicroPython nor Pycom MicroPython had native drivers for 1-Wire/DS18X20 sensors so they had to be implemented in pure-Python.
The advent of [1] changes that situation, so @robert-hh and me are striving towards making the Python part blend into each other seamlessly.
In other words, the pure-Python library should be made API compatible with [2].
With kind regards,
Andreas.
[1] pycom/pycom-micropython-sigfox#356
[2] https://github.com/micropython/micropython/tree/master/drivers/onewire
The text was updated successfully, but these errors were encountered: