Using this command line tool, you can control (currently: only switch off) all LEDs connected to the LAN7800 ethernet USB controller.
To access the registers of the LAN7800 chip via USB, you need to run the command as root:
This command would turn off both LEDs of an Raspberry 3 B+. For older Raspberry models, you need to use lan951x-led-ctl because they have a different LAN chip
You need to have cmake and libusb-1.0 installed (depending on your distro maybe also libusb-dev). Just call ./compile.sh
The source can be found on my git repo: lan7800-led-ctl.git