Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
flow3r firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dos
flow3r firmware
Commits
050ab5f5
Commit
050ab5f5
authored
1 year ago
by
Teal Starsong
Committed by
q3k
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Update file programming.rst
parent
84cac714
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/badge/programming.rst
+5
-0
5 additions, 0 deletions
docs/badge/programming.rst
with
5 additions
and
0 deletions
docs/badge/programming.rst
+
5
−
0
View file @
050ab5f5
...
@@ -571,6 +571,11 @@ Here is our previous code changed to use `Application` for the base of its main
...
@@ -571,6 +571,11 @@ Here is our previous code changed to use `Application` for the base of its main
# Continue to make runnable via mpremote run.
# Continue to make runnable via mpremote run.
st3m.run.run_view(MyDemo(ApplicationContext()))
st3m.run.run_view(MyDemo(ApplicationContext()))
Using `Application` also gives you access to the `ApplicationContext`, which for example
gives you a way to find out the base path of your app, in `app_ctx.bundle_path`. For a
sample app using this, see `schneider's nyan-cat fork
<https://git.flow3r.garden/chubbson/nyan-cat/-/tree/schneider/bundle-path>`_.
To add the application to the menu we are missing one more thing: a `flow3r.toml`
To add the application to the menu we are missing one more thing: a `flow3r.toml`
file which describes the application so flow3r knows where to put it in the menu system.
file which describes the application so flow3r knows where to put it in the menu system.
Together with the Python code this file forms a so called bundle
Together with the Python code this file forms a so called bundle
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment