examples/lua*: adapt to the blob mechanism#14332
Merged
fjmolinas merged 1 commit intoRIOT-OS:masterfrom Jun 23, 2020
Merged
Conversation
fjmolinas
approved these changes
Jun 23, 2020
Contributor
fjmolinas
left a comment
There was a problem hiding this comment.
ACK, tested both examples on native:
LED_RED_OFF
LED_GREEN_ON
RIOT native board initialized.
RIOT native hardware initialization complete.
main(): This is RIOT! (Version: 2020.07-devel-1407-gead8b8-pr-14332)
Using memory range for Lua heap: 0x5663f090 - 0x56648cd0, 4 bytes
This is Lua: starting interactive session
Welcome to the interactive interpreter
L> help
L> a
L> 1
1
L> help
L> 1 + 2
3
L>
LED_RED_OFF
LED_GREEN_ON
RIOT native board initialized.
RIOT native hardware initialization complete.
main(): This is RIOT! (Version: 2020.07-devel-1407-gead8b8-pr-14332)
Lua RIOT build
Hello world, this is lua!
Lua interpreter exited
hlep
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Contribution description
This PR adapts the lua examples so that they now use the blob mechanism available in the build system instead of manually generating the header files containing the lua code.
The approach is already done with micropython and javascript examples.
Testing procedure
lua examples are still functional.
Examples on native:
`examples/lua_basic`
`examples/lua_REPL`
Issues/PRs references
closes #11497 (blobs mechanism already available and lua examples are adapted)