/Arduino_Vcc

Arduino library to read VCC supply level without external components

Primary LanguageC++GNU Lesser General Public License v2.1LGPL-2.1

arduino_vcc

Arduino library to read VCC supply level without external components This version also can be run on Logicgreen LG8F328P microcontroller.

Warning! Be aware if running this program on ATmega, becase switching reference voltage to VCC will drive AREF pin with VCC. So if an external referece is connected to AREF pin it will be shorted to VCC.

Unfortunately it doesn't work on Logicgreen LGT8F328D. This because if ADMUX selecting reference voltage as VCC instead of internal reference then internal reference will be shut down.