7 #ifdef USE_ESP32_VARIANT_ESP32S3 11 #include "esp_lcd_panel_ops.h" 13 #include "esp_lcd_panel_rgb.h" 18 constexpr
static const char *
const TAG =
"display.st7701s";
27 const uint8_t
CMD2_BK0[5] = {0x77, 0x01, 0x00, 0x00, 0x10};
31 public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_LOW, spi::CLOCK_PHASE_LEADING,
32 spi::DATA_RATE_1MHZ> {
35 void setup()
override;
void set_init_sequence(const std::vector< uint8_t > &init_sequence)
InternalGPIOPin * hsync_pin_
uint16_t hsync_pulse_width_
uint16_t hsync_back_porch_
void set_mirror_y(bool mirror_y)
void set_pclk_pin(InternalGPIOPin *pclk_pin)
InternalGPIOPin * pclk_pin_
void set_dc_pin(GPIOPin *dc_pin)
void draw_pixels_at(int x_start, int y_start, int w, int h, const uint8_t *ptr, display::ColorOrder order, display::ColorBitness bitness, bool big_endian, int x_offset, int y_offset, int x_pad) override
void set_hsync_pin(InternalGPIOPin *hsync_pin)
void write_sequence_(uint8_t cmd, size_t len, const uint8_t *bytes)
this relies upon the init sequence being well-formed, which is guaranteed by the Python init code...
uint16_t vsync_front_porch_
void set_pclk_inverted(bool inverted)
void write_data_(uint8_t value)
InternalGPIOPin * vsync_pin_
InternalGPIOPin * data_pins_[16]
int get_width_internal() override
const uint8_t CMD2_BK0[5]
void write_command_(uint8_t value)
void set_hsync_back_porch(uint16_t hsync_back_porch)
uint16_t vsync_back_porch_
void set_vsync_back_porch(uint16_t vsync_back_porch)
uint16_t vsync_pulse_width_
void set_pclk_frequency(uint32_t pclk_frequency)
InternalGPIOPin * de_pin_
void set_vsync_pulse_width(uint16_t vsync_pulse_width)
const uint8_t ST7701S_DELAY_FLAG
The SPIDevice is what components using the SPI will create.
void dump_config() override
void set_offsets(int16_t offset_x, int16_t offset_y)
display::ColorOrder color_mode_
void set_mirror_x(bool mirror_x)
int get_height_internal() override
void set_invert_colors(bool invert_colors)
void set_dimensions(uint16_t width, uint16_t height)
display::ColorOrder get_color_mode()
void set_color_mode(display::ColorOrder color_mode)
void set_vsync_pin(InternalGPIOPin *vsync_pin)
void set_reset_pin(GPIOPin *reset_pin)
void set_width(uint16_t width)
std::vector< uint8_t > init_sequence_
void add_data_pin(InternalGPIOPin *data_pin, size_t index)
void set_hsync_front_porch(uint16_t hsync_front_porch)
int get_height() override
uint16_t hsync_front_porch_
void set_de_pin(InternalGPIOPin *de_pin)
display::DisplayType get_display_type() override
void set_vsync_front_porch(uint16_t vsync_front_porch)
Implementation of SPI Controller mode.
const uint8_t SW_RESET_CMD
std::vector< uint8_t > bytes
void draw_pixel_at(int x, int y, Color color) override
void write_init_sequence_()
esp_lcd_panel_handle_t handle_
void set_hsync_pulse_width(uint16_t hsync_pulse_width)