-
Notifications
You must be signed in to change notification settings - Fork 1.3k
esp8266 port missing time.{sleep_us, sleep_ms} #803
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
Comments
According to what I'm seeing in the Makefile, neither I do think we'll need to figure something out though. With attempting to bring |
So, I should have looked before, but I was pretty confident there are some timers available...
|
@sommersoft, thanks for the feedback. I see that |
I have the |
We're discussing in issue #519 about how and where to add more time functionality. @tannewt has suggested adding a We are moving away from the |
I wouldn't be surprised if Even if we did provide a way to measure 10 microseconds, the actual delay would be longer due to the speed of the VM. It does given you a minimum delay though. |
@tannewt while I understand your comments about timing accuracy, I will note that with the Either the accuracy is "good enough" or the TM1637 is really lenient. |
Devices that you clock yourself like the TM1637 are very flexible. You just
can't clock them too fast. However, clocking them slower makes the update
speed slower. They'll still work though. That's why I was suggesting
removing the sleep all together. :-) I doubt CircuitPython on the SAMD21
can bitbang faster than the 2.5 mhz maximum for the chip.
The SAMD51 might be able to though. I haven't measured it. In that case, a
delay is helpful to make sure it doesn't go too fast.
…On Fri, May 4, 2018 at 10:39 AM Lars Kellogg-Stedman < ***@***.***> wrote:
@tannewt <https://github.com/tannewt> while I understand your comments
about timing accuracy, I will note that with the sleep_us function
available, CircuitPython has no problem driving the TM1637 display
<https://youtu.be/CIjDf-0z9d8>.
Either the accuracy is "good enough" or the TM1637 is really lenient.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#803 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADNqXWMGGf3kRQNciiRRorcAJZyZvaEks5tvJJqgaJpZM4Tx1eg>
.
|
We won't be adding any extra functions to |
I wanted to use this tm1637 module with CircuitPython, but it requires the
utime.sleep_us
method. I see this reference inmodutime.c
in the CircuitPython sources, but it doesn't appear to be available on thetime
module once the board boots.That tm1637 module works fine with upstream micropython.
The text was updated successfully, but these errors were encountered: