GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_display_st77xx.h File Reference

Driver for st7796, st7789, st7735 displays. More...

#include <stdint.h>

Go to the source code of this file.

Enumerations

enum  gp_display_st77xx_flags { GP_DISPLAY_ST77XX_INV = 0x01 , GP_DISPLAY_ST77XX_BGR = 0x02 , GP_DISPLAY_ST77XX_MIRROR_X = 0x04 , GP_DISPLAY_ST77XX_MIRROR_Y = 0x08 }
 Display quirks. More...
 

Functions

gp_backendgp_display_st77xx_init (uint16_t w, uint16_t h, uint16_t x_off, uint16_t y_off, unsigned int dpi, enum gp_display_st77xx_flags flags)
 Initialize st77xx display driver.
 

Detailed Description

Driver for st7796, st7789, st7735 displays.

Definition in file gp_display_st77xx.h.

Enumeration Type Documentation

◆ gp_display_st77xx_flags

Display quirks.

Enumerator
GP_DISPLAY_ST77XX_INV 

Enable inverse mode.

Some displays are wired so that inverse has to be enabled in order to get a normal image, some are wired that inversion has to be off.

GP_DISPLAY_ST77XX_BGR 

Switch between RGB and BGR.

There are displays that have inversed order.

GP_DISPLAY_ST77XX_MIRROR_X 

Mirrors X.

GP_DISPLAY_ST77XX_MIRROR_Y 

Mirrors Y.

Definition at line 19 of file gp_display_st77xx.h.

Function Documentation

◆ gp_display_st77xx_init()

gp_backend * gp_display_st77xx_init ( uint16_t w,
uint16_t h,
uint16_t x_off,
uint16_t y_off,
unsigned int dpi,
enum gp_display_st77xx_flags flags )

Initialize st77xx display driver.

Parameters
wA display width.
hA display height.
x_offA display x offset, some displays does not start at 0.
y_offA display y offset, some displays does not start at 0.
dpiA display DPI.
flagsDisplay quirks.