Leds v 0.5 for BeOS for PowerPC (PR and beyond)

This little program is copyrighted 1997 Benoit TRIQUET.
No guaranty, use at your own risks (especially if it fries your BeBox's leds).

This is an update to version 0.2 : it occured to me that if you were displaying
a level one tenth of the time you were displaying another, lower, level, you
would get, through aliasing, a smoothing effect were the bottom leds would be
bright green, then there would be a range of medium green leds, then the leds
which are off.
So let's use that to get 2 displays at the same time :*O !
- I tried displaying the average power over a longer time frame. This was
version 0.3, not so satisfying : the average on a longer time frame is not
necessarily higher than the one on the shorter frame.
- I tried displaying the maximum level over a given number of levels, then the
next one, and so on. Version 0.4, a bit too static.
- So here is version 0.5 : the darker leds show the maximum level when the level
gets to a maximum, then slowly go down until the next maximum. Just like the
digital vu-meter on your HiFi PA :-))

(I also corrected an incorrect signature)

The previous readme :
No source code, because I'm using an utility library I can't release the source
code. But if you want to play with the leds, here's what you need to know :

- you access ISA registers through an area whose name is "isa_io"
- then you find an ISA address at its address plus the address of the area.
- the leds register is a byte at 0xc00, bits 0-3 are for the rightmost leds,
bits 4-7 for the leftmost ones. You control the number of lit leds.
- the kernel regularly pokes cpus activities. If you're fast enough you won't
see the cpu activites. Fast enough seems to be an update with your value every
0.5 to 5 milliseconds. YMMV :)

This program seems to be bug-free. If you find any i will correct them.
Don't bother asking for improvements, this program is just a 2-hour hack I
wrote to enhance the home studio of a friend of mine who just put his BeBox
near his setup :-)

This program is freeware for BeBox owners, $20 for others.

Enjoy !
Benoit TRIQUET <btriquet@club-internet.fr>
