Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Nov 2003 12:14:18 +0100
From:      Poul-Henning Kamp <phk@phk.freebsd.dk>
To:        current@freebsd.org
Cc:        soekris-tech@lists.soekris.com
Subject:   HEADSUP:  Soekris and generic LED/lamp support in FreeBSD-current
Message-ID:  <29067.1067858058@critter.freebsd.dk>

next in thread | raw e-mail | index | archive | help

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@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?29067.1067858058>