C++ DevKit
C++ set of OOP library
Loading...
Searching...
No Matches
st7735.h File Reference

inspired from various code source, including https://github.com/adafruit/Adafruit-ST7735-Library More...

#include "pico/stdlib.h"
#include "commands_ST7735.h"
#include "hw/spi/hw_spi.h"
#include "sw/display_device/display_device.h"
Include dependency graph for st7735.h:

Go to the source code of this file.

Classes

struct  struct_ConfigST7735
 data used to configure the display device More...
 
struct  struct_ConfigScrollST7735
 
class  ST7735
 ST7735 driven TFT color display device. More...
 

Macros

#define DCX_COMMAND   0
 level defined as command on the data/Command wire
 
#define DCX_DATA   1
 level defined as data on the data/Command wire
 
#define ST7735_144_128x128_column_offset   2
 hardware column offset between the TFT panel and the IC ST7735
 
#define ST7735_144_128x128_row_offset_0_90   1
 hardware row offset between the TFT panel and the IC ST7735 for rotation = 0°, 90°
 
#define ST7735_144_128x128_row_offset_180_270   3
 hardware row offset between the TFT panel and the IC ST7735 for rotation = 180°, 270°
 
#define ST7735_177_160x128_column_offset   0
 hardware column offset between the TFT panel and the IC ST7735
 
#define ST7735_177_160x128_row_offset   0
 hardware row offset between the TFT panel and the IC ST7735
 

Enumerations

enum class  ST7735DisplayType { ST7735_144_128_RGB_128_GREENTAB , ST7735_177_160_RGB_128_GREENTAB }
 tag used to ru the correct init code More...
 
enum class  ST7735Rotation { _0 , _90 , _180 , _270 }
 code indicates rotation of the display (Portrait, paysage, upside-down) More...
 

Detailed Description

inspired from various code source, including https://github.com/adafruit/Adafruit-ST7735-Library

Author
xiansnn (xians.nosp@m.nn@h.nosp@m.otmai.nosp@m.l.co.nosp@m.m)
Version
0.1
Date
2025-03-29

Enumeration Type Documentation

◆ ST7735DisplayType

enum class ST7735DisplayType
strong

tag used to ru the correct init code

Enumerator
ST7735_144_128_RGB_128_GREENTAB 

LCD TFT 1"44 128(RGB)x128 green_tab configuration.

ST7735_177_160_RGB_128_GREENTAB 

LCD TFT 1"77 160(RGB)x128 green_tab configuration.

◆ ST7735Rotation

enum class ST7735Rotation
strong

code indicates rotation of the display (Portrait, paysage, upside-down)

Enumerator
_0 

no rotation applied

_90 

rotate 90° clockwise

_180 

rotate 180° clockwise

_270 

rotate 270° clockwise