Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
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
card10
firmware
Merge requests
!126
ESB: python API
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
ESB: python API
swym/firmware:esb_py
into
master
Overview
5
Commits
2
Pipelines
8
Changes
3
Merged
swym
requested to merge
swym/firmware:esb_py
into
master
5 years ago
Overview
5
Commits
2
Pipelines
8
Changes
3
Expand
Adds the python side of things on top of
!107 (merged)
0
0
Merge request reports
Compare
master
version 7
71b9184b
5 years ago
version 6
4da40fb2
5 years ago
version 5
8c3d701e
5 years ago
version 4
7e23c5cc
5 years ago
version 3
13f3d69f
5 years ago
version 2
b23f1bfe
5 years ago
version 1
05f27b7b
5 years ago
master (base)
and
latest version
latest version
23ab69df
2 commits,
5 years ago
version 7
71b9184b
2 commits,
5 years ago
version 6
4da40fb2
1 commit,
5 years ago
version 5
8c3d701e
3 commits,
5 years ago
version 4
7e23c5cc
3 commits,
5 years ago
version 3
13f3d69f
16 commits,
5 years ago
version 2
b23f1bfe
16 commits,
5 years ago
version 1
05f27b7b
16 commits,
5 years ago
3 files
+
60
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
Documentation/pycardium/os.rst
+
25
−
0
Options
@@ -72,3 +72,28 @@ Card10-Specific
Please only call this function if absolutely necessary. In most cases
you'll want to just :py:func:`os.exit` instead.
.. py:function:: usbconfig(config_type)
Change active USB configuration. By default, card10 boots with
:py:data:`os.USB_SERIAL` active.
This will deactivate the currently active USB configuration. This means
that, if you activate :py:data:`os.USB_FLASH` while :py:data:`os.USB_SERIAL`
was active, the USB serial will be disconnected.
:param config_type: Selects which config to activate. Possible
values are :py:data:`os.USB_SERIAL`, :py:data:`os.USB_FLASH`,
or :py:data:`os.USB_NONE`.
.. py:data:: USB_NONE
No USB device active.
.. py:data:: USB_SERIAL
CDC-ACM serial device active.
.. py:data:: USB_FLASH
Mass-Storage device active.
Loading