mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-25 07:27:16 +00:00
Add a touchscreen calculator with cooperative shutdown and board initialization through BOARDIOC_FINALINIT. Signed-off-by: aviralgarg05 <gargaviral99@gmail.com>
43 lines
1.1 KiB
Text
43 lines
1.1 KiB
Text
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
menuconfig EXAMPLES_CALCULATOR
|
|
tristate "Calculator"
|
|
default n
|
|
depends on GRAPHICS_LVGL && INPUT_TOUCHSCREEN
|
|
select LV_FONT_MONTSERRAT_20
|
|
---help---
|
|
Enable the simple LVGL touchscreen calculator example.
|
|
|
|
if EXAMPLES_CALCULATOR
|
|
|
|
config EXAMPLES_CALCULATOR_PRIORITY
|
|
int "calculator task priority"
|
|
default 100
|
|
|
|
config EXAMPLES_CALCULATOR_STACKSIZE
|
|
int "calculator stack size"
|
|
default 16384
|
|
|
|
config EXAMPLES_CALCULATOR_INPUT_DEVPATH
|
|
string "Touchscreen device path"
|
|
default "/dev/input0"
|
|
---help---
|
|
The path to the touchscreen device. Default: "/dev/input0"
|
|
|
|
config EXAMPLES_CALCULATOR_FB_DEVPATH
|
|
string "Framebuffer device path"
|
|
default "/dev/fb0"
|
|
---help---
|
|
The path to the framebuffer device. Default: "/dev/fb0"
|
|
|
|
config EXAMPLES_CALCULATOR_YOFFSET
|
|
int "Top screen offset"
|
|
default 0
|
|
---help---
|
|
Rows to leave unused at the top of the display. Set this to the
|
|
height of any supervisor bar shown above the calculator.
|
|
|
|
endif # EXAMPLES_CALCULATOR
|