HEADSUP: Soekris and generic LED/lamp support in FreeBSD-current

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Mon, 03 Nov 2003 12:14:18 +0100
I have introduced the CPU_SOEKRIS option to enable soekris hardware
specific options like the error LED.

I made the support for flashing lamps generic and as a result the
/dev/soekris-errled is now called /dev/led/error

Notice the slightly changed sematics of the 'f%d'.

I have also added support for morse (Yell at me if I didn't get
it right):
	/usr/games/morse -l soekris rocks > /dev/led/error

Support for the 4801's error led comes when Soren tell me how
to fiddle it.

It is now relatively simple to add more LED's on the GPIO pins,
email me if you need help with this.

The LED is controlled by ascii strings as follows.
  
  0       Turn off.
  1       Turn on.
  f       Flash: _-
  f2      Flash: __--
  f3      Flash: ___---
  f4...f9 etc.
  d%d     Digits.  "d12": -__________-_-______________________________
  s%s     String, roll your own:
          'a-j' gives on for (1...10)/10 sec.
          'A-J' gives on for (1...10)/10 sec.
          'sAaAbBa': _-_--__-
  m%s     Morse
          '.' dot
          '-' dash
          ' ' letter space
          '\n' word space

If somebody has time to hash out a led(4) man page for me I would
be very grateful.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk_at_FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
Received on Mon Nov 03 2003 - 02:14:22 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:27 UTC