Skip to content
This repository has been archived by the owner on Jun 22, 2018. It is now read-only.

Class Instantiation

Arnd edited this page Jun 22, 2018 · 3 revisions

INA226();

‼️ This library is now deprecated and has been replaced by the INA library. All existing INA226 functionality and functions have been implemented ‼️

The INA226 class instantiation has no parameters and does not actually perform any actions. The begin() function call does all of the heavy lifting and initialization. This split is done since some of the initialization functionality might not have been defined at the point in time that the INA226 class is instantiated, this is due to the way that the Arduino IDE works and there is no control of that from the programmer's side.


Example:

INA226_Class INA226(); // instantiate the class
/* Program code follows */