-
Notifications
You must be signed in to change notification settings - Fork 1.3k
PulseIn not implemented for ESP8266 #716
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
It is also not implemented for the nrf52. Changed title. |
I've started working on this over at https://github.com/nickzoic/micropython/tree/circuitpython-nickzoic-716-pulseio-esp8266 ... still super sketchy at the moment and missing a lot of the API features. |
@nickzoic Looks like a good start! You may be interested in my pending changes here too: master...tannewt:pulseio_too_fast It's adding some handling for gracefully failing when the input signal causes the interrupt to swamp the main code. |
Interesting. I'm not sure if there's an equivalent for the '66 port, but there's possibly less need for it since communications are UART based ... |
OK, PulseIn in that branch is looking pretty good now, and can reliably receive IR remote control signals and can be used by the adafruit_dht library to interface to a DHT11. PulseOut is on ongoing effort mostly because of the terrible state of ESP8266 PWM and microsecond timers. |
Switch to ets_delay_us but the PWM is still way too slow to be useful.
…eio-esp8266 Implement pulseio.PulseIn and PulseOut for ESP8266 #716
split off nrf52 issue into #1043. |
When trying to use a DHT22 on an ESP8266 - this error is returned:
https://github.com/adafruit/Adafruit_CircuitPython_DHT/blob/master/adafruit_dht.py#L106
I did not see an issue for this so I am just creating this to track it.
edited to add link to pulsio code: https://github.com/adafruit/circuitpython/blob/master/ports/esp8266/common-hal/pulseio/PulseIn.c#L37
The text was updated successfully, but these errors were encountered: