NodeMCU ESP8266 module connections #2482
Replies: 5 comments 6 replies
-
Example connections here: |
Beta Was this translation helpful? Give feedback.
-
I've been able to get it working, but I can't seem to get the tests to fill the screen correctly, not sure if this is hardware, or config? But the fill images seem to be too high, so it leaves the bottom of the screen not covered as per the image. |
Beta Was this translation helpful? Give feedback.
-
So I made the changes as suggested and wrote a test as below. #include "SPI.h" TFT_eSPI tft = TFT_eSPI(); unsigned long total = 0; while (!Serial); Serial.println(""); Serial.println(""); tft.init(); The only way I can get the screen to fill so far is with setting 240x280. The imge shows the results I have. So the offset does not seem to be applied? |
Beta Was this translation helpful? Give feedback.
-
Your test results indicate the y offset for that display variant is 40, so that is not compensated for in the library at the moment. Comment out these lines in your setup file:
This will set the screen area to 240x320. The use setViewport to compensate for the offset in the sketch thus:
This will move the display area and then the display area origin should be corrected. |
Beta Was this translation helpful? Give feedback.
-
Thanks. That seems to have worked. Where can these be eddited and colors added so I can add custom colors please? #include "SPI.h" TFT_eSPI tft = TFT_eSPI(); unsigned long total = 0; while (!Serial); Serial.println(""); Serial.println(""); tft.init(); tft.fillScreen(TFT_BLACK); |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am working with a AZ NodeMCU ESP8266 module and a Pimoroni 1.3" 240x240 Round LCD but I'm struggling with matching the SPI interfaces? I am using D1, D2 and A0 for other sensors already.
LCD
3.5v - 3.5v
CS -
SCK -
MOSI -
DC -
BL - Backlight connected to 3.5v
GND - GND
Beta Was this translation helpful? Give feedback.
All reactions