summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-06-03Added weather application.Tait Berlette
Signed-off-by: Tait Berlette <54515877+taitberlette@users.noreply.github.com>
2021-06-03manager: Improve application registrationDaniel Thompson
When an application is registered using a string that gives the class name (e.g. "apps.chrono.ChronoApp") when we automatically delete the module from a couple of namespaces. This ensures the garbage collector can do a deeper clean when the application is unregistered. We also provide a means to directly register watch faces (e.g. to replace the default clock). Fixes: #214 Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-06-03Makefile: Create .zip distributions as well as a tarballDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-06-03reloader: Update to newer factory firmware for pinetimeDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-05-05apps: heart: Implement a debug mode to copy out raw dataDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-05-05wasptool: Fix progress bar numberingDaniel Thompson
Currently direct callers of draw_pbar() can have 20 or more digits after the decimal place. Fix this by moving the rounding function. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-03-29apps: testapp: Force characters to render with a not-black backgroundDaniel Thompson
This helps pick up any problems with the glpyh rendering. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-03-29draw565: Optimize the string drawingDaniel Thompson
Currently there is a redundant fill operation issued for every character drawn. This was added to draw the background colours correctly but the change did not account for the optimized character rendering in _draw_glyph(). This results in ~15% performance improvement for character rendering Fixes: cc34c5d46de9 ("draw565: Fix wrong background color of strings") Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-03-28fonts: add 18pt fontthefenriswolf
Signed-off-by: thefenriswolf <stefan.rohrbacher97@gmail.com> [daniel@redfelineninja.org.uk: fixed up the manifest] Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-03-27apps: Add DualClock app.Benoît HERVIER
Signed-off-by: Benoît HERVIER <b@rvier.fr> [daniel@redfelineninja.org.uk: Removed unused dual clock fonts from clock_dual.py, fixed up the manifest] Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-03-27apps: music: Change SWIPE_LEFTRIGHT to SWIPE_UPDOWN.Tait Berlette
The music player volume control uses up and down events, but in the foreground function the app requests left and right events. Signed-off-by: Tait Berlette <54515877+taitberlette@users.noreply.github.com>
2021-03-27wasptool: add --battery to check battery levelthefenriswolf
Signed-off-by: thefenriswolf <stefan.rohrbacher97@gmail.com>
2021-03-22draw565: Avoid over-long lines when handling spaceDaniel Thompson
Currently, if the line wrapper attempts to break a line on a space and that space character is outside the bounding box, then we generate an over-long line. Fix this by handling line break generation *after* we have checked the length of the current line. Fixes: #193 Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-03-10apps: software: Include word clock in the available applicationsDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-03-10apps: WordClock: Update screenshotDaniel Thompson
Update the screenshot with one that reflects the updated usage of Capital letters. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-03-10apps: software: Automatically track y position for checkboxesDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-03-10apps: WordClock: Add a new word-based clock appBrendan M. Sleight
Signed-off-by: Brendan M. Sleight <bms.git@barwap.com> [daniel@redfelineninja.org.uk: Squashed down into a single commit and updated subject] Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk
2021-03-09Update requirements.txtBrendan M. Sleight
Signed-off-by: Brendan M. Sleight <bms.git@barwap.com>
2021-03-09style: fix typo in READMELyz
Signed-off-by: Lyz <lyz@riseup.net>
2021-03-01apps: steps: Reduce the graphing scaleDaniel Thompson
Currently then even fast walking will run off the top of the graph. Change the scale to that fast walking shows in full. I think at this level fast running will probably run off the top but I need to gather a few more details before settling on the final scale. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-02-25apps: steps: Add a history graphDaniel Thompson
The steplogger records steps but currently there is no way to see the data recorded on the device itself. Make a first attempt at graphing the step data. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-02-25steplogger: Write less frequentlyDaniel Thompson
Currently we dump the step data every 30 minutes. This was a good interval for testing but we can extend it a little without any problems. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-02-25steplogger: Ensure today's data is updated when we provide itDaniel Thompson
Currently steps from the last six minutes do not appear in the data. We can fix this by updating the data before creating the iterator. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-02-25boards: simulator: Increase the display blanking timeDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-02-25boards: simulator: Pick up out-of-bounds drawingDaniel Thompson
Currently, if we ask the simulator to draw out-of-bounds then it will do exactly that, it will draw outside of the "screen" and corrupt the pixels of the watch frame that surrounds it. This is an obviously poor simulation of the real watch and when the out-of-bounds error is only an out-by-one error can be easily overlooked until we load the code on the device. Let's just throw an exception if we draw out-of-bounds. That can easily be picked up during testing. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-02-25tools: wasptool: Fix binary downloads for a specific special caseDaniel Thompson
Currently if the binary file being downloaded contains single quote characters then it gets wrapped differently by repr() so we have to add additional cases to strip the wrapper. Fix this the "obvious" way... where by "obvious" I mean almost anything but. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-02-21steplogger: Add iterator to allow UI to read the dataDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-02-21steplogger: Introduce code to perform data loggingDaniel Thompson
The code is not yet enabled by default but it can be tested by adding custom code to an interested user's main.py . Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-02-21tools: wasptool: Additional adoption of the run_command wrapperDaniel Thompson
run_command has particular benefits for handle_binary_download() because we can greatly simplify the code to handle running repr() on the target. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-02-21tool: wasptool: Add a free memory reporting toolDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-02-21tools: wasptool: Better REPL integrationDaniel Thompson
Add a run_command method for the "console". This allows running a command on the target and capturing the result. Normally this is handled using REPLWrapper but that doesn't work well with the NUS console because local echo gets in the way. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-02-21tools: wasptool: Add push/pull commandsDaniel Thompson
--push is very similar to --binary --upload but handles directories differently. --pull allows us to copy binary files from the target. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-02-20README: Update the intro after a redraft for the release announcementDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-02-20TODO: Finalize v0.4 changelogDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-02-20TODO: Describe goals for 0.5Daniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-02-20docs: install: Document the binary releasesDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-02-20st7789: Fix incorrect variable name in ST7789_SPIs. __init__ docstring.Piotr Tworek
The data signal pin name is dc, not cs. Signed-off-by: Piotr Tworek <tworaz@tworaz.net>
2021-02-20Added Docker setup to build wasp-os.Shuhao Wu
This should make it a bit easier for people to contribute. Also fixed the documentations on how to setup on Debian, as certain recommended packages don't exist. Signed-off-by: Shuhao Wu <shuhao@shuhaowu.com>
2021-02-20apps: settings: Clamp the dates a little more tightlyDaniel Thompson
Currently a couple of down presses on the year results in the time being set to some time in 2099. The micropython date logic does not support dates this far in the future and throws an exception. Adopt a simple fix that should be OK for the next 39 years ;-) . Reported-by: Christopher Peters <me@christopherp.de> Fixes: #167 Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-02-11docs: install: Fix typo in apt-get line for busterDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-02-06simulator: test: Add Draw565.bounding_box unit testsDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-02-05drivers: draw565: Added bounding_box() function that returns the size of a ↵kozova1
string. This function returns a tuple of (width, height) of the string, as it would appear if used in draw.string() Signed-off-by: kozova1 <mug66kk@gmail.com>
2021-02-04draw565: Fix an out-by-one error in _bounding_boxDaniel Thompson
Currently we add an extra blank pixel to the end of the string but this is not required. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-02-04apps: testapp: Ensure we test centred stringsDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-02-03apps: settings: Added labels to the datesIsaiah Grace
Signed-off-by: Isaiah Grace <isaiah@graces.com>
2021-02-03install: Correct the wasptool dependenciesDaniel Thompson
Fixes: a1b1502d926d ("install: Include the wasptool dependencies in the install guide") Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-01-30install: Include the wasptool dependencies in the install guideDaniel Thompson
Fixes: #159 Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-01-18apps: musicplayer: Adopt GfxButton and use it for trace fwd/backDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-01-18widgets: Add a button with a graphical iconDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-01-17drivers: st7789: Further reduce allocations during set_window()Daniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>