objc

Data Structures | Typedefs | Enumerations | Functions
drivers_st7789.h File Reference

ST7789 TFT LCD display driver interface. More...

#include <runtime-hw/hw.h>
#include <stdbool.h>
#include <stdint.h>
Include dependency graph for drivers_st7789.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  driver_st7789_rect_t
 ST7789 display rectangle for window operations. More...
 
struct  driver_st7789_t
 ST7789 display driver structure. More...
 

Typedefs

typedef struct driver_st7789_t driver_st7789_t
 ST7789 display driver structure. More...
 

Enumerations

enum  driver_st7789_rotation_t { DRIVER_ST7789_ROTATION_0 = 0, DRIVER_ST7789_ROTATION_90 = 1, DRIVER_ST7789_ROTATION_180 = 2, DRIVER_ST7789_ROTATION_270 = 3 }
 ST7789 rotation modes. More...
 
enum  driver_st7789_interface_t { DRIVER_ST7789_INTERFACE_SPI = 0, DRIVER_ST7789_INTERFACE_PARALLEL = 1 }
 ST7789 interface type. More...
 

Functions

driver_st7789_t driver_st7789_init (hw_spi_t *spi, uint8_t dc_pin, uint8_t reset_pin, uint8_t backlight_pin, uint16_t width, uint16_t height, bool round)
 Initialize a ST7789 display driver using the SPI interface. More...
 
void driver_st7789_finalize (driver_st7789_t *st7789)
 Finalize and release a ST7789 display driver. More...
 
bool driver_st7789_valid (const driver_st7789_t *st7789)
 Check if a ST7789 driver structure is valid. More...
 
bool driver_st7789_set_rotation (driver_st7789_t *st7789, driver_st7789_rotation_t rotation)
 Set the rotation of the ST7789 display. More...
 
bool driver_st7789_set_backlight (driver_st7789_t *st7789, uint8_t brightness)
 Set the backlight brightness of the ST7789 display. More...
 
void driver_st7789_reset (driver_st7789_t *st7789)
 Reset the ST7789 display. More...
 
bool driver_st7789_set_window (driver_st7789_t *st7789, driver_st7789_rect_t rect)
 Set the display window for subsequent pixel data. More...
 
bool driver_st7789_write_pixels (driver_st7789_t *st7789, const uint8_t *data, size_t size)
 Send pixel data to the ST7789 display. More...
 
bool driver_st7789_fill (driver_st7789_t *st7789, uint16_t color)
 Fill the entire display with a single color. More...
 
bool driver_st7789_update_rect (driver_st7789_t *st7789, driver_st7789_rect_t rect, const uint8_t *data, size_t size)
 Update a rectangular region of the ST7789 display. More...
 

Detailed Description

ST7789 TFT LCD display driver interface.

Definition in file drivers_st7789.h.