The LED will indeed continue to blink red on the i705. The
AttnDoSpecialEffects API just invokes the same blink pattern that the
attention manager itself uses. On the m500 series, this pattern terminates
after a set number of iterations. On the i705, this pattern continues
indefinitely.

There is no API available within the PalmOS SDK for turning off the LED.
There is an API in the hardware access layer, but it's not part of the SDK.
Since the attention manager fetches this blink pattern from a resource, you
can change the behavior of both the attention manager and those applications
that use AttnDoSpecialEffects by creating your own version of this resource
in your own resource database that you open on device reset and sync notify,
and that you set to stay open even after your application exits. This takes
advantage of the fact that when the OS tries to get the value of a resource,
it looks through the chain of open resource databases, starting with the
database that was opened most recently, until a resource with the specified
type and ID are found.

By comparing the resources of an m500 series device with those of the i705,
you should be able to figure out what resources you need to include in this
database. Look at 'tint' resources in the range from 13500 to 13512. I wish
all this was in the public headers of the SDK. Remember to check the device
ID to make sure you're on an i705 before hacking these resources!

An alternative simpler approach is to just use the attention manager rather
than AttnDoSpecialEffects. That way, the attention manager will take care of
turning off the LED when there are no more attention requests pending.
-- 
Peter Epstein

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