#ifndef DISPLAY_ST7735S_H_ #define DISPLAY_ST7735S_H_ #include "driver/spi_master.h" // M5stickC #define M5_ST7735S_WIDTH 160 #define M5_ST7735S_HEIGHT 80 #define M5_ST7735S_MOSI_GPIO 15 #define M5_ST7735S_SCLK_GPIO 13 #define M5_ST7735S_CS_GPIO 5 #define M5_ST7735S_DC_GPIO 23 #define M5_ST7735S_RESET_GPIO 18 #define M5_ST7735S_OFFSETX 1 #define M5_ST7735S_OFFSETY 26 #define M5_ST7735S_INTERFACE_OFFSETX 16 #define M5_ST7735S_INTERFACE_OFFSETY 8 #define M5_ST7735S_LANDSCAPE_FLIPPED 0x60 #define M5_ST7735S_LANDSCAPE 0xA0 #define SPI_COMMAND_MODE 0 #define SPI_DATA_MODE 1 #endif