Espressif ESP8266 Technical Reference page 32

Hide thumbs Also See for ESP8266:
Table of Contents

Advertisement

!
uint8 spi_no——The number of SPI module. Only input SPI(0) and HSPI(1). Any other
inputs are invalid.
2. void spi_lcd_9bit_write(uint8 spi_no,uint8 high_bit,uint8
low_8bit)
Function:
Provide master SPI transmitting program for driving the chromatic LCD TM035PDZV36.
The LCD module needs a 9 bits transmitting.
Parameters:
uint8 spi_no——The number of SPI module. Only input SPI and HSPI. Any other
inputs are invalid.
uint8 high_bit——The 9's data. 0 represents the 9's 0 and other data
represents the 9's 1.
uint8 low_8bit——low 8 bit data.
3. void spi_master_init(uint8 spi_no)
Function:
Normal master SPI initialization function. Baud rate is the 1/4 frequency of CPU clock. All
the master functions except spi_lcd_9bit_write can be used after initialization.
Parameters:
uint8 spi_no——The number of SPI module. Only input SPI and HSPI. Any other
inputs are invalid.
4. void spi_mast_byte_write(uint8 spi_no,uint8 data)
Function:
Master data sending of one byte.
Parameters:
uint8 spi_no——The number of SPI module. Only input SPI and HSPI. Any other
inputs are invalid.
uint8 data——8 bit data receiving.
5. void spi_byte_write_espslave(uint8 spi_no,uint8 data)
Function:
Write a Byte data for slave SPI.
As the slave is set at 7bits command+1bit address+8bits data, data sending requires 16
bits transmission and the first byte is 0b0000010+0 refer to 3.3
byte is data sending. The actual transmitting waveform is illustrated in Figure 4-1.
Parameters:
uint8 spi_no——The number of SPI module. Only input SPI and HSPI. Any other
inputs are invalid.
Espressif
23 86
!
/!
4. SPI Communication User Guide
, i.e. 0x04. The second
2016.05

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP8266 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents

Save PDF