• Welcome to SCdev.org. Please log in.

Welcome to the new SCdev forums!

Battery Level Access

Started by kalus, November 16, 2006, 10:37:43 AM

Previous topic - Next topic

kalus

Is there any function in any currently available library that returns how much battery power the DS has?

Lick

Nope. There's no such thing.

But MAYBE you can check the green/red status over a period of time and see how much the ratio is.
Simplified: green, green, red = 66%

Devil_Spawn

not quite sure if you just said this lick =\

but i remember reading on nintendos site that red= around 1 third of batt power left

Jabba

Red is thirty percent, im sure

tdtd

I've always wanted to do that. Even the PSP has a battery indicator that shows the amount of battery, and some emulators have a percentage of the battery as well. Is it possible to write some homebrew program to check the battery level? Or better yet, maybe the next SC firmware can have this built in?

P.S. Where is this indicator your talking about. Where is this green, green, red thingy. Can someone post a pic of what we should be loooking at?
\__/) This is bunny. Copy bunny into your
(o'.'o) signature to help him gain world
(")_(") domination.

Romiress

=[__]=] DS Lite Polar White : Import white Keys Factory Carrying Case
[+[__]::] SuperCard SD Mini : 1 GB Kingston x80 MiniSD
1 GB Kingston x80 Taiwan MicroSD
Soon:
Supercard DS(One)

Lick

Quote from: "Devil_Spawn"not quite sure if you just said this lick =\
Why?  :?:

Devil_Spawn

Quote from: "Lick"
Quote from: "Devil_Spawn"not quite sure if you just said this lick =\
Why?  :?:

i thought maybe you means green was 66% of the charge, leaving a third red

also, what is quite cool is if ur batters is at JUST the right level, when ur playing a game with music, the light will flashh red-green-red-greend along with the music

Lick

No I mean like for 30 frames you keep track of the green-or-red-bit (it's either 0 or 1) and you check how the ratio is.

If 15 in the 30 tracked frames were 0, and the other 15 were 1, then your battery level is roughly at 50%.

- This is great experimenting material! -

shaz

Well if you go into the boot menu, at the top, there is a icon that says how much battery you have left. So battery access is PossIBLE!!

Devil_Spawn

Quote from: "Lick"No I mean like for 30 frames you keep track of the green-or-red-bit (it's either 0 or 1) and you check how the ratio is.

If 15 in the 30 tracked frames were 0, and the other 15 were 1, then your battery level is roughly at 50%.

- This is great experimenting material! -

the ds knows when the light goes red,thats for sure, but i dunno about how it works internally/ in the hardware, sounds like an interesting idea though