7#ifdef USE_ESP32_VARIANT_ESP32P4
14#include "esp_lcd_panel_ops.h"
15#include "esp_lcd_panel_io.h"
17#include "esp_lcd_mipi_dsi.h"
22constexpr static const char *
const TAG =
"display.mipi_dsi";
66 auto str =
str_sprintf(
"Setup failed: %s: %s", message, esp_err_to_name(err));
72 void setup()
override;
85 void write_to_display_(
int x_start,
int y_start,
int w,
int h,
const uint8_t *ptr,
int x_offset,
int y_offset,
virtual void mark_failed()
Mark this component as failed.
void set_init_sequence(const std::vector< uint8_t > &init_sequence)
uint16_t vsync_front_porch_
void fill(Color color) override
display::DisplayType get_display_type() override
void set_lanes(uint8_t lanes)
void set_hsync_front_porch(uint16_t hsync_front_porch)
uint16_t hsync_front_porch_
uint16_t hsync_back_porch_
void set_hsync_pulse_width(uint16_t hsync_pulse_width)
display::ColorOrder color_mode_
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
MIPI_DSI(size_t width, size_t height, display::ColorBitness color_depth, uint8_t pixel_mode)
void dump_config() override
std::vector< GPIOPin * > enable_pins_
void set_model(const char *model)
void set_lane_bit_rate(uint16_t lane_bit_rate)
uint16_t vsync_pulse_width_
void set_madctl(uint8_t madctl)
display::ColorBitness color_depth_
uint16_t hsync_pulse_width_
void set_invert_colors(bool invert_colors)
SemaphoreHandle_t io_lock_
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 smark_failed(const char *message, esp_err_t err)
void set_hsync_back_porch(uint16_t hsync_back_porch)
esp_lcd_panel_io_handle_t io_handle_
int get_height() override
void set_vsync_pulse_width(uint16_t vsync_pulse_width)
void draw_pixel_at(int x, int y, Color color) override
void set_vsync_front_porch(uint16_t vsync_front_porch)
uint16_t vsync_back_porch_
void set_pclk_frequency(uint32_t pclk_frequency)
int get_width_internal() override
esp_lcd_dsi_bus_handle_t bus_handle_
void set_reset_pin(GPIOPin *reset_pin)
void set_vsync_back_porch(uint16_t vsync_back_porch)
display::ColorOrder get_color_mode()
std::vector< uint8_t > init_sequence_
void set_enable_pins(std::vector< GPIOPin * > enable_pins)
int get_height_internal() override
esp_lcd_panel_handle_t handle_
const uint8_t MADCTL_YFLIP
const uint8_t MADCTL_XFLIP
const uint8_t SW_RESET_CMD
Providing packet encoding functions for exchanging data with a remote host.
std::string str_sprintf(const char *fmt,...)