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
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
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
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
c1f8823f61
Add PNVRAM support to avoid forgetting the time during a reboot.
2020-05-09 14:19:10 +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
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
fd64abe882
wasp: draw565: Optimize the 2-bit RLE drawing functions
...
There's a bunch of different changes here but there are only really three
big wins. The biggest win comes from restructuring the 2-bit RLE decode
loop to avoid the inner function (~20%) but the switch to 16-bit writes in
_fill() and adoption of quick_write (e.g. no CS toggling) are also
note worthy (and about 5% each).
2020-04-08 21:50:42 +01:00
Daniel Thompson
6a6e393d1f
wasp: vibrator: Better default for pulse
...
These defaults are good for giving quick UI feedback.
2020-04-06 22:04:20 +01:00
Daniel Thompson
b9fe31241c
Add licensing information for all wasp-os files.
2020-03-22 15:40:18 +00:00
Daniel Thompson
820764081e
drivers: st7789: Automatically park ready for the next call to write data
...
This makes line-by-line drawing more efficient because don't have to
handle the dc line. The optimization targets font rendering and if good
for slightly less than 10% rendering improvement.
2020-03-09 21:32:34 +00:00
Daniel Thompson
031d139b7c
wasp: draw565: Refactor to allow apps to focus on the drawable.
2020-03-09 00:00:13 +00:00
Daniel Thompson
a864a93706
wasp: manager: Blankt the display during app transitions
2020-03-08 20:47:19 +00:00
Daniel Thompson
adf9a33c9e
drivers: cst816s: Minor tweaks to the generated documentation.
2020-03-08 17:40:54 +00:00
Daniel Thompson
b5b96bd776
wasp: Integrate the touch driver
...
At this point we are starting to bring an event model for applications
but there's still a long way to go!
2020-03-08 10:18:08 +00:00
Daniel Thompson
9664c394a6
drivers: nrf_rtc: Add a higher res monotonic timer
2020-03-07 11:49:35 +00:00
Daniel Thompson
e5f455b5ba
drivers: cst816s: Decouple from the watch module
2020-03-07 11:47:25 +00:00
Daniel Thompson
948454a33b
wasp: cst816s: Initial PoC driver
2020-03-06 21:09:43 +00:00
Daniel Thompson
b508f4dc26
wasp: Add a simple font renderer
2020-02-19 19:57:08 +00:00
Daniel Thompson
f689c90498
wasp: Add full dd-mm-yyyy calender tracking
2020-02-19 19:57:08 +00:00
Daniel Thompson
9c299afe41
wasp: Add pure-python SPI NOR FLASH drivers
2020-02-09 19:47:02 +00:00
Daniel Thompson
bb033577da
drivers: st7789: Optimize RLE decoding loop
...
Migrate the filling of the line buffer into a seperate function.
This does naturally reduce the cost of the loop management but
much more importantly allows us to use viper native code
generator.
2020-02-08 07:49:38 +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
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
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
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
a34d65d7fd
wasp: Add battery support
2020-01-30 21:46:35 +00:00
Daniel Thompson
80bee2d305
wasp: drivers: st7789: Remove redunant delay
2020-01-28 21:19:36 +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
8f231430b3
logo: Gather together the bitmaps into a single variable
...
The PineTime demo will also now cycle through both the Pine64 and
MicroPython logos.
2020-01-28 18:45:26 +00:00
Daniel Thompson
3157bcc310
wasp: drivers: st7789: Replace with custom uPy driver
...
This driver was rewritten from scratch, borrowing some idioms
from the SSD1306 driver to ensure an efficient implementation
in uPy.
2020-01-28 18:45:15 +00:00
Daniel Thompson
2805a719f2
wasp: st7789: Add a simple proof-of-concept display driver
2020-01-21 22:10:50 +00:00