3#ifdef USE_ESP32_VARIANT_ESP32S3
6#include "esp_lcd_panel_ops.h"
14constexpr static const char *
const TAG =
"display.mipi_rgb";
23const uint8_t
CMD2_BK0[5] = {0x77, 0x01, 0x00, 0x00, 0x10};
28 void setup()
override;
34 void write_to_display_(
int x_start,
int y_start,
int w,
int h,
const uint8_t *ptr,
int x_offset,
int y_offset,
65 void dump_pins_(uint8_t start, uint8_t
end,
const char *name, uint8_t offset);
105 public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_LOW, spi::CLOCK_PHASE_LEADING,
106 spi::DATA_RATE_1MHZ> {
112 void setup()
override;
display::ColorOrder get_color_mode()
InternalGPIOPin * de_pin_
std::vector< GPIOPin * > enable_pins_
display::DisplayType get_display_type() override
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
uint16_t hsync_pulse_width_
void set_de_pin(InternalGPIOPin *de_pin)
uint16_t hsync_front_porch_
uint16_t vsync_back_porch_
esp_lcd_panel_handle_t handle_
void set_enable_pins(std::vector< GPIOPin * > enable_pins)
int get_height() override
InternalGPIOPin * hsync_pin_
display::ColorOrder color_mode_
void dump_config() override
void set_vsync_pin(InternalGPIOPin *vsync_pin)
void set_hsync_back_porch(uint16_t hsync_back_porch)
void set_hsync_pin(InternalGPIOPin *hsync_pin)
void set_vsync_back_porch(uint16_t vsync_back_porch)
uint16_t vsync_front_porch_
int get_height_internal() override
void add_data_pin(InternalGPIOPin *data_pin, size_t index)
void set_model(const char *model)
void set_pclk_frequency(uint32_t pclk_frequency)
void set_invert_colors(bool invert_colors)
void set_pclk_inverted(bool inverted)
uint16_t vsync_pulse_width_
InternalGPIOPin * data_pins_[16]
void draw_pixel_at(int x, int y, Color color) override
void set_vsync_front_porch(uint16_t vsync_front_porch)
MipiRgb(int width, int height)
void set_hsync_front_porch(uint16_t hsync_front_porch)
void set_width(uint16_t width)
InternalGPIOPin * vsync_pin_
void dump_pins_(uint8_t start, uint8_t end, const char *name, uint8_t offset)
void set_pclk_pin(InternalGPIOPin *pclk_pin)
InternalGPIOPin * pclk_pin_
uint16_t hsync_back_porch_
void set_madctl(uint8_t madctl)
void set_hsync_pulse_width(uint16_t hsync_pulse_width)
void set_vsync_pulse_width(uint16_t vsync_pulse_width)
int get_width_internal() override
void set_color_mode(display::ColorOrder color_mode)
void write_to_display_(int x_start, int y_start, int w, int h, const uint8_t *ptr, int x_offset, int y_offset, int x_pad)
void set_reset_pin(GPIOPin *reset_pin)
void write_data_(uint8_t value)
void write_init_sequence_()
this relies upon the init sequence being well-formed, which is guaranteed by the Python init code.
MipiRgbSpi(int width, int height)
void write_command_(uint8_t value)
void set_dc_pin(GPIOPin *dc_pin)
void set_init_sequence(const std::vector< uint8_t > &init_sequence)
std::vector< uint8_t > init_sequence_
The SPIDevice is what components using the SPI will create.
const uint8_t CMD2_BK0[5]
const uint8_t SW_RESET_CMD
Providing packet encoding functions for exchanging data with a remote host.