summaryrefslogtreecommitdiff
path: root/apps/examples/nxlines/Kconfig
blob: 0b75d6eba9f0019abff52c5a067b376ae1d63bb5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#
# For a description of the syntax of this configuration file,
# see misc/tools/kconfig-language.txt.
#

config EXAMPLES_NXLINES
	bool "NX graphics lines example"
	default n
	---help---
		Enable the X graphics lines example

if EXAMPLES_NXLINES

config EXAMPLES_NXLINES_VPLANE
	int "Graphics Plane"
	default 0
	---help---
		The plane to select from the frame-buffer driver for use in the test.  Default: 0

config EXAMPLES_NXLINES_DEVNO
	int "Graphics Device Number"
	default 0
	---help---
		The LCD device to select from the LCD driver for use in the test: Default: 0

config EXAMPLES_NXLINES_DEFAULT_COLORS
	bool "Use default colors"
	default y
	---help---
		Select this option to let the NXLINES example pick the colors.  Otherwise,
		you may select the exact colors to use in hex format.

config EXAMPLES_NXLINES_BGCOLOR
	hex "Background Color"
	default 0x00
	depends on !EXAMPLES_NXLINES_DEFAULT_COLORS
	---help---
		The color of the background.  Default depends on EXAMPLES_NXLINES_BPP.

config EXAMPLES_NXLINES_LINEWIDTH
	int "Line Width"
	default 16
	---help---
		Selects the width of the lines in pixels (default: 16)

config EXAMPLES_NXLINES_LINECOLOR
	hex "Line Color"
	default 0x00
	depends on !EXAMPLES_NXLINES_DEFAULT_COLORS
	---help---
		The color of the central lines drawn in the background window. Default
		depends on EXAMPLES_NXLINES_BPP (there really is no meaningful default).

config EXAMPLES_NXLINES_BORDERWIDTH
	int "Border Width"
	default 16
	---help---
		The width of the circular border drawn in the background window. (default: 16).

config EXAMPLES_NXLINES_BORDERCOLOR
	hex "Border Color"
	default 0x00
	depends on !EXAMPLES_NXLINES_DEFAULT_COLORS
	---help---
		The color of the circular border drawn in the background window. Default
		depends on EXAMPLES_NXLINES_BPP (there really is no meaningful default).

config EXAMPLES_NXLINES_CIRCLECOLOR
	hex "Circle Color"
	default 0x00
	depends on !EXAMPLES_NXLINES_DEFAULT_COLORS
	---help---
		The color of the circular region filled in the background window. Default
		depends on EXAMPLES_NXLINES_BPP (there really is no meaningful default).

config EXAMPLES_NXLINES_BPP
	int "Bits Per Pixel"
	default 8
	---help---
		Pixels per pixel to use.  Valid options include 2, 4, 8, 16, 24, and 32.
		Default is 16.

config EXAMPLES_NXLINES_EXTERNINIT
	bool "External Device Initialization"
	default false
	---help---
		The driver for the graphics device on this platform requires some unusual
		initialization.  This is the for, for example, SPI LCD/OLED devices.  If
		this configuration is selected, then the platform code must provide an LCD
		initialization function with a prototype like:

		#ifdef NX_LCDDRIVER
		FAR struct lcd_dev_s *up_nxdrvinit(unsigned int devno);
		#else
		FAR struct fb_vtable_s *up_nxdrvinit(unsigned int devno);
		#endif

endif