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/). ...@@ -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]
......
...@@ -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
......
...@@ -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.
......
...@@ -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)
......
...@@ -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
......
...@@ -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()
......
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