!
SET_PERI_REG_MASK(SPI_PIN(HSPI), SPI_CS1_DIS |SPI_CS2_DIS)
If normal GPIO is used for CS, the following is needed:
#define DISABLE_CS()\
SET_PERI_REG_MASK(SPI_PIN(HSPI), SPI_CS0_DIS |SPI_CS1_DIS |
SPI_CS2_DIS)
Location:
\app\include\user_lcd.h in the DEMO.
Please refer to Chapter 4 EPS8266 SPI Communication User Guide for more
information about other host SPI communication.
5.4. Display Screen Console Program DEMO
The DEMO is used to print simple strings on display screens, including LCD for parameter
display and debug printing. DEMO driver supports two screens currently, i.e. 3.5-inch
TM035PDZV36 480*320 TFT colored LCD and Zhong JY. Tech 1.3-inch 128*64OLED. The
driver programs can communicate with the display screen via ESP8266 HSPI interface
under Overlap mode.
Under SPI Overlap mode, the two screens and 8266 external program flash chip share
SCLK, MOSI and MISO signals on the SPI bus. Different CS signals are used in different
device.
5.4.1. Connection Description
Zhong JY. Tech 1.3-inch OLED Connection
The signals in OLED, i.e. SCLK, MOSI, CS, DC, RESET connects to the pins in 8266, i.e.
SD_CLK, SD_DATA1, GPIO0, MTCK, GPIO5 respectively. The VCC in OLED and GND
connects to 3.3V network and GND on DEMO board.
Tian Ma 3.5-inch TFT LCD
The signals in TFT, i.e. SCLK, MOSI, CS, RESET connects to the pins in 8266, i.e.
SD_CLK, SD_DATA1, U0TXD, GPIO5 respectively. The VCC in OLED and GND connects
to 3.3V network and GND on DEMO board.
5.4.2. API Function Description
1. void screen_init(void)
Function:
Display screen initialization program. Call the function after it is enabled.
Location:
\app\user\user_lcd.c and \app\include\user_lcd.h
Espressif
5. SPI Overlap & Display Application Guide
30 86
!
/!
2016.05
Need help?
Do you have a question about the ESP8266 and is the answer not in the manual?
Questions and answers