1
0
Fork 0
Commit graph

604 commits

Author SHA1 Message Date
Daniel Thompson
bd41368d2b apps: steps: Fix the overnight step counter reset
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2020-06-12 08:52:36 +01:00
Daniel Thompson
ab33027fff drivers: bma421: Reduce the post-reset delay
There nothing in the docs to give the delay time required after a
reset. Currently we use 200ms because that appears on some older
code for BMA423 but is removed in more recent drivers. 50ms is still
a long time (for hardware) and has held up in testing.

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2020-06-12 08:51:44 +01:00
Daniel Thompson
93b3c2bf1a wasp: simulator: Improve the RTC
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2020-06-12 08:49:54 +01:00
Daniel Thompson
7cb9f4f2eb Makefile: Delete stale bootloader binaries
Currently when the the bootloader is modified if fails to build because
the wildcard in the hex merge picks up both the old and new binaries.
Fix this by explicitly deleting the old one.

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2020-06-11 21:46:04 +01:00
Fuji Pebri
df9d80f6f7 drivers: cst816s: optimize for power saving and responsiveness
Signed-off-by: Fuji Pebri <pebri86@gmail.com>
[daniel@redfelineinja.org.uk: removed leading underscore from method
arguments, removed redundant state tracking, adopt i2c.writeto_mem]
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2020-06-11 21:17:16 +01:00
Daniel Thompson
acf318c122 wasp: simulator: Add interupt support for CST816S
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2020-06-11 21:15:47 +01:00
Daniel Thompson
61931c3637 bootloader, reloader: Adopt latest versions 2020-06-11 20:42:12 +01:00
Daniel Thompson
93d10f74fb fonts: Add sans28 (numerals only) 2020-06-11 20:37:03 +01:00
Daniel Thompson
12e883e68b boards: pinetime: Improve safe mode implementation 2020-06-10 08:52:46 +01:00
Daniel Thompson
50f30616c6 gitignore: Doesn't grumble about indexer files
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2020-06-09 21:32:47 +01:00
Daniel Thompson
0678128c26 tools: hex2c: Add crc32s for each segment
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2020-06-09 21:31:55 +01:00
Daniel Thompson
ccaf12750b wasp: apps: Step counter application
Currently there's no fancy algorithms to estimate stride length. Just
pure simple step counting directly from the hardware's "intelligence
engine".

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2020-06-09 21:31:55 +01:00
Daniel Thompson
dea2ba8d65
README: Document python version requirements
Fixes: #32
2020-06-09 10:04:48 +01:00
Daniel Thompson
d62e6a22c7 Fix symbol lookup error (knob2) 2020-06-04 22:57:50 +01:00
Daniel Thompson
a6b0ce49e1 bootloader: Ergonomic changes for PineTime
Fixes: #28
2020-05-27 21:42:49 +01:00
Daniel Thompson
60c48b447c wasptool: Better reporting of out-of-memory problems when pasting 2020-05-25 09:23:58 +01:00
Daniel Thompson
1abda8dd17 wasptool: Enable fully automatic OTA firmware delivery 2020-05-24 14:20:50 +01:00
Daniel Thompson
4c7e92d964 apps: settings: Adopt the slider... it looks more interesting 2020-05-24 14:20:20 +01:00
Daniel Thompson
de647b324c widgets: Introduce a slider widget
Currently the slider doesn't actually slide (because we process touch
events rather than swipe events) but we've called is a slider anyway.
2020-05-24 14:20:02 +01:00
Daniel Thompson
57999226fd draw565: rle2bit: Add support for palette overrides
This allows some interesting manipulations of 2-bit images.
2020-05-24 14:19:04 +01:00
Daniel Thompson
f56cf0e6d1 Remove spurious copy of hello.py 2020-05-21 20:58:02 +01:00
Daniel Thompson
e49a67f0f3 Add the reloader to the roadmap 2020-05-21 20:45:50 +01:00
Daniel Thompson
0ea809c6d1
README: Fix link to the application writers guide 2020-05-21 08:52:51 +01:00
Daniel Thompson
2f4f728221 README: Add a link to the Pinetime SWD Programming Guide
Fixes: #16
2020-05-20 22:17:33 +01:00
Daniel Thompson
0ee969150b Merge branch 'master' of https://github.com/daniel-thompson/wasp-os 2020-05-20 21:55:21 +01:00
Daniel Thompson
5d2ca4a8ee README: Better document how to meet the dependancies
Fixes: #1
Fixes: #3
2020-05-20 21:55:11 +01:00
Daniel Thompson
49de76faa2
Merge pull request #24 from SteveAmor/patch-1
Update README.rst
2020-05-19 09:27:51 +01:00
Daniel Thompson
60bb43e87b apps: gameoflife: Better pixel colour selection 2020-05-18 22:19:19 +01:00
Daniel Thompson
7f6b1b9059 draw565: Switch to a different palette for RLE 2-bit images
This is an incompatible change... older 2-bit images will need to be
re-encoded to display correctly.
2020-05-18 22:17:51 +01:00
Daniel Thompson
d9bdb0c82f boards: Remove demo.py from the manifests
Fixes: #25
2020-05-18 08:12:00 +01:00
Daniel Thompson
b9e82424e9 apps: demo: Move the logo into the demo app
The logo module is currently unused but it simply sits there consuming
flash. Let's shift it to the demo app to is can consume RAM instead (but
only when we upload the demo to the watch).
2020-05-17 14:37:44 +01:00
Daniel Thompson
ac1a799bfa draw565: Fix line optimization code
sx is measured in pixels (2-bytes) and len(display.linebuffer) gives
a value in bytes so the divisor isn't right.

Whilst we are here let's make sure we use integer division too.

Fixes: #18
2020-05-17 09:47:15 +01:00
Daniel Thompson
4906d46ff4 apps: demo: Move the demo code into a fully fledged application 2020-05-17 09:45:16 +01:00
Steveis
f5752a4250
Update README.rst
Clarification based on #9
2020-05-16 09:47:33 +01:00
Daniel Thompson
c3bc871727 pynus: Switch to the wasp-os version 2020-05-15 20:12:54 +01:00
Daniel Thompson
56b39d6404 README/TODO: Switch to restructured text 2020-05-15 19:55:18 +01:00
Daniel Thompson
6989eaf6a6
docs: Experimental workaround for readthedocs.org 2020-05-15 12:14:28 +01:00
Daniel Thompson
70ef8dd117
TODO: Add a couple of ideas for the documentation 2020-05-15 09:09:12 +01:00
Daniel Thompson
4533f4e689 TODO: ... and the docstrings are done! 2020-05-14 23:24:59 +01:00
Daniel Thompson
e391480b50 wasp: watch: docstrings for the watch namespace 2020-05-14 23:22:57 +01:00
Daniel Thompson
d11e6eb4a1 Make wasp-os namig consistant
Rename WASP to wasp-os (or Wasp-os)
2020-05-14 22:41:05 +01:00
Daniel Thompson
b8efcd3053 wasp: Even more docstrings 2020-05-14 22:29:35 +01:00
Daniel Thompson
f07fb6d22a wasp: draw565: docstrings for headings and __init__ 2020-05-14 21:44:05 +01:00
Daniel Thompson
42fe7bf352 drivers: vibrator: Finalize docstrings 2020-05-14 21:42:16 +01:00
Daniel Thompson
95f1788347 drivers: st7789: Finalize docstrings 2020-05-14 21:41:02 +01:00
Daniel Thompson
9274d8cc2d drivers: signal: Finalize docstrings 2020-05-14 21:39:14 +01:00
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