Post Reply 
I have a way to measure battery power
07-01-2017, 09:03 AM (This post was last modified: 07-01-2017 10:38 AM by webmasterpdx.)
Post: #20
RE: I have a way to measure battery power
I have new data as the power has gone down to the next level. Here is the table so far. I don't know if there is going to be another level before the power goes off or there is going to be a message. I haven't seen a "low power" message yet either. In this table, V is the % value returned by my little app above, HP is the % full according to the HP guys returned by the hardware, C is the color inside the battery icon in RGB hex (and english), Pixels is the number of pixels turned on in the battery icon, and Y is the y value of highest vertical pixel on, where x=315 where the color changes inside the battery icon.
Code:
V   Y  Pixels  HP   C
100 04 11     100 #008400h Bright Green
 80 07 08      75 #008400h Bright Green
 60 09 06      50 #008400h Bright Green
 30 12 03      25 #EFCE29h Yellow

I had to change to code to change 8400 to EFCE29 for it to work now that it's changed from green to yellow. I'll rewrite everything to be more efficient and work no matter what the color when I've gotten all the info I require....when battery goes down to the shutoff point.

I'll update when I get any more info as the power goes down farther (if there is any, other than the power going out).
-Donald[/code]
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: I have a way to measure battery power - webmasterpdx - 07-01-2017 09:03 AM



User(s) browsing this thread: 7 Guest(s)