drivers: display: ili9340: add support for configuring pixel format
Move pixel format setting (RGB565/RGB888) to DeviceTree. Add support for changing pixel format at runtime. Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
parent
5cc4cec488
commit
347e0f2bdc
10 changed files with 113 additions and 66 deletions
13
include/dt-bindings/display/ili9340.h
Normal file
13
include/dt-bindings/display/ili9340.h
Normal file
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* Copyright (c) 2020 Teslabs Engineering S.L.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_DISPLAY_ILI9340_H_
|
||||
#define ZEPHYR_INCLUDE_DT_BINDINGS_DISPLAY_ILI9340_H_
|
||||
|
||||
/* Pixel formats */
|
||||
#define ILI9340_PIXEL_FORMAT_RGB565 0U
|
||||
#define ILI9340_PIXEL_FORMAT_RGB888 1U
|
||||
|
||||
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_DISPLAY_ILI9340_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue