LCD-ESP32-Driver 1.0
Project includes component for controlling LCD displays. Currently supports only one LCD controller - SSD1283A but it may change in the future.
Loading...
Searching...
No Matches
lcd_ssd1283a.h File Reference

Contains interface implementation of the LCD driver to work with SSD1283A controller. More...

#include "lcd_spi.h"

Go to the source code of this file.

Macros

#define SSD1283A_SPI_MAX_TRANSFER_SIZE   648
 
#define SSD1283A_SPI_QUEUE_SIZE   7
 
#define SSD1283A_SPI_CLOCK_SPEED   10*1000*1000
 
#define SSD1283A_WIDTH   132
 
#define SSD1283A_HEIGHT   132
 

Functions

LCD_handle_t lcd_ssd1283a_spi__Create (spi_device_handle_t spi, const int dc, const int reset)
 Creates the instance of LCD driver to communicate with SSD1283A controller using SPI interface. More...
 

Detailed Description

Contains interface implementation of the LCD driver to work with SSD1283A controller.

Author
Damian Úlusarczyk

Macro Definition Documentation

◆ SSD1283A_HEIGHT

#define SSD1283A_HEIGHT   132

Height of the LCD screen in pixels

◆ SSD1283A_SPI_CLOCK_SPEED

#define SSD1283A_SPI_CLOCK_SPEED   10*1000*1000

Preferred SPI bus frequency in Hz

◆ SSD1283A_SPI_MAX_TRANSFER_SIZE

#define SSD1283A_SPI_MAX_TRANSFER_SIZE   648

Preferred maximum size of data to be transferred through SPI line during one transaction

◆ SSD1283A_SPI_QUEUE_SIZE

#define SSD1283A_SPI_QUEUE_SIZE   7

Preferred SPI transaction queue size

◆ SSD1283A_WIDTH

#define SSD1283A_WIDTH   132

Width of the LCD screen in pixels

Function Documentation

◆ lcd_ssd1283a_spi__Create()

LCD_handle_t lcd_ssd1283a_spi__Create ( spi_device_handle_t  spi,
const int  dc,
const int  reset 
)

Creates the instance of LCD driver to communicate with SSD1283A controller using SPI interface.

Note
Memory for LCD driver instance is allocated dynamically.
Parameters
spiHandle for the SPI bus device
dcGPIO value for DC (data/command) pin
resetGPIO value for RESET pin
Returns
LCD_handle_t Handle for LCD driver instance or NULL if out of memory