We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the snipplet provided, the values to the Adafruit_I2CRegisterBits should be ADC_Config, 4, 12, just like in the setMode() function.
ADC_Config, 4, 12
INA228_MeasurementMode Adafruit_INA228::getMode(void) { Adafruit_I2CRegisterBits mode = Adafruit_I2CRegisterBits(Config, 3, 0); return (INA228_MeasurementMode)mode.read(); }
The text was updated successfully, but these errors were encountered:
Good catch. Just adding datasheet info for ref:
Register should be ADC_Config:
ADC_Config
Bits should be 15-12 (4 bits total, shifted by 12):
Sorry, something went wrong.
setShunt()
No branches or pull requests
In the snipplet provided, the values to the Adafruit_I2CRegisterBits should be
ADC_Config, 4, 12
, just like in the setMode() function.The text was updated successfully, but these errors were encountered: