Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
swym
firmware
Commits
1a65950a
Verified
Commit
1a65950a
authored
Aug 22, 2019
by
Rahix
Browse files
docs: Document os.read_battery()
Signed-off-by:
Rahix
<
rahix@rahix.de
>
parent
e17e31cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Documentation/pycardium/os.rst
View file @
1a65950a
...
...
@@ -53,6 +53,15 @@ Card10-Specific
:param str name: Path to new app/script/l0dable.
:return: This function never returns. It can, however raise an exception.
.. py:function:: read_battery()
Read the current battery voltage in V. Please keep in mind that battery
voltage behaves exponentially when interpreting this value.
.. warning::
Card10 will hard-shutdown once the voltage drops below 3.4 V
.. py:function:: reset()
Reboot card10.
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment