From: Ernst B. <e.b...@xe...> - 2006-08-08 18:10:00
|
Hi, On Saturday 05 August 2006 23:30, Till Harbaum wrote: > Hi, > > i had two spare hours, Same here ;) > my old LED matrix display (for which i have never > really written an application) and lcd4linux. So i wrote a driver for what > probably is the biggest (roughly 60 x 25 cm) and power hungry > (20A @ 5V) display available to lcd4linux. Now, after your driver for the biggest Display, I have a driver for the most simple (only 4 LEDs on average), but probably the most common display: A lcd4linux driver to control the port indicator LEDs on common USB Hubs. The driver is pretty straightforward: you specify the vendor/product ID for your hub in config, it then searches for the device, asks if it has controllable LEDS, and how many, and then initializes them as GPOs for your blinking pleasure. The per-port GPOs accept the following values: 0 : Automatic color (display link state etc) 1 : Amber 2 : Green 3 : Off Unfortunatly, my HUBs are all green-only, so I couldn't test "amber". The normal function of the HUB isn't interrupted while the driver runs. An example config file is attached. Have fun with it, /Ernst |