-
Notifications
You must be signed in to change notification settings - Fork 41
getDeviceName()
Arnd edited this page Jun 25, 2018
·
2 revisions
This function returns a CHAR[7] string containing the device Name. The values are as follows:
Device | Device Name |
---|---|
INA219 | INA219 |
INA220 | INA219 |
INA220-Q1 | INA219 |
INA226 | INA226 |
INA230 | INA230 |
INA231 | INA231 |
INA260 | INA260 |
INA_Class INA(); // Instantiate the class
void setup() {
uint8_t deviceCount = INA.begin(10,100000); // 10 Amp Maximum bus with a shunt resistor of 0.1 Ohm
Serial.print("Found ");
Serial.print(deviceCount);
Serial.println(" INA2xx devices");
for (uint8_t i=0;i<deviceCount;i++) {
Serial.print("Device ");
Serial.print(i);
Serial.print(" is a \"");
Serial.print(INA.getDeviceName(i));
Serial.println("\"");
} // of for-next all devices
} // of setup
void loop() {
// code Comes here
} // of main loop
Overview
Installation
Class Instantiation
begin()
setI2CSpeed()
getBusMilliVolts()
getBusRaw()
getShuntMicroVolts()
getShuntRaw()
getBusMicroAmps()
getBusMicroWatts()
getDeviceAddress()
getDeviceName()
setMode()
setAveraging()
setBusConversion()
setShuntConversion()
reset()
waitForConversion()
conversionFinished()
alertOnConversion()
alertOnShuntOverVoltage()
alertOnShuntUnderVoltage()
alertOnBusOverVoltage()
alertOnBusUnderVoltage()
alertOnPowerOverLimit()