example(spi_master): add menuconfig options allowing users to choose which type of LCD is used.

also some modification in the example file, replacing "ili_*" to "lcd_*".
This commit is contained in:
michael
2017-07-18 17:02:07 +08:00
parent bfb15c6fc9
commit f6495d618f
2 changed files with 66 additions and 17 deletions

View File

@@ -0,0 +1,15 @@
menu "Example Configuration"
choice LCD_TYPE
prompt "LCD module type"
default LCD_TYPE_ST7789V
help
The type of LCD on the evaluation board.
config LCD_TYPE_ST7789V
bool "ST7789V (WROVER Kit v2 or v3)"
config LCD_TYPE_ILI9341
bool "ILI9341 (WROVER Kit v1 or DevKitJ v1)"
endchoice
endmenu