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
db0ff2f6
Verified
Commit
db0ff2f6
authored
Sep 22, 2019
by
Rahix
Browse files
chore: Update CHANGELOG and docs
parent
50839184
Changes
6
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
db0ff2f6
...
@@ -16,9 +16,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
...
@@ -16,9 +16,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
...
...
(gdb) task_backtrace ble_task_id
(gdb) task_backtrace ble_task_id
```
```
-
BHI160 magnetometer sensor
-
ESB API in Pycardium.
-
Monotonic clock API
### Changed
### Changed
-
`Display.print()`
uses a transparent background when printing with
`bg == fg`
.
-
`Display.print()`
uses a transparent background when printing with
`bg == fg`
.
-
Try different crc16 module during build because different environments might
have different ones installed.
-
Refactored BHI160 app
### Fixed
### Fixed
-
Fixed a regression which made it impossible to turn off the flashlight.
-
Fixed a regression which made it impossible to turn off the flashlight.
...
@@ -31,6 +37,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
...
@@ -31,6 +37,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
-
Added a workaround for BHI160 axis mapping not being applied in some cases.
-
Added a workaround for BHI160 axis mapping not being applied in some cases.
-
Added a critical-section in BLE stack initialization to prevent weird lock-ups.
-
Added a critical-section in BLE stack initialization to prevent weird lock-ups.
-
Fixed vibra module crashing when calling
`vibra.vibrate()`
while already running.
-
Fixed vibra module crashing when calling
`vibra.vibrate()`
while already running.
-
Fixed sensor-sample overflow leading to I2C bus lockup.
## [v1.10] - 2019-09-05 21:42 - [JerusalemArtichoke]
## [v1.10] - 2019-09-05 21:42 - [JerusalemArtichoke]
...
...
Documentation/pycardium/bhi160.rst
View file @
db0ff2f6
...
@@ -12,7 +12,7 @@ Supports the BHI160 sensor on the card10 for accelerometer, gyroscope...
...
@@ -12,7 +12,7 @@ Supports the BHI160 sensor on the card10 for accelerometer, gyroscope...
import bhi160
import bhi160
import utime
import utime
bhi = bhi160.BHI160Orientation()
bhi = bhi160.BHI160Orientation()
while True:
while True:
...
@@ -47,7 +47,7 @@ Supports the BHI160 sensor on the card10 for accelerometer, gyroscope...
...
@@ -47,7 +47,7 @@ Supports the BHI160 sensor on the card10 for accelerometer, gyroscope...
Close the connection to the sensor
Close the connection to the sensor
.. class:: bhi160.BHI160Accelerometer
.. class:: bhi160.BHI160Accelerometer
Accelerometer of the BHI160
Accelerometer of the BHI160
...
@@ -116,6 +116,8 @@ Supports the BHI160 sensor on the card10 for accelerometer, gyroscope...
...
@@ -116,6 +116,8 @@ Supports the BHI160 sensor on the card10 for accelerometer, gyroscope...
sample_buffer_len: int, optional
sample_buffer_len: int, optional
Length of sample buffer (default is 200)
Length of sample buffer (default is 200)
.. versionadded:: 1.11
.. py:method:: read():
.. py:method:: read():
Read sensor values
Read sensor values
...
...
Documentation/pycardium/os.rst
View file @
db0ff2f6
...
@@ -86,6 +86,8 @@ Card10-Specific
...
@@ -86,6 +86,8 @@ Card10-Specific
values are :py:data:`os.USB_SERIAL`, :py:data:`os.USB_FLASH`,
values are :py:data:`os.USB_SERIAL`, :py:data:`os.USB_FLASH`,
or :py:data:`os.USB_NONE`.
or :py:data:`os.USB_NONE`.
.. versionadded:: 1.11
.. py:data:: USB_NONE
.. py:data:: USB_NONE
No USB device active.
No USB device active.
...
...
epicardium/epicardium.h
View file @
db0ff2f6
...
@@ -1739,6 +1739,8 @@ API(API_FILE_MKDIR, int epic_file_mkdir(const char *dirname));
...
@@ -1739,6 +1739,8 @@ API(API_FILE_MKDIR, int epic_file_mkdir(const char *dirname));
* Get the monotonic time in seconds.
* Get the monotonic time in seconds.
*
*
* :return: monotonic time in seconds
* :return: monotonic time in seconds
*
* .. versionadded:: 1.11
*/
*/
API
(
API_RTC_GET_MONOTONIC_SECONDS
,
API
(
API_RTC_GET_MONOTONIC_SECONDS
,
uint32_t
epic_rtc_get_monotonic_seconds
(
void
)
uint32_t
epic_rtc_get_monotonic_seconds
(
void
)
...
@@ -1748,6 +1750,8 @@ API(API_RTC_GET_MONOTONIC_SECONDS,
...
@@ -1748,6 +1750,8 @@ API(API_RTC_GET_MONOTONIC_SECONDS,
* Get the monotonic time in ms.
* Get the monotonic time in ms.
*
*
* :return: monotonic time in milliseconds
* :return: monotonic time in milliseconds
*
* .. versionadded:: 1.11
*/
*/
API
(
API_RTC_GET_MONOTONIC_MILLISECONDS
,
API
(
API_RTC_GET_MONOTONIC_MILLISECONDS
,
uint64_t
epic_rtc_get_monotonic_milliseconds
(
void
)
uint64_t
epic_rtc_get_monotonic_milliseconds
(
void
)
...
...
pycardium/modules/py/display.py
View file @
db0ff2f6
...
@@ -95,6 +95,10 @@ class Display:
...
@@ -95,6 +95,10 @@ class Display:
d.clear()
d.clear()
d.print('Hello Earth!', font=display.FONT24)
d.print('Hello Earth!', font=display.FONT24)
d.update()
d.update()
.. versionchanged:: 1.11
Added transparent background printing.
"""
"""
fg
=
fg
or
color
.
WHITE
fg
=
fg
or
color
.
WHITE
bg
=
bg
or
fg
bg
=
bg
or
fg
...
...
pycardium/modules/py/simple_menu.py
View file @
db0ff2f6
...
@@ -159,6 +159,9 @@ class Menu:
...
@@ -159,6 +159,9 @@ class Menu:
Exit the event-loop. This should be called from inside an ``on_*`` hook.
Exit the event-loop. This should be called from inside an ``on_*`` hook.
.. versionadded:: 1.9
.. versionadded:: 1.9
.. versionchanged:: 1.11
Fixed this function not working properly.
"""
"""
raise
_ExitMenuException
()
raise
_ExitMenuException
()
...
...
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