Daniel Thompson
880083977c
drivers: nrf_rtc: Finalize docstrings
2020-05-14 21:36:33 +01:00
Daniel Thompson
d5c629a9ac
drivers: cst816s: Finalize docstrings
2020-05-14 21:36:09 +01:00
Daniel Thompson
85079c149b
drivers: battery: Finalize docstrings
2020-05-14 21:32:01 +01:00
Daniel Thompson
4af873c9e3
docs: appguide: Describe how to hack on frozen modules
2020-05-13 22:11:31 +01:00
Daniel Thompson
93ad0e6972
wasp: draw565: docstring improvements
2020-05-11 23:07:35 +01:00
Daniel Thompson
15d5d70bbd
docs: appguide: Switch to proper note format
2020-05-11 23:03:15 +01:00
Daniel Thompson
ba002afbbf
README: Direct links to the rendered documentation.
2020-05-11 21:56:23 +01:00
Daniel Thompson
a2fd52ef2b
docs: Introduce the Application Writer's Guide.
2020-05-11 21:44:30 +01:00
Daniel Thompson
bb8e95cdd4
docs: Document the bootloader protocols
...
GPREGRET, PNVRAM and WDT protocols are all now fully documented.
2020-05-10 10:43:02 +01:00
Daniel Thompson
fe1bbbac52
apps: template: Fix broken docstring
2020-05-10 09:34:57 +01:00
Daniel Thompson
09071427e4
drivers: nrf_rtc: Fix some tab/space issues
...
These issues do not appear when parsing with micropython but when we
import this file into sphinx then things go a bit south.
2020-05-10 09:34:22 +01:00
Daniel Thompson
a4c62bb818
wasp: apps: Remove __init__.py
...
wasp-os contains circular import dependancies (wasp includes apps which
include wasp) but this is normally harmless.
However using __init__.py exagerated to the problem and since the benefit
of the __init__ file is pretty anyway the let's just remove it.
2020-05-10 09:33:26 +01:00
Daniel Thompson
399b956eb5
wasptool: Add a command to compare RTC against the local workstation
...
This allows us to observe RTC drift during reboot relatively easily.
2020-05-09 14:21:39 +01:00
Daniel Thompson
c1f8823f61
Add PNVRAM support to avoid forgetting the time during a reboot.
2020-05-09 14:19:10 +01:00
Daniel Thompson
b0dec58769
tools: ota-dfu: Adopt latest version
2020-05-09 14:09:45 +01:00
Daniel Thompson
945546a804
reloader: Integrate into the main build system
2020-05-09 14:09:28 +01:00
Daniel Thompson
59ae03fc67
Makefile: Match command line arguments with latest version of pyOCD
2020-05-09 14:07:32 +01:00
Daniel Thompson
d53b02ada3
TODO: Defer a couple of (fairly exotic) M2 features to M3
2020-05-09 14:07:06 +01:00
Daniel Thompson
dc4ea4ab62
reloader: OTA flashing tool for wasp-os
2020-04-26 19:21:28 +01:00
Daniel Thompson
17a8cfc346
tools: ota-dfu: Include a Linux-native OTA DFU tool
2020-04-26 19:18:17 +01:00
Daniel Thompson
5ce0d4cd6f
tools/hexmerge: Fix file permissions
2020-04-26 15:01:48 +01:00
Daniel Thompson
2d437b0f68
wasp: drivers: nrf_rtc: Fix a nasty bug when setting the time
...
The code to recalculate the uptime to walltime adjustment was broken
(e.g. the longer we leave it after reboot the more inaccurate the time
setting becomes).
Fixes: 80079e4 ("wasp: nrf_rtc: Add a tiny bit of extra resolution")
2020-04-26 15:01:48 +01:00
Daniel Thompson
94a6d4c78a
micropython: Enable direct memory access from Python
2020-04-26 15:01:48 +01:00
Daniel Thompson
2e7db3ae19
tools: wasptool: Improve command output for --exec and --eval
2020-04-26 15:01:48 +01:00
Daniel Thompson
6729ac67a5
apps: launcher: Add a scroll ready indicator
2020-04-26 15:01:48 +01:00
Daniel Thompson
8b2ba4e79c
apps: launcher: Make app.ICON optional
2020-04-26 15:01:48 +01:00
Daniel Thompson
e854998268
apps: stopwatch: Fix redraw bug (and remove some old test code)
2020-04-26 15:01:48 +01:00
Daniel Thompson
9348e758b2
wasp: nrf_rtc: Add a tiny bit of extra resolution
...
We now have a couple of applications (stopwatch, Game of Life) that benefit
from sub-second precision. The micropython RTC/utime code for nrf still
needs a major overhaul but this allows us to paper over the cracks for
just a little longer.
2020-04-26 15:01:48 +01:00
Daniel Thompson
5b277e94f1
wasp: Manager: Avoid printing the stack trace when it can cause problems
...
On nRF devices if we print with the NUS console disconnected (instead
of never connected) then things we can end up hanging. Better only
to print an exception if the watch class contains a method to do
that.
2020-04-26 15:01:48 +01:00
Daniel Thompson
604966d9db
README: Provide link to the latest video
2020-04-23 13:53:28 +01:00
Daniel Thompson
880764da7d
wasp: apps: Conway's Game of Life
2020-04-18 11:54:03 +01:00
Daniel Thompson
bfd914a5d1
boards: simulator: Add ptr32 support
2020-04-17 17:19:11 +01:00
Daniel Thompson
1fe0602995
tools: wasptool: Introduce simple chunking
...
This reduces the memory overhead required to --exec a file (although
we will still have problems with big classes).
For now we have avoided matching "^def" since we need additional
handling for decorators!
2020-04-17 17:18:27 +01:00
Daniel Thompson
fe43091bcf
tools: wasptool: Add support for --reset
2020-04-17 17:17:24 +01:00
Daniel Thompson
777a150c9d
TODO: Record even more progress towards being awesome!
2020-04-14 20:06:19 +01:00
Daniel Thompson
66743d42c8
wasp: Manager: Bring in proper separation of apps
...
This is getting us much closer to the final UI concept. We have a
quick ring from which we can select typical apps such as clock and
stopwatch which will (eventually) be supplemented with step counting
and heart rate monitoriing. More exotic apps (currenrtly torch, self
test, settings) are all relagated to the launcher ring.
2020-04-14 20:05:57 +01:00
Daniel Thompson
10706a9704
wasp: stopwatch: Replace the stub with a "real" implementation
...
There are still some holes here. In particular the RTC resolution on
nRF devices (such as PineTime) is currently a full second (meaning
the centiseconds will always be zero. Nevertheless that isn't the apps
fault... as we can see when we run on the simulator.
2020-04-14 20:03:04 +01:00
Daniel Thompson
5fc802fb78
wasp: Manager: Push exceptions to the console as well as the crash app
2020-04-14 20:00:49 +01:00
Daniel Thompson
a77301ec64
fonts: Add sans36 (numerals only)
...
At 36pt this is already gobbling a fair bit of flash so, for now, we've
restricted this only numerals (and colon).
2020-04-14 20:00:04 +01:00
Daniel Thompson
64afea0d07
WIP: Introduce the quick_ring
2020-04-12 08:59:37 +01:00
Daniel Thompson
b649cd1b24
wasp: template: Implement optional application methods
2020-04-12 08:41:31 +01:00
Daniel Thompson
80d518b75b
wasp: apps: Add shortcuts to all apps
2020-04-12 08:40:49 +01:00
Daniel Thompson
64a97fce58
wasp: testapp: Sort tests alphabetically
2020-04-12 08:40:11 +01:00
Daniel Thompson
50ecff29ef
wasp: Automatically generate watch.py for PineTime
...
This should ensure that main.py is always up to date.
2020-04-11 21:12:18 +01:00
Daniel Thompson
7ef145cdc5
docs: Makefile: Try to avoid nuking the .git directory...
...
... if there is one.
2020-04-11 20:49:52 +01:00
Daniel Thompson
e165f13a9e
docs: gnu-lgpl-v3.0: Fix some broken indentation.
2020-04-11 20:49:27 +01:00
Daniel Thompson
4c09add2d8
docs: Add text descriptions of icons
...
Having the raw hex strings makes the docs look really unclean. Fix this
by providing a special version of icons for the "sphinx" board.
2020-04-11 20:49:06 +01:00
Daniel Thompson
683c3497e0
docs: Fix warnings and add a few extra apps to the docs
2020-04-11 20:26:12 +01:00
Daniel Thompson
af1379806c
wasp: simulator: Use Tab to replicate the physical button
2020-04-11 20:15:20 +01:00
Daniel Thompson
f68eb610c5
wasp: On-device crash reporting
...
If an application crashes let's report it on the device so it can be
distinguished from a hang (if nothing else it should mean we get better
bug reports).
2020-04-11 20:15:02 +01:00