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

chore: Update CHANGELOG and docs

parent 50839184
No related branches found
No related tags found
No related merge requests found
......@@ -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
```
- BHI160 magnetometer sensor
- ESB API in Pycardium.
- Monotonic clock API
### Changed
- `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 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/).
- 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.
- 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]
......
......@@ -12,7 +12,7 @@ Supports the BHI160 sensor on the card10 for accelerometer, gyroscope...
import bhi160
import utime
bhi = bhi160.BHI160Orientation()
while True:
......@@ -47,7 +47,7 @@ Supports the BHI160 sensor on the card10 for accelerometer, gyroscope...
Close the connection to the sensor
.. class:: bhi160.BHI160Accelerometer
Accelerometer of the BHI160
......@@ -116,6 +116,8 @@ Supports the BHI160 sensor on the card10 for accelerometer, gyroscope...
sample_buffer_len: int, optional
Length of sample buffer (default is 200)
.. versionadded:: 1.11
.. py:method:: read():
Read sensor values
......
......@@ -86,6 +86,8 @@ Card10-Specific
values are :py:data:`os.USB_SERIAL`, :py:data:`os.USB_FLASH`,
or :py:data:`os.USB_NONE`.
.. versionadded:: 1.11
.. py:data:: USB_NONE
No USB device active.
......
......@@ -1739,6 +1739,8 @@ API(API_FILE_MKDIR, int epic_file_mkdir(const char *dirname));
* Get the monotonic time in seconds.
*
* :return: monotonic time in seconds
*
* .. versionadded:: 1.11
*/
API(API_RTC_GET_MONOTONIC_SECONDS,
uint32_t epic_rtc_get_monotonic_seconds(void)
......@@ -1748,6 +1750,8 @@ API(API_RTC_GET_MONOTONIC_SECONDS,
* Get the monotonic time in ms.
*
* :return: monotonic time in milliseconds
*
* .. versionadded:: 1.11
*/
API(API_RTC_GET_MONOTONIC_MILLISECONDS,
uint64_t epic_rtc_get_monotonic_milliseconds(void)
......
......@@ -95,6 +95,10 @@ class Display:
d.clear()
d.print('Hello Earth!', font=display.FONT24)
d.update()
.. versionchanged:: 1.11
Added transparent background printing.
"""
fg = fg or color.WHITE
bg = bg or fg
......
......@@ -159,6 +159,9 @@ class Menu:
Exit the event-loop. This should be called from inside an ``on_*`` hook.
.. versionadded:: 1.9
.. versionchanged:: 1.11
Fixed this function not working properly.
"""
raise _ExitMenuException()
......
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