Calculator Community > ASM

Battery Routine

(1/4) > >>

ACagliano:
There is a calc app called CLOCK that installs a hook that displays the time and date on the homescreen (and, if you want other menus, too). Is it possible to do the same with a battery meter? Have one displayed all the time on the homescreen If so, can someone make one, cuz that would be epic.

calc84maniac:
The problem with this is that we can't really read battery level very accurately. It's pretty much battery low/not-low (which the OS tells you on startup anyway)

DJ Omnimaga:
Wasn't there a routine that told you if batteries were getting low shortly before the calc starts telling you on Startup, though? I recall it returning low batt code even if the startup msg didn't display anywhere yet (even on Garbage collections)

ACagliano:
What about the battery indicators that return a 1-4 rating. If i could just have like a number 1-4 always on my screen, i'd be satisfied.

Madskillz:

--- Quote from: DJ Omnimaga on April 26, 2010, 03:51:51 pm ---Wasn't there a routine that told you if batteries were getting low shortly before the calc starts telling you on Startup, though? I recall it returning low batt code even if the startup msg didn't display anywhere yet (even on Garbage collections)

--- End quote ---
You have the interrupts to go by from and like calc said it's pretty inaccurate.
There seems to be something similar to what Omnimaga was talking about here:
http://www.ticalc.org/archives/files/fileinfo/358/35857.html

As well as something similar to what ACagliano was looking for here:
http://www.ticalc.org/archives/files/fileinfo/155/15595.html
However this is for the 83...but with the source included it should be a relatively easy thing to get working on an 83+/84+
I can look at it a little later tonight if you want.

Navigation

[0] Message Index

[#] Next page

Go to full version