Candle LED reverse engineering and emulation