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
card10
firmware
Commits
9d8ad3b3
Verified
Commit
9d8ad3b3
authored
Oct 19, 2019
by
Rahix
Browse files
chore: Update CHANGELOG and documentation
Signed-off-by:
Rahix
<
rahix@rahix.de
>
parent
23250a8e
Pipeline
#4168
passed with stages
in 2 minutes and 2 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
9d8ad3b3
...
@@ -4,6 +4,33 @@ All notable changes to this project will be documented in this file.
...
@@ -4,6 +4,33 @@ All notable changes to this project will be documented in this file.
The format is based on
[
Keep a Changelog
](
https://keepachangelog.com/en/1.0.0/
)
.
The format is based on
[
Keep a Changelog
](
https://keepachangelog.com/en/1.0.0/
)
.
## [Unreleased]
## [Unreleased]
### Added
-
**USB Storage mode**
! You can now select 'USB Storage' in the menu and
access card10's filesystem via USB. No more rebooting into bootloader!
-
LED feedback on boot. If your display is broken, you can still see it doing
something now.
-
`./tools/pycard10.py --set-time`
to set card10's system time from your host.
-
4 new functions in
`utime`
modules:
*
`set_time_ms()`
*
`set_unix_time_ms()`
*
`unix_time()`
*
`unix_time_ms()`
### Changed
-
Updated BLE stack
-
Refactored gfx API for drawing images (internal).
-
Draw partially clipped primitives in all cases (Fixes menu scrolling
animation).
-
Fatal errors are now handled in a central 'panic' module.
### Fixed
-
Make BLE interrupts higher priority than anything else to hopefully increase
stability.
-
Turn off BLE encryption after closing a connection.
-
Fixed mainline bootloader being broken.
-
Fixed menu entries being ordered by path instead of name.
-
Fixed menu crashing without a message.
-
Fixed QSTR build-system.
## [v1.11] - 2019-09-24 - [Karotte]
## [v1.11] - 2019-09-24 - [Karotte]
...
...
Documentation/pycardium/bhi160.rst
View file @
9d8ad3b3
...
@@ -34,20 +34,26 @@ clockwise around their respective axis.
...
@@ -34,20 +34,26 @@ clockwise around their respective axis.
utime.sleep(0.25)
utime.sleep(0.25)
.. autoclass:: bhi160.BHI160
Orientation
-----------
.. autoclass:: bhi160.BHI160Orientation
.. autoclass:: bhi160.BHI160Orientation
:members:
:members:
:inherited-members:
:inherited-members:
Accelerometer
-------------
.. autoclass:: bhi160.BHI160Accelerometer
.. autoclass:: bhi160.BHI160Accelerometer
:members:
:members:
:inherited-members:
:inherited-members:
Gyroscope
---------
.. autoclass:: bhi160.BHI160Gyroscope
.. autoclass:: bhi160.BHI160Gyroscope
:members:
:members:
:inherited-members:
:inherited-members:
Magnetometer
------------
.. autoclass:: bhi160.BHI160Magnetometer
.. autoclass:: bhi160.BHI160Magnetometer
:members:
:members:
:inherited-members:
:inherited-members:
Documentation/pycardium/utime.rst
View file @
9d8ad3b3
...
@@ -45,6 +45,18 @@ alarm.
...
@@ -45,6 +45,18 @@ alarm.
.. versionadded:: 1.11
.. versionadded:: 1.11
.. py:function:: unix_time()
Return the current unix time as seconds since the epoch.
.. versionadded:: 1.12
.. py:function:: unix_time_ms()
Return the current unix time as milliseconds since the epoch.
.. versionadded:: 1.12
.. py:function:: set_time(secs)
.. py:function:: set_time(secs)
Sets the time to ``secs`` seconds since 2000-01-01 00:00 in the local
Sets the time to ``secs`` seconds since 2000-01-01 00:00 in the local
...
@@ -54,6 +66,13 @@ alarm.
...
@@ -54,6 +66,13 @@ alarm.
:py:func:`utime.set_time` previously applied a wrong timezone offset,
:py:func:`utime.set_time` previously applied a wrong timezone offset,
thus leading to wrong results.
thus leading to wrong results.
.. py:function:: set_time_ms(msecs)
Set the time to ``msecs`` seconds since 2000-01-01 00:00 in the local
timezone.
.. versionadded:: 1.12
.. py:function:: set_unix_time(secs)
.. py:function:: set_unix_time(secs)
Sets the time to ``secs`` seconds since 1970-01-01 00:00 UTC.
Sets the time to ``secs`` seconds since 1970-01-01 00:00 UTC.
...
@@ -61,6 +80,12 @@ alarm.
...
@@ -61,6 +80,12 @@ alarm.
by running ``date +%s`` in a command line or ``int(time.time())``
by running ``date +%s`` in a command line or ``int(time.time())``
in Python.
in Python.
.. py:function:: set_unix_time_ms(msecs)
Set the time to ``msecs`` milliseconds since the unix epoch.
.. versionadded:: 1.12
.. py:function:: localtime([secs])
.. py:function:: localtime([secs])
Return the current time as a timestruct tuple. If ``secs`` is given, return
Return the current time as a timestruct tuple. If ``secs`` is given, return
...
...
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