-
Notifications
You must be signed in to change notification settings - Fork 216
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
MicroPython Port. #64
Comments
Hi! I have never used MicroPython or CircuitPython myself so I currently have no idea what would be needed to support those platforms. The Regarding performance, this library was not written with optimal performance in mind. Personally, if performance was important for a project I would not use Python for it usually. But again, I don't know about MicroPython or CircuitPython. If there are other things which are needed to support MicroPython and/or CircuitPython, please comment! When I have more of a grasp of how much work it would be I will decide if it should be officially supported. |
With the warnings import removed, this library works perfectly in CircuitPython. Performance on an ESP32 is totally adequate for a PID loop. |
@eirinnm That's a great news! If works on the CircuitPython, so probably works on the MicroPython as well :) Thank you all! |
Thanks for the feedback, that's good to hear! According to the MicroPython docs, there is no pid = PID()
pid.time_fn = time.ticks_us # For example, use which time function you want
# Use pid as normal |
Another thing that needs to be done if MicroPython and/or CircuitPython should be officially supported is to add some documentation for it. |
I ran in to a problem with using
I chose to use |
Hello!
Do you have plans to support the
MicroPython
?I think that on the pid.py needs just to change the
import warnings
to an equivalent inMicroPython
, right?And about the performance, maybe needs change something more to better fit on the
MicroPython
?Thank you.
The text was updated successfully, but these errors were encountered: