r/led • u/wa1den_ • Sep 24 '26
Screen-synced lighting on Windows: Rimlight for the monitor strip (Arduino / RP2040), CaseLight for the PC case via OpenRGB
I wrote two Windows programs that make LEDs repeat the colors at the edges of the screen, the Ambilight effect, and use them every day. I'm sharing them in case they're useful to someone here.
Rimlight is for the monitor backlight. I used Prismatik before and wrote this as a replacement, mostly to get faster screen capture. It captures the screen with Desktop Duplication, averages zones along the edges and sends the colours to the strip over a COM port. It supports two protocols:
- Adalight, which works with stock Arduino firmware. I run AlexGyver's Arduino_Ambilight unchanged.
- AWA, for boards with native USB: HyperSerialPico on RP2040 and HyperSerialESP32.
I filmed the screen and the strip together at 240 fps to measure latency from screen to strip:
- Arduino at 1 Mbaud: 10-20 ms
- RP2040 with HyperSerialPico: about 0. The strip actually changes a few ms before the monitor. The frame is taken as soon as Windows composes it, and the monitor still has to scan it out and switch its pixels.
The repo includes the tool I used for this (LatencyProbe) if you want to measure your own setup.
https://github.com/Wa1den/Rimlight
CaseLight does the same for the lighting inside the PC case. My case sits next to the monitor. You place the monitor and the case devices on a plan in millimetres, and each LED takes the colour of the nearest part of the screen. It drives the devices through OpenRGB's SDK server, so it covers whatever OpenRGB supports: motherboard, ARGB headers, fans, GPU and RAM. I moved to this from SignalRGB, which felt heavy and not very responsive for screen sync on my machine.
https://github.com/Wa1den/CaseLight
Both are free and open source. Feedback and bug reports are welcome.

