esp32-smartdisplay icon indicating copy to clipboard operation
esp32-smartdisplay copied to clipboard

SWAP 16 LSB first flag for SPI?

Open rzeldent opened this issue 1 year ago • 1 comments

esp_lcd_panel_io_i80_config_t io_config = { .cs_gpio_num = EXAMPLE_PIN_NUM_CS, .pclk_hz = EXAMPLE_LCD_PIXEL_CLOCK_HZ, .trans_queue_depth = 10, .dc_levels = { .dc_idle_level = 0, .dc_cmd_level = 0, .dc_dummy_level = 0, .dc_data_level = 1, }, .flags = { .swap_color_bytes = !LV_COLOR_16_SWAP, // Swap can be done in LvGL (default) or DMA },

struct { unsigned int dc_as_cmd_phase: 1; /*!< D/C line value is encoded into SPI transaction command phase / unsigned int dc_low_on_data: 1; /!< If this flag is enabled, DC line = 0 means transfer data, DC line = 1 means transfer command; vice versa / unsigned int octal_mode: 1; /!< transmit with octal mode (8 data lines), this mode is used to simulate Intel 8080 timing / unsigned int lsb_first: 1; /!< transmit LSB bit first / } flags; /!< Extra flags to fine-tune the SPI device */

rzeldent avatar Jan 21 '24 00:01 rzeldent

This might be easier than manipulating for the LV_COLOR_16_SWAP flag

rzeldent avatar Feb 02 '24 20:02 rzeldent