retro-go icon indicating copy to clipboard operation
retro-go copied to clipboard

MRGC and Gamebox battery voltage

Open Kelly97582044 opened this issue 2 years ago • 2 comments
trafficstars

Hi ducalex:

MRGC battery voltage V = 3 * data[4] * 3.3 / 256 there are two 14500 battery, so one 14500 battery voltage is : V / 2

//============================================== game box(mini GBA) battery voltage V = 256 * 3.3 / ( 2 * data[4] ) = 128 * 3.3 / data[4] if data[4]==255 ,the battery is charging

Kelly97582044 avatar Nov 05 '23 09:11 Kelly97582044

If I understand you correctly you're suggesting we put this in our mrgc-g32/config.h:

#define RG_BATTERY_CALC_VOLTAGE(raw) (3 * (raw) * 3.3f / 256)

?

ducalex avatar Nov 06 '23 16:11 ducalex

yes, if the voltage value is correct. my english is not good ,can not write so many words,but i think you can understand.

Kelly97582044 avatar Nov 07 '23 00:11 Kelly97582044

I've added your changes in 53717b767e27218951f8dcd776e0aa759e3eb071.

Thanks!

ducalex avatar Feb 29 '24 01:02 ducalex