megaAVR and Smart Battery devices