Fix Bd arguments, sort sections, use Fd in SYNOPSIS.
This commit is contained in:
parent
1e9ce4fb48
commit
d46bac173c
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: leds.4,v 1.3 2001/09/11 00:08:35 wiz Exp $
|
||||
.\" $NetBSD: leds.4,v 1.4 2001/12/07 18:58:06 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1997 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
|
@ -41,11 +41,7 @@
|
|||
.Nm leds
|
||||
.Nd sun2 diagnostic Light Emitting Diodes driver
|
||||
.Sh SYNOPSIS
|
||||
.nf
|
||||
.ft B
|
||||
#include <machine/leds.h>
|
||||
.ft R
|
||||
.fi
|
||||
.Fd #include <machine/leds.h>
|
||||
.Sh DESCRIPTION
|
||||
All sun2 machines are equipped
|
||||
a diagnostic display of eight Light Emitting Diodes (LEDs), located
|
||||
|
@ -87,12 +83,16 @@ Each 8-bit pattern describes the state of the diagnostic LEDs.
|
|||
A set bit in a pattern indicates that its
|
||||
corresponding LED should be be extinguished,
|
||||
while a reset bit indicates an LED to be illuminated.
|
||||
.Sh FILES
|
||||
.Bl -tag -width /dev/leds -compact
|
||||
.It Pa /dev/leds
|
||||
.El
|
||||
.Sh EXAMPLES
|
||||
The following example uses
|
||||
.Xr awk 1
|
||||
to display the repeating animation of a single lit LED scrolling from one end
|
||||
of the display to the other, using six clock ticks between each update.
|
||||
.Bd -ragged -offset -ident
|
||||
.Bd -ragged -offset indent
|
||||
# echo 5 8 254 253 250 247 239 223 191 127 |
|
||||
awk '{ for (i=1;i<=NF;i++) printf("%c",$i+0); }' > /dev/leds
|
||||
.Ed
|
||||
|
@ -104,10 +104,6 @@ will complete successfully unless:
|
|||
.It Bq Er EIO
|
||||
A read or write starting beyond the end of the file was attempted.
|
||||
.El
|
||||
.Sh FILES
|
||||
.Bl -tag -width /dev/leds -compact
|
||||
.It Pa /dev/leds
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
.Xr ppt 6
|
||||
.Sh HISTORY
|
||||
|
|
Loading…
Reference in New Issue