1
0
Fork 0
Commit graph

266 commits

Author SHA1 Message Date
Daniel Thompson
4330aafaf0 README: Update describing how the clock app works 2020-02-04 08:50:14 +00:00
Daniel Thompson
b48df32eb1 wasp: manager: Wake up on a change of charging state 2020-02-04 08:49:10 +00:00
Daniel Thompson
2d0df5aed5 wasp: clock: Tweak the greying of the high order digits 2020-02-04 08:48:13 +00:00
Daniel Thompson
be6c6b02b0 wasp: clock: Reduce battery meter redraws
The ADC on nRF doesn't run precisely stable which means the battery
meter can flicker if updated too often. This will eventually
be fixed by the framework but, for now, let's just force the
update rate to be fairly slow.
2020-02-04 08:47:14 +00:00
Daniel Thompson
5489437f78 wasp: demo: Power up the display before launching the demo 2020-02-04 08:44:21 +00:00
Daniel Thompson
1d8b900d40 waps: widgets: Improve the battery meter athtetics
Add some extra internal padding and draw the battery in red when
power is critically low.
2020-02-04 08:43:49 +00:00
Daniel Thompson
3e0cb4eed5 wasp: manager: Avoid spurious garbage collection
Running garbage collection when idle it a waste of power...
2020-02-03 22:45:12 +00:00
Daniel Thompson
1f2c25a7bd wasp: clock: Add a simple battery meter 2020-02-03 22:35:16 +00:00
Daniel Thompson
57035ce080 wasp: st7789: Make fill() control sizing 2020-02-03 22:34:54 +00:00
Daniel Thompson
118b7bab00 wasp: st7789: Reuse the pre-allocated linebuffer 2020-02-03 22:32:53 +00:00
Daniel Thompson
b124a747dd wasp: simulator: Add battery level simulation
In order to get best test coverage the act of reading the battery
results in the battery either charging or discharging.
2020-02-03 22:29:57 +00:00
Daniel Thompson
3892f07e62 wasp: Add simple clock app
At this point both the simulator and a PineTime will come up
and show a clock (although in the case of the PineTime the clock
will just come up at 12:00).
2020-02-03 19:26:08 +00:00
Daniel Thompson
fc74f7e37b wasp: simulator: Add RTC support 2020-02-03 19:23:10 +00:00
Daniel Thompson
a5caa845b7 wasp: simulator: Add support for machine.[light|deep]sleep() 2020-02-03 19:22:54 +00:00
Daniel Thompson
d0f18a15fa wasp: simulator: Fix column and row select 2020-02-03 19:14:44 +00:00
Daniel Thompson
127df66335 wasp: pinetime: Basic RTC support
Currently this supports time only (no date) and it based on the
RTCounter class which is customized for nRF ports. At present
the nRF port doesn't have proper machine.rtc support so we have
implemented within wasp instead.
2020-02-03 19:12:04 +00:00
Daniel Thompson
8168dd5939 wasp: st7789: Add positioning support to rleblit 2020-02-03 19:09:16 +00:00
Daniel Thompson
38c18b6403 wasp: fonts: Add a large font for digital clock apps 2020-02-03 19:08:40 +00:00
Daniel Thompson
fb252818e9 tools: rle_encode: Derive variable names from filenames 2020-02-03 19:07:11 +00:00
Daniel Thompson
e21f2a79ca wasp: simulator: Add ST7789 simulation 2020-02-01 20:20:53 +00:00
Daniel Thompson
c7e11d6020 wasp: Adopt a low power mode shortly after booting
This is useful for battery run-down testing and so on.
2020-02-01 20:20:30 +00:00
Daniel Thompson
9eb5d19e35 wasp: dsd6/nitrogen: Fix the frozen manifests 2020-02-01 13:44:28 +00:00
Daniel Thompson
fed9c58205 wasp: pinetime: Start an RTC at board board 2020-02-01 13:42:11 +00:00
Daniel Thompson
a70f82cf74 Makefile: Allow BOARD to come from the environment 2020-02-01 13:40:19 +00:00
Daniel Thompson
262d93c76c wasp: simulator: First steps towards a simulator
Currently this just traces SPI activity from the ST7789 driver but its
a good baseline to start building up test functions from.
2020-01-31 19:36:55 +00:00
Daniel Thompson
e36caf5997 wasp: Add a super-simple vibrator driver 2020-01-31 19:34:04 +00:00
Daniel Thompson
735d8d094c bootloader: Now works on boards without ST7789 2020-01-31 19:23:46 +00:00
Daniel Thompson
e6c44fad0c gitignore: Hide a cached Python bytecode 2020-01-31 19:21:58 +00:00
Daniel Thompson
ba41f391fc TODO: Split into milestones 2020-01-31 09:15:08 +00:00
Daniel Thompson
ccfa480740 README: Add video link 2020-01-31 09:10:39 +00:00
Daniel Thompson
0acbcc415b wasp: Reorganise the board support 2020-01-30 22:11:31 +00:00
Daniel Thompson
a34d65d7fd wasp: Add battery support 2020-01-30 21:46:35 +00:00
Daniel Thompson
ef5d805c51 Makefile: Forcible remove frozen content
The micropython build system has incomplete dependancy tracking, especially
with regard to frozen manifests. Work round this by nuking the frozen
content before attempting a build. Sure this is a hack... but much
better than developing a "make clean; make all" habit.
2020-01-30 21:45:35 +00:00
Daniel Thompson
d3d98c8ffb wasp: Re-enable REPL by default
The demo is still there but it needs to be activated by hand
(or the manifest can be updated to include main.py by default.
2020-01-29 17:30:57 +00:00
Daniel Thompson
564200757c TODO: Updates after progress on bootloader 2020-01-28 21:27:12 +00:00
Daniel Thompson
7241fce7e4 gitignore: Ignore vim swap files 2020-01-28 21:27:02 +00:00
Daniel Thompson
0016ad4be7 Makefile: Shortcut to help update the bootloader using BMP 2020-01-28 21:25:17 +00:00
Daniel Thompson
35fa791893 bootloader: Adopt latest bootloader
Includes splash screen support using res/pinedfu.png.
2020-01-28 21:23:48 +00:00
Daniel Thompson
80bee2d305 wasp: drivers: st7789: Remove redunant delay 2020-01-28 21:19:36 +00:00
Daniel Thompson
28640d431e tools: rle_encode: Experimental color encoder
The output from this is a bit too bulky so the code isn't hooked up
to anything at the moment.
2020-01-28 21:19:06 +00:00
Daniel Thompson
fbc5ee87d2 tools: rle_encode: Implement proper argument parsing 2020-01-28 21:17:41 +00:00
Daniel Thompson
6dfc95764f manifest: Enable highest optimization by default 2020-01-28 21:16:22 +00:00
Daniel Thompson
e88165b429 wasp: drivers: st7789: native code gen for rleblit
This is a useful performance boost... but there is still
scope to get this a lot quicker.
2020-01-28 18:45:27 +00:00
Daniel Thompson
0917d5135d Makefile: Switch to FROZEN_MANIFEST
This not only avoids the use of a deprecated feature but it also
makes it easier to decouple the wasp/ directory structure from
what actually gets copied to the target.
2020-01-28 18:45:27 +00:00
Daniel Thompson
c38e133d91 micropython: Update for native code gen fixes 2020-01-28 18:45:27 +00:00
Daniel Thompson
6474317574 wasp: pinetime: Fix backlight flicker during bootup 2020-01-28 18:45:27 +00:00
Daniel Thompson
e31162ae22 TODO: Make compatible with the GFM tasklist extension 2020-01-28 18:45:27 +00:00
Daniel Thompson
90a7d3c897 TODO: Initial list for the sprint to dumb watch parity 2020-01-28 18:45:27 +00:00
Daniel Thompson
bf3e6cf945 res: Add original source artwork for content in logo.py 2020-01-28 18:45:27 +00:00
Daniel Thompson
4604603352 tools: rle_encode: Rework into proper functions 2020-01-28 18:45:26 +00:00