Use of SPI on TTGP T-display

I am using the T_display in a project where I want to implement automatic gain control of an amplifier, and I want to control a digital potentiometer. I would much prefer to stick to DIP packages, and after a search, I find that that means I will have to use the SPI interface to control the digital resistor.

However, the SPI interface on the T-display is currently assigned to pins to control the OLED, which are not broken out on the board.

So my resistor only needs SCLK and MOSI. Can I temporarily reassign those pins on the ESP32 to talk to the resistor, and then give them back to the display?

Thanks in advance for any suggestions.

jrdoner

To properly implement SPI you need three wires that go to all units, MISO, MOSI, and CLK. Now all that is need is to tell the wanted device is has been selected, and that is done with the SEL line. Look into the devices and determine how the SEL works on them. If you are lucky one may be high the other low, then you can with care share one output pin but using separate selects is best.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.