Open AkosLukacs opened 2 years ago
Thank you for the contribution, it's a great addition. I'll make some little change, so this is why I did not yet merged:
thank you for the contribution. I'm a bit late making a new version but it will come soon ;)
With this change someone with a DIY RFM95 and a Wio battery pack can read the state of charge from the Wio battery pack. Why: when I assembled mine, the MCP73831 and suitably sized LiPo was out of stock everywhere. Maybe not an issue now, but maybe helpful for some...
Usage: in config.h set HWTARGET to RFM95 and uncomment the WITH_WIO_BATTERY_PACK line.
#define HWTARGET RFM95
#define WITH_WIO_BATTERY_PACK 1
Tested with my DIY with Wio battery pack and without the Wio battery pack. Works both ways, only difference is battery voltage display shows 0V, if no Wio battery pack is installed.
Also a small tweaks on the GPS / status screen: before if GPS signal was weak, the battery voltage was also in red/orange. Now the battery voltage follows the state of charge colors like in the in the battery gauge line.
Example with no GPS signal (not visible on the image, but this is a DIY with Wio battery pack):