-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lv_examples: Add Kconfig to lv_examples and choose an example to run on the menuconfig interface #196
Merged
Merged
lv_examples: Add Kconfig to lv_examples and choose an example to run on the menuconfig interface #196
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
49ac159
lv_examples: Add Kconfig to lv_examples and choose an example to run …
C47D 6ba707f
lv_examples: Add header file of selected demo and run it.
C47D 8ed5a7a
lv_examples: Address embeddedt comments about symbols not being defined
C47D c103b80
lv_examples: Fix typos on selected demo symbol
C47D c881e78
lv_examples: Fix typo
C47D File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Kconfig for lv_examples v7.4.0 | ||
|
||
menu "lv_examples configuration" | ||
|
||
config LV_EX_PRINTF | ||
bool "Enable printf-ing data in demos and examples." | ||
|
||
choice LV_EX_CHOICE | ||
prompt "Select the demo you want to run." | ||
default LV_USE_DEMO_WIDGETS | ||
|
||
config LV_USE_DEMO_WIDGETS | ||
bool "Show demo widgets." | ||
|
||
config LV_DEMO_WIDGETS_SLIDESHOW | ||
bool "Slide demo widgets automatically." | ||
depends on LV_USE_DEMO_WIDGETS | ||
default y | ||
|
||
config LV_USE_DEMO_KEYPAD_AND_ENCODER | ||
bool "Demonstrate the usage of encoder and keyboard." | ||
|
||
config LV_USE_DEMO_BENCHMARK | ||
bool "Benchmark your system." | ||
|
||
config LV_USE_DEMO_STRESS | ||
bool "Stress test for LVGL." | ||
endchoice | ||
endmenu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(This applies to all the changes in
lv_ex_conf.h
.)As far as I know, Kconfig does not define unselected options to 0; it just doesn't define them at all. I'm not sure how the statement
#if LV_EX_PRINTF
will be affected by this. It might be better to use a code pattern like this:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're totally right @embeddedt, I forgot about that, will commit your suggestion. I think the same applies for the other choice symbols (demo to run), isn't?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the pattern I use in the new lv_conf_internal.h:
https://github.com/lvgl/lvgl/blob/1c96215db9ec9d3de0dd10c2403e124cbb4a8dd6/src/lv_conf_internal.h#L107
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure but I think we would need to include the ESP-IDFs
sdkconfig.h
file to be able to use the CONFIG_x symbols. I will try removing that include on the currentlv_config
file and see what happens.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's needed we can use LV_CONF_PATH to include any file instead of
lv_conf.h
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, I will test it too, yesterday I forgot to push the fixes for @embeddedt comment, will do it later.