Based on the AS1115 class it appears the hex address can be changed, however, I’m not having any luck getting two displays working independently. Is my assumption correct, or am I not able to change the address via software?
From the header file:
SELF_ADDRESSING = 0x2D, ///< Uses 2 of the 16 keys to change the device’s address.
And the init code from the cpp file:
void AS1115::init(uint8_t digits, uint8_t intensity)
{
_digits = digits;
Wire.beginTransmission(0x00);
Wire.write(SHUTDOWN);
Wire.write(NORMAL_OPERATION | RESET_FEATURE);
Wire.endTransmission();
**if(_deviceAddr != 0x00) {**
** Wire.beginTransmission(0x00);**
** Wire.write(SELF_ADDRESSING);**
** Wire.write(1);**
** Wire.endTransmission();**
** }**
writeRegister(DECODE_MODE, 0x00);
writeRegister(SCAN_LIMIT, digits - 1);
setIntensity(intensity);
}