-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SWAP 16 LSB first flag for SPI? #97
Labels
enhancement
New feature or request
Comments
This might be easier than manipulating for the LV_COLOR_16_SWAP flag |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 */
The text was updated successfully, but these errors were encountered: