I believe that there are two inputs, both are digital and protected through
a transistor.  You can get the hardware specifics by signing up for the
Hardware Developer's Kit.

The high level approach would be to setup your app as the one triggered by
the hotsync button on the cradle.  You can set prefs manually or
programmatically.  Your device would fire off the hotsync button (so to
speak) when it is in trouble.

An intermediate approach would be to poll the I/O pin (see the Dragonball
manual from Motorola, or the freeware DISASM for more info) in response to
an alarm.  This would work for occasional polling (every 30 minutes, etc.)

The lowest level approach would be to install your own interrupt handler for
the pin.  This is more power efficient and responsive than polling, but a
lot trickier and, as far as I know, undocumented and unsupported.  You can
sign up for the Source Code program to (presumably) see how the hardware
buttons operate.

Good Luck,
-jjf

-----Original Message-----
From: Richard Anderson [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 21, 2000 4:33 AM
To: Palm Developer Forum
Subject: Reading a peripheral battery level (either analog or digital)


Anyone know how to do this. I can provide either a voltage or a simple
digtal low battery warning. I cant find anything anywhere that tell you how
to read inputs. The Palm companion docs says that there is a general purpose
input pin.

Someone please help me, Ive spent over 20 hours and several emails to this
group still with no luck. Someone, somewhere must know how to read/setup an
input pin on a Palm V.

Please Help

Rik

-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to