Project: Analog Midi Controller. A series of rotary encoders send midi data. There is one small OLED display for each rotary encoder to indicate the current value of the parameter (a circle with a segment simulates the position of a potentiometer).
Device: Arduino MEGA
Current status of the program: it is working fine with one single rotary encoder and one single display (connected directly to the Arduino I2C, not to the Multiplexer). I include the sketch here as an attached file (disclaimer: I am a beginner; I’ve made that program cannibalizing small parts from different sources and using many hours of trial-and-error)
I have connected the I2C displays to the multiplexer and I have run the test script from Adafruit to verify that the multiplexer is detecting the I2C displays:
TCA Port #0
Found I2C 0x3D
TCA Port #1
Found I2C 0x3C …
So far so good! I know that the multiplexer detects the displays, but I am stacked here. I don’t know how to print to the different I2C displays from my program.
If someone could kindly provide a sample sketch showing how to use multiple i2C with the TCA9548A multiplexer I would be very grateful
Is there some basic example for printing “Hello World 1”, “Hello World 2”, etc on multiple displays using the TCA9548A?
AxeAnalog_C10.ino (10.2 KB)