@MaBe I too seem to have some issues here on my d1-mini. I am trying to do IR transmit based on the instructions at the bottom of https://www.espruino.com/pronto.
I get Uncaught InternalError: Timeout on Utility Timer message.
It seems that the analogWrite() with 38kHz gives just too much work to do for some reason to the ESP8266. As once I turn the analogWrite() on the previously installed watch for reading the IR (on another pin) starts to be very unreliable. As soon as I did digitalRead() on the same pin the receiver became properly responsive again.
Perhaps a combination of analogWrite()/SPI and digitalPulse() don't play well together?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@MaBe I too seem to have some issues here on my d1-mini. I am trying to do IR transmit based on the instructions at the bottom of https://www.espruino.com/pronto.
I get
Uncaught InternalError: Timeout on Utility Timer
message.It seems that the
analogWrite()
with38kHz
gives just too much work to do for some reason to the ESP8266. As once I turn the analogWrite() on the previously installed watch for reading the IR (on another pin) starts to be very unreliable. As soon as I diddigitalRead()
on the same pin the receiver became properly responsive again.Perhaps a combination of
analogWrite()
/SPI anddigitalPulse()
don't play well together?