I have a code that I want to use to calculate the energy gained from my solar panel, and I have a problem converting the three lines below:
shuntvoltage = ina219.getShuntVoltage_mV();
busvoltage = ina219.getBusVoltage_V();
current_mA = ina219.getCurrent_mA();
As ina219 is the name of the variable below:
Adafruit_INA219 ina219;