Skip to content
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

Open
rzeldent opened this issue Jan 21, 2024 · 1 comment
Open

SWAP 16 LSB first flag for SPI? #97

rzeldent opened this issue Jan 21, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@rzeldent
Copy link
Owner

rzeldent commented Jan 21, 2024

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 rzeldent added the enhancement New feature or request label Feb 2, 2024
@rzeldent
Copy link
Owner Author

rzeldent commented Feb 2, 2024

This might be easier than manipulating for the LV_COLOR_16_SWAP flag

@rzeldent rzeldent changed the title SWAP 16 LSB first flag? SWAP 16 LSB first flag for SPI? Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant