-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Hello, how should this library be used to read the value in volts of a battery in pin A2, I have this:
VoltVCC = SystemStatus (). GetVCC ();
SystemStatus (). Pin_batt = PB4; // I tested with A2
VoltBateria = SystemStatus (). GetVBatt (VoltVCC);
I have the ATTiny is powered by 5v and the battery is 1.5v,
and if the function getVCC () works for me, but I do not know how to do it with getVBatt (). always returns 0
Metadata
Metadata
Assignees
Labels
No labels