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
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flow3r
flow3r firmware
Commits
e5c7c83b
Commit
e5c7c83b
authored
1 year ago
by
ave
Committed by
dx
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
docs: add audio.line_in_is_connected docs
parent
b41bb9c5
No related branches found
No related tags found
1 merge request
!202
docs: add audio.line_in_is_connected docs
Pipeline
#7182
passed
1 year ago
Stage: check
Stage: build
Stage: deploy
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
components/st3m/st3m_audio.h
+1
-1
1 addition, 1 deletion
components/st3m/st3m_audio.h
docs/api/audio.rst
+5
-0
5 additions, 0 deletions
docs/api/audio.rst
with
6 additions
and
1 deletion
components/st3m/st3m_audio.h
+
1
−
1
View file @
e5c7c83b
...
@@ -43,7 +43,7 @@ bool st3m_audio_headphones_are_connected(void);
...
@@ -43,7 +43,7 @@ bool st3m_audio_headphones_are_connected(void);
*/
*/
bool
st3m_audio_headset_is_connected
(
void
);
bool
st3m_audio_headset_is_connected
(
void
);
/* Returns true if the lin-in jack is connected to a cable. */
/* Returns true if the lin
e
-in jack is connected to a cable. */
bool
st3m_audio_line_in_is_connected
(
void
);
bool
st3m_audio_line_in_is_connected
(
void
);
/* If a sleeve contact mic doesn't pull the detection pin low enough the
/* If a sleeve contact mic doesn't pull the detection pin low enough the
...
...
This diff is collapsed.
Click to expand it.
docs/api/audio.rst
+
5
−
0
View file @
e5c7c83b
...
@@ -17,6 +17,11 @@ the "headphone" variant is chosen, else the "speaker" variant is chosen.
...
@@ -17,6 +17,11 @@ the "headphone" variant is chosen, else the "speaker" variant is chosen.
Returns 1 if headphones with or without microphone were connected to the
Returns 1 if headphones with or without microphone were connected to the
headphone jack at the last call of audio_update_jacksense.
headphone jack at the last call of audio_update_jacksense.
.. py:function:: line_in_is_connected() -> bool
Returns 1 if the line-in jack was connected at the last call
of audio_update_jacksense.
.. py:function:: headphones_detection_override(enable : bool)
.. py:function:: headphones_detection_override(enable : bool)
If a sleeve contact mic doesn't pull the detection pin low enough the
If a sleeve contact mic doesn't pull the detection pin low enough the
...
...
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