How do I use a nRF24L01 on a Teensy 3.6 with the TFT and Touchscreen? I have a code which will work with the TFT Touchscreen and a separate code that operates with a RF24 and communicates with another board. But I can not figure out how to integrate them. I have looked at:
Forum
49786-Multiple-SPI-Devices-Two-s-Good-Three-s-a-Crowd?
Michael Messiner's comment - I imagine that you really should convert ALL of the SPI drivers you are using to using SPI transactions: https://www.pjrc.com/teensy/td_libs_SPI.html. That didn't seem like it got me there.
I also saw this thread
https://forum.pjrc.com/threads/4808...tor-nRF24L01-Multiple-SPI?highlight=card+rf24
and Paul said
If you *really* want to use SPI2, you'll probably have a lot of work to do editing the library.
From there I tried to run both the TFT Touchscreen and the RF24 on the main SPI bus.
The TFT and Touch screen wired per TFT Touchscreen direction.
The RF24 had parallel MISO, MOSI, SCK ,
How do I get a Teensy 3.6 to work with a TFT Touch screen and an nRF24L01. I have codes which will work with the TFT Touchscreen and a separate code that operates with a RF24 and communicates with another board. But I can not figure out how to integrate them. I have looked at:
Forum
49786-Multiple-SPI-Devices-Two-s-Good-Three-s-a-Crowd?
Michael Messiner's comment - I imagine that you really should convert ALL of the SPI drivers you are using to using SPI transactions: https://www.pjrc.com/teensy/td_libs_SPI.html. That didn't seem like it got me there.
I also saw this thread
https://forum.pjrc.com/threads/4808...tor-nRF24L01-Multiple-SPI?highlight=card+rf24
and Paul said
If you *really* want to use SPI2, you'll probably have a lot of work to do editing the library.
From there I tried to run both the TFT Touchscreen and the RF24 on the main SPI bus.
The TFT and Touch screen are wired per TFT Touchscreen directions.
The RF24 had parallel MISO, MOSI, SCK ,and CS (pin10)
The RF24 has interrrupt on 4 and CE on 6, RF24 radio(6,10);
In the attached program for the RF24 the program sends RF data to a second RF unit and the second unit receives data correctly. The second RF24 (using Arduino Mircro ) has a keypad that sends keystrokes back and this works. When I connect the TFT and Touch screen as described above data is still uploaded to the second RF24, but the keystroke data is incorrect. If I pull the TFT and Touchscreen feed to MOSI (pin 12) I again get correct data from the second RF24 keypad.
Forum
49786-Multiple-SPI-Devices-Two-s-Good-Three-s-a-Crowd?
Michael Messiner's comment - I imagine that you really should convert ALL of the SPI drivers you are using to using SPI transactions: https://www.pjrc.com/teensy/td_libs_SPI.html. That didn't seem like it got me there.
I also saw this thread
https://forum.pjrc.com/threads/4808...tor-nRF24L01-Multiple-SPI?highlight=card+rf24
and Paul said
If you *really* want to use SPI2, you'll probably have a lot of work to do editing the library.
From there I tried to run both the TFT Touchscreen and the RF24 on the main SPI bus.
The TFT and Touch screen wired per TFT Touchscreen direction.
The RF24 had parallel MISO, MOSI, SCK ,
How do I get a Teensy 3.6 to work with a TFT Touch screen and an nRF24L01. I have codes which will work with the TFT Touchscreen and a separate code that operates with a RF24 and communicates with another board. But I can not figure out how to integrate them. I have looked at:
Forum
49786-Multiple-SPI-Devices-Two-s-Good-Three-s-a-Crowd?
Michael Messiner's comment - I imagine that you really should convert ALL of the SPI drivers you are using to using SPI transactions: https://www.pjrc.com/teensy/td_libs_SPI.html. That didn't seem like it got me there.
I also saw this thread
https://forum.pjrc.com/threads/4808...tor-nRF24L01-Multiple-SPI?highlight=card+rf24
and Paul said
If you *really* want to use SPI2, you'll probably have a lot of work to do editing the library.
From there I tried to run both the TFT Touchscreen and the RF24 on the main SPI bus.
The TFT and Touch screen are wired per TFT Touchscreen directions.
The RF24 had parallel MISO, MOSI, SCK ,and CS (pin10)
The RF24 has interrrupt on 4 and CE on 6, RF24 radio(6,10);
In the attached program for the RF24 the program sends RF data to a second RF unit and the second unit receives data correctly. The second RF24 (using Arduino Mircro ) has a keypad that sends keystrokes back and this works. When I connect the TFT and Touch screen as described above data is still uploaded to the second RF24, but the keystroke data is incorrect. If I pull the TFT and Touchscreen feed to MOSI (pin 12) I again get correct data from the second RF24 keypad.