Just to add, I've now committed a DMX module that will work with 1v83 of Espruino when it is released (or the latest builds).
When 1v83 is released, the module will be available at this link.
It uses the 'framing error' hardware of the USART, so you don't need the resistor/capacitor.
The method above isn't bad or unreliable, it's just easier if you don't need any external components.
@Gordon started
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.
Just to add, I've now committed a DMX module that will work with 1v83 of Espruino when it is released (or the latest builds).
When 1v83 is released, the module will be available at this link.
It uses the 'framing error' hardware of the USART, so you don't need the resistor/capacitor.
The method above isn't bad or unreliable, it's just easier if you don't need any external components.