7 static const char *
const TAG =
"st7789v";
10 ESP_LOGCONFIG(TAG,
"Setting up SPI ST7789V...");
119 LOG_DISPLAY(
"",
"SPI ST7789V",
this);
120 LOG_PIN(
" CS Pin: ", this->
cs_);
121 LOG_PIN(
" DC Pin: ", this->
dc_pin_);
124 LOG_UPDATE_INTERVAL(
this);
200 static uint8_t byte[4];
201 byte[0] = (addr1 >> 8) & 0xFF;
202 byte[1] = addr1 & 0xFF;
203 byte[2] = (addr2 >> 8) & 0xFF;
204 byte[3] = addr2 & 0xFF;
211 static uint8_t byte[1024];
213 for (
int i = 0; i < size; i++) {
214 byte[index++] = (color >> 8) & 0xFF;
215 byte[index++] = color & 0xFF;
255 for (
int i = x1; i <= x2; i++) {
256 uint16_t size = y2 - y1 + 1;
269 this->
buffer_[pos++] = (color565 >> 8) & 0xff;
270 this->
buffer_[pos] = color565 & 0xff;
virtual void digital_write(bool value)=0
float get_setup_priority() const override
void dump_config() override
static uint16_t color_to_565(Color color, ColorOrder color_order=ColorOrder::COLOR_ORDER_RGB)
void write_color_(uint16_t color, uint16_t size)
void draw_absolute_pixel_internal(int x, int y, Color color) override
void write_display_data()
void write_byte(uint8_t data)
void init_internal_(uint32_t buffer_length)
int get_width_internal() override
void draw_filled_rect_(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t color)
void write_command_(uint8_t value)
void write_data_(uint8_t value)
const float PROCESSOR
For components that use data from sensors like displays.
void write_addr_(uint16_t addr1, uint16_t addr2)
void write_array(const uint8_t *data, size_t length)
size_t get_buffer_length_()
void backlight_(bool onoff)
int get_height_internal() override
void IRAM_ATTR HOT delay(uint32_t ms)