• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP32 SPI PORT Switching

Q&A Forum › Category: ESP32 › ESP32 SPI PORT Switching
0 Vote Up Vote Down
richardbernard.bernard asked 6 years ago

I am using a tft display with touch controller on VSPI, and Lora RFM95 chip on the HSPI, They don’t like each other..
I can use my TFT display and touch without Lora enabled (Lora.h) no problems, but when I enable lora I cannot use the TFT touch, seems like the VSPI port is being switched off when I turn on Lora. 
Any solution would be appreciated besides bit banging the TFT.

3 Answers
-1 Vote Up Vote Down
Sara Santos Staff answered 6 years ago

Hi.
One solution can be redefining the pins used as SPI, instead of the pins used by default.
Here are some links that can help:
https://github.com/espressif/arduino-esp32/issues/1219
https://github.com/espressif/arduino-esp32/issues/790
https://www.esp32.com/viewtopic.php?f=13&t=5212&start=10

It seems that you can pass custom pin values in SPI.begin() function.
Let me know if this helps.
Regards,
Sara

0 Vote Up Vote Down
richardbernard.bernard answered 6 years ago

Thanks Sara for the Info, I’ll try it this weekend and advise.

0 Vote Up Vote Down
Sara Santos Staff answered 6 years ago

Ok.
Then, let me know the results.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.