Closed Cralex closed 5 months ago
Makes sense to me and I'm guessing it's as simple as calling rg_input_read_battery
in rg_gui_debug_menu
.
Do you want to do it? Or I can do it if you prefer to skip the whole PR process but I won't be able to test it right now.
Added in my pull request. This will cause the percentage and voltage to appear in the debug menu. The menu doesn't refresh over time, so you'd need to check back if you're looking for something to change.
I had some help from AI to put this in, so it could probably be nicer with a human touch, but it's a start and it works.
Yeah live update is possible but pretty complicated with our dialog system :(
Looking good, I left a comment on the PR just to double check something and then we can merge it.
This was completed in PR#92.
As far as I'm aware, it's possible to see the battery level in two places: over serial when connected to power and the graphical icon. I'd like to see it added to the Debug menu as well if possible. I've got two (sluggish) ports in progress and I feel that it would be helpful to be able to watch a numerical battery estimate go down over time in the menu somewhere, just to help me know if I've got the battery gauge configured correctly. (Over serial, there's a good chance it would be fully charged anyway, or I might not have it set up right and it'd show a false 0 or 100 that never changes.)