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
Hide whitespace changes
Inline
Side-by-side
Documentation/pycardium/utime.rst
View file @
dfcac714
...
@@ -52,6 +52,8 @@ alarm.
...
@@ -52,6 +52,8 @@ alarm.
This function should be the preferred method for timing and profiling
This function should be the preferred method for timing and profiling
because it does not need an API call and thus is very fast.
because it does not need an API call and thus is very fast.
.. versionadded:: 1.13
.. py:function:: ticks_us()
.. py:function:: ticks_us()
Return processor ticks (converted to microseconds) since Pycardium startup.
Return processor ticks (converted to microseconds) since Pycardium startup.
...
@@ -59,6 +61,8 @@ alarm.
...
@@ -59,6 +61,8 @@ alarm.
This function should be the preferred method for timing and profiling
This function should be the preferred method for timing and profiling
because it does not need an API call and thus is very fast.
because it does not need an API call and thus is very fast.
.. versionadded:: 1.13
.. py:function:: unix_time()
.. py:function:: unix_time()
Return the current unix time as seconds since the epoch.
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
...
@@ -1942,6 +1942,8 @@ API(API_WS2812_WRITE, void epic_ws2812_write(uint8_t pin, uint8_t *pixels, uint3
* errors:
* errors:
*
*
* - ``-ENOENT``: Value can not be read
* - ``-ENOENT``: Value can not be read
*
* .. versionadded:: 1.13
*/
*/
API
(
API_CONFIG_GET_INTEGER
,
int
epic_config_get_integer
(
const
char
*
key
,
int
*
value
));
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
...
@@ -1954,6 +1956,8 @@ API(API_CONFIG_GET_INTEGER, int epic_config_get_integer(const char *key, int *va
* errors:
* errors:
*
*
* - ``-ENOENT``: Value can not be read
* - ``-ENOENT``: Value can not be read
*
* .. versionadded:: 1.13
*/
*/
API
(
API_CONFIG_GET_BOOLEAN
,
int
epic_config_get_boolean
(
const
char
*
key
,
bool
*
value
));
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
...
@@ -1971,6 +1975,8 @@ API(API_CONFIG_GET_BOOLEAN, int epic_config_get_boolean(const char *key, bool *v
* errors:
* errors:
*
*
* - ``-ENOENT``: Value can not be read
* - ``-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
));
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:
...
@@ -124,6 +124,8 @@ class Menu:
"""
"""
Use top right and bottom right buttons to move in the list
Use top right and bottom right buttons to move in the list
instead of bottom left and bottom right buttons.
instead of bottom left and bottom right buttons.
.. versionadded:: 1.13
"""
"""
def
on_scroll
(
self
,
item
,
index
):
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