example: LCD and touch panel share the same SPI bus

This commit is contained in:
Vilem Zavodny
2022-07-12 15:20:38 +02:00
committed by morris
parent 956f08826f
commit df3e506703
12 changed files with 251 additions and 397 deletions

View File

@@ -0,0 +1,35 @@
menu "Example Configuration"
choice EXAMPLE_LCD_CONTROLLER
prompt "LCD controller model"
default EXAMPLE_LCD_CONTROLLER_ILI9341
help
Select LCD controller model
config EXAMPLE_LCD_CONTROLLER_ILI9341
bool "ILI9341"
config EXAMPLE_LCD_CONTROLLER_GC9A01
bool "GC9A01"
endchoice
config EXAMPLE_LCD_TOUCH_ENABLED
bool "Enable LCD touch"
default n
help
Enable this option if you wish to use display touch. You can select from touch controllers.
choice EXAMPLE_LCD_TOUCH_CONTROLLER
prompt "LCD touch controller model"
depends on EXAMPLE_LCD_TOUCH_ENABLED
default EXAMPLE_LCD_TOUCH_CONTROLLER_STMPE610
help
Select LCD touch controller model
config EXAMPLE_LCD_TOUCH_CONTROLLER_STMPE610
bool "STMPE610"
help
Touch controller STMPE610 connected via SPI.
endchoice
endmenu