• Yeah, the problem is that on ESP8266 there is no hardware PWM as far as I know. There is a hardware timer, but to make a pin change state you still need to do it using software. It means that realistically, reliable 38kHz soft PWM isn't an option right now.

    Someone could write some IR transmitter code in C, and then call it from JS like is done with the Neopixels, but it's a bit of a faff. Even with that, you can't transmit for too long or you'll interfere with WiFi/trigger the watchdog timer.

    The more sensible option is to use a microcontroller with hardware PWM on it, like the Espruino boards. I'll be releasing one with WiFi on soon now - I have hardware, there are just some software issues to sort out before I do a release.


Avatar for Gordon @Gordon started