Re: A83: Battery level?
[Prev][Next][Index][Thread]
Re: A83: Battery level?
On 18-Jan-99, Dan E wrote:
>Hmm...can you check relative values or just good/bad?
>-Dan
Just good/bad I'm afraid. But someone came up with a great idea on this list
quite a while ago; if you want to code a battery meter, just read the user's
contrast setting! =)
Linus
.--> ____
| \OO/ - -- --- ------ Linus Akesson -- http://fly.to/linus.world -.
`-OoO-\/-OoO---------------------------------------------------------------'
If it works, don't fix it.
----> MrCookie v1.1 <-----
>>
>>On 18-Jan-99, Stefan Lennartsson wrote:
>>
>>>Do anyone know how to check the battery level?
>>
>>>/Stefan
>>
>>Sure, check bit 0 at port 14h (though you might have to write some stuff to
>>some other ports first, I'm really not sure about this). Now, the OS reads
>>the battery at startup, and if it was ok, bit 5 in iy+18h is set, and thus
>>you can just check this bit.
>>
>>Linus
>>
>>.--> ____
>>| \OO/ - -- --- ------ Linus Akesson --
>http://fly.to/linus.world -.
>>`-OoO-\/-OoO---------------------------------------------------------------
>'
>> Smash forehead on keyboard to continue.....
>> -------------> MrCookie v1.1 <-------------
>>
>>
References: