1
0
Fork 0
Commit graph

638 commits

Author SHA1 Message Date
thiswillbeyourgithub
e5802839ec new: brightness and color change of flashlight
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.com>
2022-05-29 17:32:13 +01:00
Francesco Gazzetta
9adeea17bb Allow to set accel sensor orientation
Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2022-05-29 17:28:45 +01:00
Francesco Gazzetta
e3168b3b12 Add level app
Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2022-05-29 17:28:45 +01:00
Francesco Gazzetta
c47c911fe3 Expose acceleration data
Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2022-05-29 17:28:45 +01:00
thiswillbeyourgithub
09af1440ef docs: explain that Manager.run is not usually run
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.com>
2022-05-09 12:12:14 +01:00
thiswillbeyourgithub
0aa11d9a7f fix: disaBLE app out of sync
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.com>
2022-05-09 12:11:33 +01:00
thiswillbeyourgithub
f29a6013f5 feat: morse app saves text to file + erase + space + newline
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.comm>
2022-03-27 10:02:36 +01:00
thiswillbeyourgithub
afeae9fa80 new: add increment size argument in Spinner widgets
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.comm>
2022-03-27 09:33:01 +01:00
thiswillbeyourgithub
f4e03ab3cd docs: explicit --binary help
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.comm>
2022-03-27 09:29:57 +01:00
Francesco Gazzetta
a956b3efe5 Include the gallery app in micropython.zip
...and move GameOfLife out to make space

The gallery app needs too much memory to run from bytecode, and has to
be frozen in micropython.zip instead

Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2022-03-27 08:58:22 +01:00
Francesco Gazzetta
61d9dbce7c Gallery: BMP support
Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2022-03-27 08:58:22 +01:00
Francesco Gazzetta
eba94cd4f6 Add gallery app
Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2022-03-27 08:58:22 +01:00
thiswillbeyourgithub
7ac9395dba fix: switch app to itself cancel vibrations
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.comm>
2022-02-27 20:15:28 +00:00
thiswillbeyourgithub
a76c2413fb fix: forces root to be redirected locally
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.comm>
2022-02-27 20:08:18 +00:00
thiswillbeyourgithub
dbe489ce68 fix: wasptool --pull fails when downloading nested file
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.comm>
2022-02-27 20:08:18 +00:00
Francesco Gazzetta
5f28d05cc0 Alarm: swap stop and snooze controls
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-02 12:20:06 +00:00
Francesco Gazzetta
4b7cf88576 Add watchface with weekday
* 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-02 12:18:27 +00:00
Francesco Gazzetta
1c3a835448 Remove icons from watchface apps
They are not displayed anywhere but they take space

Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2022-02-02 12:18:27 +00:00
Francesco Gazzetta
01c173927e Add make and CI rules for building apps .mpy files
Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2022-01-10 22:35:04 +00:00
Francesco Gazzetta
b8a50db03c Add DisaBLE app that disables bluetooth
Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2021-12-26 21:25:07 +00:00
Francesco Gazzetta
5c714ea075 Optimize flash usage of weather app
Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2021-12-26 21:25:07 +00:00
Francesco Gazzetta
fc756bccc9 Optimize flash usage of calc app
Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2021-12-26 21:25:07 +00:00
Daniel Thompson
c876f7cfdb github: Add a version number to the cache
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-26 09:15:32 +00:00
Daniel Thompson
9012b85ede wasp: Switch recommended toolset to 10-2020-q4
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-12-24 09:28:22 +00:00
Francesco Gazzetta
36bbdaff6d Add *.mpy to gitignore
.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-12-24 09:14:03 +00:00
Francesco Gazzetta
867785edd9 Collect garbage before enabling apps
It especially helps loading big user defined apps.

Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2021-11-30 16:11:02 +01:00
Daniel Thompson
f11e41b553 wasp-os: micropython: Set ADC ACQTIME to 40us in nrf
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-11-26 18:58:50 +00:00
Francesco Gazzetta
b5f4099fa6 Test and build docs for user defined apps too
Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2021-11-17 15:29:08 +00:00
Francesco Gazzetta
0eabf0f109 Remove morse from default apps
Even after optimizing it, it makes the image 224 bytes too big.

Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2021-11-17 15:29:08 +00:00
Francesco Gazzetta
0854adb630 Morse app: optimize letter lookup and constants
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-17 15:29:08 +00:00
Francesco Gazzetta
c0065190b5 Add morse app
Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2021-11-17 15:29:08 +00:00
k
59c943d212 [alarms] Skip touch events on checkboxes of undefined alarms
Signed-off-by: k <k@klabz.org>
2021-10-16 10:37:25 +01:00
Rudy Ges
bd91a1076d HeartApp: draw black line ahead of cursor
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-16 10:32:34 +01:00
Rudy Ges
90411fb9f8 Calc app: fill gaps
Closes #262

Signed-off-by: k <k@klabz.org>
2021-10-16 10:32:03 +01:00
k
54e8f5771d [stopwatch] Fix refactoring remains
Closes #264

Signed-off-by: k <k@klabz.org>
2021-10-16 10:26:35 +01:00
Daniel Thompson
bbf7d3aa14 drivers: hrs3300: Reduce HGAIN to x8
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-10 21:17:57 +01:00
Daniel Thompson
da71d39aa4 tools: wasptool: Increase OTA reboot timeout
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-10 21:17:57 +01:00
Daniel Thompson
ba8546dd60 apps: software: Add support for user-defined applications
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-09-10 21:17:57 +01:00
Daniel Thompson
2a3ffad07d wasptool: Automatically create directories during upload
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-09-10 21:17:57 +01:00
Daniel Thompson
a7c8939737 docs appguide: Update the section on updating main.py
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-09-05 20:57:24 +01:00
Xander Sanger
fe8f6c799c improve and simplify installation guide
Signed-off-by: Xander Sanger <BlimpLover1000@protonmail.com>
Signed-off-by: Xander Sanger <81831075+BlimpLover1000@users.noreply.github.com>
2021-09-05 20:53:05 +01:00
Daniel Thompson
1696c33b36 bootloader: Provate a gcc-11 related workaround
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-09-05 20:45:36 +01:00
Daniel Thompson
4996769ae9 bma42x: Provide a means to check the chip id
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-08-31 21:53:24 +01:00
Daniel Thompson
59dff38811 k9, p8, pinetime: Fix initial filesystem creation
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-08-31 21:21:46 +01:00
Daniel Thompson
10c23b0303 bma42x-upy: Add BMA425 support
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-08-31 21:21:46 +01:00
Tait Berlette
dc40430faa apps: Fixed weather app with GadgetBridge.
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-23 20:09:02 +01:00
Daniel Thompson
a28a2cd7f4 tools: hrs2csv: Add a simple parser for hrs.data files
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-08-07 21:13:40 +01:00
Daniel Thompson
15434a3841 micropython: Update to v1.16
Don't forget to run `make submodules`!

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2021-07-28 22:01:31 +01:00
Daniel Thompson
2858826921 apps: Replace del self.x with self.x = None in all apps
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-28 22:01:04 +01:00
Andreas Kloeckner
bbadbd34c7 Fix escape sequences in wasptool
Signed-off-by: Andreas Kloeckner <inform@tiker.net>
2021-07-25 09:42:39 +01:00