GlennBabecki
Member
I understand how the basic SPI library functions behave, but I am wondering how one specifies a specific SPI port on devices like the Teensy 3.5 and 3.6 which have 3 SPI ports. I started to pick apart the SPI (and related) libraries to see how they work but it wasn't really clear if there is a mechanism to do this in the Arduino, Adafruit, or Teensyduino libraries.
I started to look at this in conjunction with the ILI9341 TFT display with the XPT2046 touch controller while thinking about incorporating another display and other SPI peripherals in a project. It almost seems serendipitous how the XPT2046 library makes use of the ILI9341 SPI settings for the common bus signals when the two devices are on the same bus. While I could put more SPI devices on one SPI bus, I started to wonder how to make use of the other SPI busses on processors with more than one SPI bus.
If my inquiry makes any sense I would deeply appreciate an explanation or pointers to references that explain how the libraries work with multiple SPI busses.
Thanks,
Glenn
I started to look at this in conjunction with the ILI9341 TFT display with the XPT2046 touch controller while thinking about incorporating another display and other SPI peripherals in a project. It almost seems serendipitous how the XPT2046 library makes use of the ILI9341 SPI settings for the common bus signals when the two devices are on the same bus. While I could put more SPI devices on one SPI bus, I started to wonder how to make use of the other SPI busses on processors with more than one SPI bus.
If my inquiry makes any sense I would deeply appreciate an explanation or pointers to references that explain how the libraries work with multiple SPI busses.
Thanks,
Glenn