1
0
Fork 0
Commit graph

431 commits

Author SHA1 Message Date
Francesco Gazzetta
1798bc6eea bma42x-upy: update submodule
The remote of its submodule disappeared. Update it to a fork under
the wasp-os organization.

Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2024-06-28 09:30:14 +01:00
Tony Robinson
ae4230a6d7 Small change to fill() to exit early if there is nothing to do.
This avoids running unnessary code and avoids a bug in set_window().

Signed-off-by: Tony Robinson <tony@tonyRobinson.com>
2023-10-07 09:04:51 +01:00
thiswillbeyourgithub
6a67d9bf9f new: disable ppg light by default on startup
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.com>
2023-09-27 13:05:53 +01:00
thiswillbeyourgithub
a7c3e68f25 fix: simulator was missing some time functions
Signed-off-by: thiswillbeyourgithub <26625900+thiswillbeyourgithub@users.noreply.github.com>
2023-09-26 10:13:55 +01:00
Kyle Evans
9486899f4e wasp: Allow for clearing a tick request
There currently appears to be no way to remove a tick request,
and calling this func without args gives:

    self.tick_expiry = watch.rtc.get_uptime_ms() + period_ms
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'

Signed-off-by: Kyle Evans <kvans32@gmail.com>
2023-08-26 12:44:18 +01:00
Eloi Torrents
410b9da55f Simplify send_cmd in gadgetbridge.py
Signed-off-by: Eloi Torrents <eloitor@disroot.org>
2023-08-26 12:41:51 +01:00
thiswillbeyourgithub
f50d03e529 minor: pep8
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.com>
2023-08-24 10:18:59 +01:00
thiswillbeyourgithub
81e38a85b0 fix: remove any alarm given an action
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.com>
2023-08-24 10:18:59 +01:00
Tom Chiverton
1ad2ee1d66 draw565: Correct arguments order in polar() docs
Signed-off-by: Tom Chiverton <tomchiverton@users.noreply.github.com>
2023-08-24 10:17:10 +01:00
thiswillbeyourgithub
03c16d6c99 feat: remove any alarm given an action
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.com>
2023-05-16 15:10:14 +01:00
Adam Blair
e494eab608 Wasp A La carte
Configure wasp using a central toml file

Signed-off-by: Adam Blair <adampblair@protonmail.com>
2023-03-19 15:17:18 +00:00
Adam Blair
fd030eeff8 Phone finder app
* Added phone finder app that works with Gadgetbridge
* Fixed bug in ToggleButton
* Moved send_cmd from music player to gadgetbridge.py for all apps to use

Signed-off-by: Adam Blair adampblair@protonmail.com
2023-03-10 17:39:51 +00:00
Daniel Thompson
8ad72f1fb5
Merge pull request #387 from thiswillbeyourgithub/battery_smoothing
fix: battery level is not reset when charging without rebooting
2023-01-15 14:27:03 +00:00
thiswillbeyourgithub
32da478760 fix: battery smoothing was not reset before rebooting
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.com>
2023-01-15 15:21:07 +01:00
Daniel Thompson
c43d9b1a70 simulator: test_qa: Add explicit image size tests
Ensure screenshots are standard sized and that their usage in both
the README and the class docstrings are scaled appropriately.

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
2022-10-02 10:49:48 +01:00
thiswillbeyourgithub
dae4f3d9ce docs: add comments explaining why keep Pin import for battery
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.com>
2022-10-01 20:39:50 +02:00
Daniel Thompson
752fe77376
Merge pull request #318 from thiswillbeyourgithub/battery_smoothing
fix: smoothen battery level before showing it to user
2022-08-16 20:49:57 +01:00
thiswillbeyourgithub
d49324422d fix: activate alarm at boot
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.com>
2022-07-28 20:46:58 +02:00
thiswillbeyourgithub
a39683021d fix
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.com>
2022-07-28 20:46:58 +02:00
thiswillbeyourgithub
d12cd8d452 fix: files without suffix are deleted
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.com>
2022-07-25 21:42:59 +02:00
thiswillbeyourgithub
20027dc16a fix: don't erase previous alarm if none loaded
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.com>
2022-07-25 21:42:58 +02:00
thiswillbeyourgithub
040edba1f7 fix: asked by daniel_thompson
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.com>
2022-07-25 21:42:58 +02:00
thiswillbeyourgithub
cb51e83a28 new: increment minutes by 5 instead of 1
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.com>
2022-07-20 11:41:49 +02:00
thiswillbeyourgithub
6e9b7b374d feat: save alarms across reboots
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.com>
2022-07-20 11:41:49 +02:00
thiswillbeyourgithub
3f054b40e1 docs: mention that pressing the button will stop the watch
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.com>
2022-07-20 10:22:06 +02:00
Daniel Thompson
a527624cfa
Merge branch 'master' into beacon 2022-05-29 17:35:05 +01:00
thiswillbeyourgithub
c63c29fe76 fix: by fgaz, thanks!
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.com>
2022-05-29 17:32:13 +01:00
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
c47c911fe3 Expose acceleration data
Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2022-05-29 17:28:45 +01:00
Francesco Gazzetta
4d4c83e851 Docs and constants for hrs3300.set_drive()
Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2022-05-28 17:36:51 +02:00
Francesco Gazzetta
0cca03a94b Use functions from driver in beacon app
Instead of setting registers from the app.

* add wasp.drivers.hrs3300.set_hwt()

Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2022-05-28 17:36:51 +02:00
Francesco Gazzetta
fd5d6cbbe8 Make Slider.touch return True when the value changed
Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2022-05-28 11:34:45 +02:00
Francesco Gazzetta
9a1964ce41 Add hrs3300 write_reg and read_reg to simulator
Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2022-05-28 11:34:45 +02: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
fccf95c125 fix: smoothen battery voltage
Signed-off-by: thiswillbeyourgithub <github@32mail.33mail.comm>
2022-04-06 09:52:40 +02: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
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
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
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
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
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
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