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
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
zenox
firmware
Commits
dfcac714
Commit
dfcac714
authored
5 years ago
by
rahix
Browse files
Options
Downloads
Patches
Plain Diff
docs: Mark new APIs for version 1.13
Signed-off-by:
Rahix
<
rahix@rahix.de
>
parent
e2487e2b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Documentation/pycardium/utime.rst
+4
-0
4 additions, 0 deletions
Documentation/pycardium/utime.rst
epicardium/epicardium.h
+6
-0
6 additions, 0 deletions
epicardium/epicardium.h
pycardium/modules/py/simple_menu.py
+2
-0
2 additions, 0 deletions
pycardium/modules/py/simple_menu.py
with
12 additions
and
0 deletions
Documentation/pycardium/utime.rst
+
4
−
0
View file @
dfcac714
...
...
@@ -52,6 +52,8 @@ alarm.
This function should be the preferred method for timing and profiling
because it does not need an API call and thus is very fast.
.. versionadded:: 1.13
.. py:function:: ticks_us()
Return processor ticks (converted to microseconds) since Pycardium startup.
...
...
@@ -59,6 +61,8 @@ alarm.
This function should be the preferred method for timing and profiling
because it does not need an API call and thus is very fast.
.. versionadded:: 1.13
.. py:function:: unix_time()
Return the current unix time as seconds since the epoch.
...
...
This diff is collapsed.
Click to expand it.
epicardium/epicardium.h
+
6
−
0
View file @
dfcac714
...
...
@@ -1942,6 +1942,8 @@ API(API_WS2812_WRITE, void epic_ws2812_write(uint8_t pin, uint8_t *pixels, uint3
* errors:
*
* - ``-ENOENT``: Value can not be read
*
* .. versionadded:: 1.13
*/
API
(
API_CONFIG_GET_INTEGER
,
int
epic_config_get_integer
(
const
char
*
key
,
int
*
value
));
...
...
@@ -1954,6 +1956,8 @@ API(API_CONFIG_GET_INTEGER, int epic_config_get_integer(const char *key, int *va
* errors:
*
* - ``-ENOENT``: Value can not be read
*
* .. versionadded:: 1.13
*/
API
(
API_CONFIG_GET_BOOLEAN
,
int
epic_config_get_boolean
(
const
char
*
key
,
bool
*
value
));
...
...
@@ -1971,6 +1975,8 @@ API(API_CONFIG_GET_BOOLEAN, int epic_config_get_boolean(const char *key, bool *v
* errors:
*
* - ``-ENOENT``: Value can not be read
*
* .. versionadded:: 1.13
*/
API
(
API_CONFIG_GET_STRING
,
int
epic_config_get_string
(
const
char
*
key
,
char
*
buf
,
size_t
buf_len
));
...
...
This diff is collapsed.
Click to expand it.
pycardium/modules/py/simple_menu.py
+
2
−
0
View file @
dfcac714
...
...
@@ -124,6 +124,8 @@ class Menu:
"""
Use top right and bottom right buttons to move in the list
instead of bottom left and bottom right buttons.
.. versionadded:: 1.13
"""
def
on_scroll
(
self
,
item
,
index
):
...
...
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