Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
François Revol
firmware
Commits
dfcac714
Commit
dfcac714
authored
Dec 09, 2019
by
Rahix
Browse files
docs: Mark new APIs for version 1.13
Signed-off-by:
Rahix
<
rahix@rahix.de
>
parent
e2487e2b
Changes
3
Show whitespace changes
Inline
Side-by-side
Documentation/pycardium/utime.rst
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.
...
...
epicardium/epicardium.h
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
));
...
...
pycardium/modules/py/simple_menu.py
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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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