Comments (9)
#14 See this answer.
from ttgo-t-display.
thanks! Will give it a try.
Quick question, since I will need also 2 more free spare GPIOs...
Which are the GPIOs that can still be used overall?
from ttgo-t-display.
You can use almost all other GPIOs.
Have a look at the Pinmap. Many GPIOs are free.
from ttgo-t-display.
I am asking because respect the usual ESP32 the pinouts for SPI doesn't look the same.
Versus the T-Display... (marked in red the pins in scope)
from ttgo-t-display.
Here I am comparing the ESP32 pinout and the pinouts from the T-Display schematics.
Now makes everything more clear. Though a doubt still remain regarding VSPI and HSPI... how do you enable the VirtualSPI (VSPI)? Just connect the device to those Pins and then declare in the sketch and everything works?
from ttgo-t-display.
HSPI is only on 27,26,25 (MOSI, MISO, SCLK) - at least from my experimentation .. CS pin can be anything.
VSPI can be on any free pin..
from ttgo-t-display.
I used this for sd card access.
SPIClass spiSD(HSPI);
pinMode(2, OUTPUT);
spiSD.begin(13,12,15,2); //SCK,MISO,MOSI,SS
from ttgo-t-display.
I wanted to connect a second display (ILI9341) on a secondary SPI.
While 27,26,25 (MOSI, MISO, SCLK) and 33 CS is ok, I found out that the pins 37 38 39 do not work for DC (Data command), RST (Reset) (or CS...)
Pins on the other side (17,2,15,12) works for DC, RST etc.
I ended up with:
#define ILI9341_DRIVER
#define USE_HSPI_PORT
#define TFT_MISO 27
#define TFT_MOSI 26
#define TFT_SCLK 25
#define TFT_CS 2
#define TFT_DC 33 // Data Command control pin
#define TFT_RST 32 // Reset pin (could connect to NodeMCU RST, see next line)
from ttgo-t-display.
I am having an issue with using 3 devices (SD, 9341TFT, & RM3100) on SPI on a TTGO-T4v1.3.
My code works fine on a STM32 Nucleo152 but I cannot get the SPI bus to work on the T4. As the SD and TFT are built in on the T4, I only have access to the jumper pins and I chose SCLK-32; MISO -35; MOSI-34; CS-33 for my RM3100 magnetometer sensor.
The documentation re SPI on the T4 is a bit lacking, and I assume the SD and the TFT are both on default VSPI. I have tried the RM3100 as a HSPI but got nowhere; nor does it work as a VSPI. The TTGO-T4 pinout diagrams show the SD using SCLK -14, MISO-02, MOSI-15, CS-13 which are not the HSPI defaults and the TFT using SCLK -18, MISO-12, MOSI-23, CS-27 which are not VSPI defaults.
I tried LewisXHE's code for SD with the TTGO-T display and had no luck with that either. I am not sure whether the problem is a lack of understanding by me. I learn by example and I haven't been able to find any examples of external sensors using SPI on T4. Any ideas?
from ttgo-t-display.
Related Issues (20)
- Reintroduce the MIT Licence HOT 1
- What means soder option on the product page to order? HOT 1
- Connection lost HOT 1
- ESP32 doesn't wake-up from deep sleep when battery goes flat
- Ghosting old artifacts
- Display fails when code uploaded by PlatformIO HOT 1
- I2C Connection Issue with PN532 HOT 1
- T-Display Blank Screen HOT 3
- WebSocket Client Sample for LILYGO board
- SPI SDcard not working with LilygGO T-Display
- loading library from h:\...\Arduino\libraries\T-Display-S3: invalid library: no header files found
- 3D files
- TTGO T-display C1101
- How to make circuitpython work? HOT 3
- blank screen but still uploads code HOT 3
- Does readrect() work on this display HOT 1
- LilyGo T display won't mount. HOT 4
- TTGO T-Display v1.1 serial port problems HOT 2
- Crashing LVGL with Wifi
- Getting GPIO Error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ttgo-t-display.