10 static const uint8_t ST7735_TFTWIDTH_128 = 128;
11 static const uint8_t ST7735_TFTWIDTH_80 = 80;
12 static const uint8_t ST7735_TFTHEIGHT_128 = 128;
13 static const uint8_t ST7735_TFTHEIGHT_160 = 160;
16 static const uint8_t INITR_GREENTAB = 0x00;
17 static const uint8_t INITR_REDTAB = 0x01;
18 static const uint8_t INITR_BLACKTAB = 0x02;
19 static const uint8_t INITR_144GREENTAB = 0x01;
20 static const uint8_t INITR_MINI_160X80 = 0x04;
21 static const uint8_t INITR_HALLOWING = 0x05;
22 static const uint8_t INITR_18GREENTAB = INITR_GREENTAB;
23 static const uint8_t INITR_18REDTAB = INITR_REDTAB;
24 static const uint8_t INITR_18BLACKTAB = INITR_BLACKTAB;
36 public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_LOW, spi::CLOCK_PHASE_LEADING,
37 spi::DATA_RATE_8MHZ> {
39 ST7735(
ST7735Model model,
int width,
int height,
int colstart,
int rowstart,
bool eightbitcolor,
bool usebgr,
42 void setup()
override;
58 void sendcommand_(uint8_t
cmd,
const uint8_t *data_bytes, uint8_t num_data_bytes);
59 void senddata_(
const uint8_t *data_bytes, uint8_t num_data_bytes);
void senddata_(const uint8_t *data_bytes, uint8_t num_data_bytes)
void dump_config() override
float get_setup_priority() const override
ST7735(ST7735Model model, int width, int height, int colstart, int rowstart, bool eightbitcolor, bool usebgr, bool invert_colors)
The SPIDevice is what components using the SPI will create.
display::DisplayType get_display_type() override
void set_model(ST7735Model model)
const char * model_str_()
void spi_master_write_color_(uint16_t color, uint16_t size)
const float PROCESSOR
For components that use data from sensors like displays.
void spi_master_write_addr_(uint16_t addr1, uint16_t addr2)
void sendcommand_(uint8_t cmd, const uint8_t *data_bytes, uint8_t num_data_bytes)
void writedata_(uint8_t value)
void set_reset_pin(GPIOPin *value)
void write_display_data_()
void draw_absolute_pixel_internal(int x, int y, Color color) override
int get_width_internal() override
void writecommand_(uint8_t value)
void set_addr_window_(uint16_t x, uint16_t y, uint16_t w, uint16_t h)
void set_dc_pin(GPIOPin *value)
Implementation of SPI Controller mode.
size_t get_buffer_length()
void display_init_(const uint8_t *addr)
int get_height_internal() override