diff --git a/CHANGELOG.md b/CHANGELOG.md index 0bb644570345ed95bfe8a9921c668941b8101ece..1c1975433a70524b9bfa6c9014ad64dd2740cdc7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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] diff --git a/Documentation/pycardium/bhi160.rst b/Documentation/pycardium/bhi160.rst index 3b7faa0670947d15ed8790ab2371fa92da263188..b57dc77f55cb1b6ab1c283c9e9caccb2efb902fd 100644 --- a/Documentation/pycardium/bhi160.rst +++ b/Documentation/pycardium/bhi160.rst @@ -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 diff --git a/Documentation/pycardium/os.rst b/Documentation/pycardium/os.rst index c14e8c9232c4ead06719a3d08433f429a87d1884..2447ccfe88494b385e8ec9544b08eb5146a65b48 100644 --- a/Documentation/pycardium/os.rst +++ b/Documentation/pycardium/os.rst @@ -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. diff --git a/epicardium/epicardium.h b/epicardium/epicardium.h index 3ed02dabb5e1aad6f8c64867e740ab5afd3b370f..63dca86829849069780800f5d3f531fd69e9e3e5 100644 --- a/epicardium/epicardium.h +++ b/epicardium/epicardium.h @@ -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) diff --git a/pycardium/modules/py/display.py b/pycardium/modules/py/display.py index 3811d55ddbdfdbc5090736940a9c5c379f046e47..d7854aa3aefb9ebeda1db30598a1505a3884ff7d 100644 --- a/pycardium/modules/py/display.py +++ b/pycardium/modules/py/display.py @@ -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 diff --git a/pycardium/modules/py/simple_menu.py b/pycardium/modules/py/simple_menu.py index 34f0de45131114f2982b54cbc806b5e1059b12e5..18279db442ee22e1ce882a98478229126c82ed8a 100644 --- a/pycardium/modules/py/simple_menu.py +++ b/pycardium/modules/py/simple_menu.py @@ -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()