summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-03-23analog24 watchface workHEADmasterMichele Bini
2022-02-27fix: switch app to itself cancel vibrationsthiswillbeyourgithub
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.comm>
2022-02-27fix: forces root to be redirected locallythiswillbeyourgithub
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.comm>
2022-02-27fix: wasptool --pull fails when downloading nested filethiswillbeyourgithub
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.comm>
2022-02-02Alarm: swap stop and snooze controlsFrancesco Gazzetta
It was too easy to accidentally stop the alarm by touching the screen, either by moving around or by trying to press the side button to snooze. Snoozing instead of stopping is better than the opposite because it poses no risk of missing the alarm, so we swap the controls to: touch -> snooze press -> stop Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2022-02-02Add watchface with weekdayFrancesco Gazzetta
* Allow overriding of date string in clock.py * Override it to display the weekday in week_clock.py Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2022-02-02Remove icons from watchface appsFrancesco Gazzetta
They are not displayed anywhere but they take space Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2022-01-10Add make and CI rules for building apps .mpy filesFrancesco Gazzetta
Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2021-12-26Add DisaBLE app that disables bluetoothFrancesco Gazzetta
Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2021-12-26Optimize flash usage of weather appFrancesco Gazzetta
Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2021-12-26Optimize flash usage of calc appFrancesco Gazzetta
Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2021-12-26github: Add a version number to the cacheDaniel Thompson
It isn't possible to clear the action cache directly but we can change the version number and adopt a new cache. Eventually the old (now unused one) will be cleaned up. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-12-24wasp: Switch recommended toolset to 10-2020-q4Daniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-12-24Add *.mpy to gitignoreFrancesco Gazzetta
.mpy files are micropython bytecode and should be ignored. Now that user-defined apps are implemented, it's likely that .mpy files will be present in apps/ Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2021-11-30Collect garbage before enabling appsFrancesco Gazzetta
It especially helps loading big user defined apps. Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2021-11-26wasp-os: micropython: Set ADC ACQTIME to 40us in nrfDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-11-17Test and build docs for user defined apps tooFrancesco Gazzetta
Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2021-11-17Remove morse from default appsFrancesco Gazzetta
Even after optimizing it, it makes the image 224 bytes too big. Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2021-11-17Morse app: optimize letter lookup and constantsFrancesco Gazzetta
The dictionary of strings was taking a lot of space, and is now replaced by a binary tree flattened into a string plus a small loookup function. Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2021-11-17Add morse appFrancesco Gazzetta
Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2021-10-16[alarms] Skip touch events on checkboxes of undefined alarmsk
Signed-off-by: k <k@klabz.org>
2021-10-16HeartApp: draw black line ahead of cursorRudy Ges
Helps seeing where the cursor is when displaying data over previous screen ![image](https://user-images.githubusercontent.com/6101998/134028533-5f190252-ad71-43c5-accc-c2b7b6c49663.png) Signed-off-by: k <k@klabz.org>
2021-10-16Calc app: fill gapsRudy Ges
Closes #262 Signed-off-by: k <k@klabz.org>
2021-10-16[stopwatch] Fix refactoring remainsk
Closes #264 Signed-off-by: k <k@klabz.org>
2021-09-10drivers: hrs3300: Reduce HGAIN to x8Daniel Thompson
Experimentally drop the HGAIN to x8. Currently the evidence base for this change is a little weak but it doesn't seem to be *worse* than what we have now. Therefore I hope the wasp-os users will forgive me for using them as guinea pigs! Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-09-10tools: wasptool: Increase OTA reboot timeoutDaniel Thompson
Currently --ota works "most of the time" but occasionally the OTA fails to start. Let's give the reset an extra second to settle! Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-09-10apps: software: Add support for user-defined applicationsDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-09-10wasptool: Automatically create directories during uploadDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-09-05docs appguide: Update the section on updating main.pyDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-09-05improve and simplify installation guideXander Sanger
Signed-off-by: Xander Sanger <BlimpLover1000@protonmail.com> Signed-off-by: Xander Sanger <81831075+BlimpLover1000@users.noreply.github.com>
2021-09-05bootloader: Provate a gcc-11 related workaroundDaniel Thompson
Currrently, gcc-11 users risk bricking their devices because to the combination of a new optimization pass and some mistakes in the way the Nordic Softdevice headers wrap the SD system calls. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-08-31bma42x: Provide a means to check the chip idDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-08-31k9, p8, pinetime: Fix initial filesystem creationDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-08-31bma42x-upy: Add BMA425 supportDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-08-23apps: Fixed weather app with GadgetBridge.Tait Berlette
When I created the weather app I didn't have GadgetBridge installed, so I tried to follow the protocol on the [espurino website](https://www.espruino.com/Gadgetbridge), but it wasn't very helpful and I made some mistakes. This commit should fix these mistakes to stop the weather app from crashing, and so it displays the correct values. I have also added a new settings option called "Units", where apps can see what units the user would prefer (metric/imperial). Signed-off-by: Tait Berlette <54515877+taitberlette@users.noreply.github.com>
2021-08-07tools: hrs2csv: Add a simple parser for hrs.data filesDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-07-28micropython: Update to v1.16Daniel Thompson
Don't forget to run `make submodules`! Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-07-28apps: Replace del self.x with self.x = None in all appsDaniel Thompson
Testing has demonstrated that del self.x does not make the memory used to store x available for garbage collection. There is clearly an additional reference from another place. In fact *after* del self.x then the memory can be made available for GC by assignment (e.g. self.x = None). However I haven't found how to release this reference and there is nothing in self.__dict__ that can help. For now we'll use a twp-step process where we set the variable to None before deleting it. This has a big impact on memory usage. For Software it is almost 1k (a.k.a. about 10% impact on free RAM). Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-07-25Fix escape sequences in wasptoolAndreas Kloeckner
Signed-off-by: Andreas Kloeckner <inform@tiker.net>
2021-07-25wasptool: Make mem_free issue data as csvDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-07-25Advanced alarm appAdam Blair
Features: * Multiple alarms (up to 4) * Day of the week support * One time alarms * Snooze Changes to wasp-os for app support: * Added + and - to the 28pt and 36pt fonts * Checkboxes now require a click on the body of the checkbox if there is no label * Added a Toggle Button class that extends Button and stores a state like checkbox Signed-off-by: Adam Blair <adampblair@protonmail.com>
2021-07-22draw565: Improve line wrappingDaniel Thompson
Currently the final word of wrapped text will always appear as a single word on its own line. Fix this by rearranging the break cases to avoid searching for the most recent space when we get to the end of the text. Fixes: #230 Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-06-21wasp: Manager: Fix the capture of the post-init free RAMDaniel Thompson
Fixes: b59a5b1d37c3 ("wasp: Manager: Rewrite the startup logic") Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-06-20wasp: Manager: Rewrite the startup logicDaniel Thompson
Reduce the number of applications imported by the manager and alter the way applications are initially registered to allow main.py complete control over the initial applications (but only if it wants it). Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-06-20drivers: cst816s: Add a version() methodDaniel Thompson
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-06-20apps: SportsApp: Initial sports app implementationDaniel Thompson
This app is functional... although it lacking in almost every costmetic way, from the icon to the main screen. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-06-20widgets: Further compact some of the internal representationsDaniel Thompson
Many widgets adopted the _im(mutable) idiom to allow us to reduce the RAM overhead of each widget. Where the immutable data considers entirely of integers smaller than 256 then we can push this just a little further by switching from a tuple to a bytes. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-06-20widgets: Refactor the stopwatch as a widgetDaniel Thompson
This is purely a refactoring for the purposes of code reuse. No change of behaviour is expected. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-06-20tools: Update nrfutil for click 8.x compatibilityDaniel Thompson
Tested on Debian bullseye using wasp/requirements.txt in order to get the latest version of click. Fixes: #211 Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-06-20boards: simulator: main: Update the ChronoApp exampleDaniel Thompson
Currently the ChronoApp example code is both broken (missing apps. prefix) and doesn't use the latest API for registering watch faces. Fix this. Whilst here let's also provide an example for the DemoApp since that is not included in the Software chooser. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>