LAN7800 LED control

Using this command line tool, you can control (currently: only switch off) all LEDs connected to the LAN7800 ethernet USB controller.

Usage

To access the registers of the LAN7800 chip via USB, you need to run the command as root:

root@raspi:~# lan7800-led-ctl --led0=0 --led1=0

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

Compiling

You need to have cmake and libusb-1.0 installed (depending on your distro maybe also libusb-dev). Just call ./compile.sh

Sourcecode / Download

The source can be found on my git repo: lan7800-led-ctl.git