Skip to content
Snippets Groups Projects
Verified Commit 1a65950a authored by rahix's avatar rahix
Browse files

docs: Document os.read_battery()


Signed-off-by: default avatarRahix <rahix@rahix.de>
parent e17e31cd
No related branches found
No related tags found
No related merge requests found
...@@ -53,6 +53,15 @@ Card10-Specific ...@@ -53,6 +53,15 @@ Card10-Specific
:param str name: Path to new app/script/l0dable. :param str name: Path to new app/script/l0dable.
:return: This function never returns. It can, however raise an exception. :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() .. py:function:: reset()
Reboot card10. Reboot card10.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment