#5 NodeMCU/ ESp8266 Tutorial: ST7735 LCD with Adafruit Library
Вставка
- Опубліковано 24 гру 2018
- In this video I explain how to connect an ST7735 LCD with esp8266 and use Adafruit GFX library.
The Pin Connection:
LCD ESP8266
VCC 3.3V
GND GND
CS D8
Reset 3.3v
A0 or D/C D4
SDA (MOSI) D7
SCK D5
LED 3.3V
The libraries are:
Adafruit GFX library: github.com/adafruit/Adafruit-...
St7735 LCD library: github.com/adafruit/Adafruit-... - Наука та технологія
Awesome tutorial ! Simple and direct !!! I really appreciate your video.
That works for me! THANKS A LOT!
Today i subscribed your channel for your good videos and information. So keep it up
Today I subscribed your channel for you very good videos. So keep it up.
Do you also have other tutorial that teach how to draw graphic on this TFT display?
Hi! I see that you don't have any Arduino connected, are you executing it directily to the ESP8266? Thanks!
Yes
Not working for some reason, Using the same screen & device (Built fine and Serial console is outputting the correct text).
It worked for mr! Try a different lcd/ dev board.
why aren't you selecting the libraries for install directly from the arduino ide library manager?
Still thanks alot for the upload, it is very clear. Keep up the good work!
There are multiple ways to do a work. There is no wrong way as long as it works. This is my way......
error compiling for board nodeMCU 1.0 ............................
I have this problem, could you help me please
IT worked if we change:
#ifdef ADAFUIT_HALLOWING
#define TFT_CS 39
#define TFT_RST 37
#define TFT_DC 38
#define TFT_BACKLIGHT 7
My ST7735 screen is white
Me too...
@@RayanTheTechnician I resolved mine. change your code for the output pin declarations
@@RayanTheTechnician remove the 2 codes above it of other arduino declarations
@@nurhakimnor5748 Thx !! but now i have "Error compiling for board NodeMCU 1.0 (ESP-12E Module).
" how i fix this pls??
logs:
Arduino: 1.8.13 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Serial, 115200, 4M (3M SPIFFS)"
C:\Users\ELVE~1\AppData\Local\Temp\arduino_modified_sketch_62477\graphicstest.ino: In function 'void setup()':
C:\Users\ELVE~1\AppData\Local\Temp\arduino_modified_sketch_62477\graphicstest.ino:111:397: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
testdrawtext("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur adipiscing ante sed nibh tincidunt feugiat. Maecenas enim massa, fringilla sed malesuada et, malesuada sit amet turpis. Sed porttitor neque ut ante pretium vitae malesuada nunc bibendum. Nullam aliquet ultrices massa eu hendrerit. Ut sed nisi lorem. In vestibulum purus a tortor imperdiet posuere. ", ST77XX_WHITE);
^
C:\Users\El�ve\Documents\Arduino\libraries\SPI\SPI.cpp: In member function 'void SPIClass::end()':
C:\Users\El�ve\Documents\Arduino\libraries\SPI\SPI.cpp:102:22: error: 'SPIPCS1DIS' was not declared in this scope
SPI1P |= SPIPCS1DIS | SPIPCS0DIS | SPIPCS2DIS;
^
C:\Users\El�ve\Documents\Arduino\libraries\SPI\SPI.cpp:102:35: error: 'SPIPCS0DIS' was not declared in this scope
SPI1P |= SPIPCS1DIS | SPIPCS0DIS | SPIPCS2DIS;
^
C:\Users\El�ve\Documents\Arduino\libraries\SPI\SPI.cpp:102:48: error: 'SPIPCS2DIS' was not declared in this scope
SPI1P |= SPIPCS1DIS | SPIPCS0DIS | SPIPCS2DIS;
^
C:\Users\El�ve\Documents\Arduino\libraries\SPI\SPI.cpp: In member function 'void SPIClass::setHwCs(bool)':
C:\Users\El�ve\Documents\Arduino\libraries\SPI\SPI.cpp:125:23: error: 'SPIPCS2DIS' was not declared in this scope
SPI1P &= ~SPIPCS2DIS;
^
C:\Users\El�ve\Documents\Arduino\libraries\SPI\SPI.cpp:126:22: error: 'SPIPCS1DIS' was not declared in this scope
SPI1P |= SPIPCS1DIS | SPIPCS0DIS;
^
C:\Users\El�ve\Documents\Arduino\libraries\SPI\SPI.cpp:126:35: error: 'SPIPCS0DIS' was not declared in this scope
SPI1P |= SPIPCS1DIS | SPIPCS0DIS;
^
C:\Users\El�ve\Documents\Arduino\libraries\SPI\SPI.cpp:132:26: error: 'SPIPCS1DIS' was not declared in this scope
SPI1P |= SPIPCS1DIS | SPIPCS0DIS | SPIPCS2DIS;
^
C:\Users\El�ve\Documents\Arduino\libraries\SPI\SPI.cpp:132:39: error: 'SPIPCS0DIS' was not declared in this scope
SPI1P |= SPIPCS1DIS | SPIPCS0DIS | SPIPCS2DIS;
^
C:\Users\El�ve\Documents\Arduino\libraries\SPI\SPI.cpp:132:52: error: 'SPIPCS2DIS' was not declared in this scope
SPI1P |= SPIPCS1DIS | SPIPCS0DIS | SPIPCS2DIS;
^
In file included from C:\Users\El�ve\Documents\Arduino\libraries\SPI\SPI.h:24:0,
from C:\Users\El�ve\Documents\Arduino\libraries\SPI\SPI.cpp:22:
C:\Users\El�ve\Documents\Arduino\libraries\SPI\SPI.cpp: In member function 'void SPIClass::setFrequency(uint32_t)':
C:\Users\El�ve\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266/Arduino.h:130:16: error: expected unqualified-id before '(' token
#define abs(x) ((x)>0?(x):-(x))
^
C:\Users\El�ve\Documents\Arduino\libraries\SPI\SPI.cpp:270:33: note: in expansion of macro 'abs'
auto cal = std::abs(static_cast(freq) - calFreq);
^
C:\Users\El�ve\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\cores\esp8266/Arduino.h:130:16: error: expected unqualified-id before '(' token
#define abs(x) ((x)>0?(x):-(x))
^
C:\Users\El�ve\Documents\Arduino\libraries\SPI\SPI.cpp:271:34: note: in expansion of macro 'abs'
auto best = std::abs(static_cast(freq) - bestFreq);
^
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).
@@nurhakimnor5748 That solved my issue. Looks like it picks up the other definition for ESP8266 by default
始まるまでのCMが長い‼︎
damm, what a terrible and confusing wiring lol