I recently purchased several AS1115 three character 7-segment display devices - these:
What is the I2C address on these devices?
I’m using an i2c.scan() function on CircuitPython on a custom board and also verified on an Adafruit Metro M0 Express board. The device is not detected. On my custom board, I have a PCF2129T i2c RTC on-board, and it is detected and shows up in the list. But the above AS1115 product does not. And it doesn’t show up on the Metro, either.
Note - the Metro needed for the pull-ups to be enabled on the AS1115 board. So I did that for that verification. On my custom board, the pull-ups are already on-board, so for that case, the jumpers on the AS1115 are disabled.
Here is the program for reference:
import time import board import busio time.sleep(5) known = [ [ 0x51, "PCF2129T Real Time Clock"], ] print("") print("i2c scan test") print("") print("initializing i2c bus ...") i2c = busio.I2C(board.SCL, board.SDA, frequency=200000) print("locking the bus ...") while not i2c.try_lock(): pass print("scanning for devices ...") print("") n = 0 for device_address in i2c.scan(): print("found device at 0x%02x" % (device_address), end='') n += 1 for (a, d) in known: if device_address == a: print(": %s" % (d)) break else: print("") print("") print("found %d devices" % (n)) print("") print("done") print("")
And the output is:
i2c scan test initializing i2c bus ... locking the bus ... scanning for devices ... found device at 0x51: PCF2129T Real Time Clock found 1 devices done
I have experimented with slower frequencies, but that had no effect.
Any ideas? Is there any preliminary setup I need to do on the AS1115 board above that I need to do in order to set it’s I2C address?
Thanks for any pointers.