lqml/examples/wear-os-heart
2022-11-09 09:40:15 +01:00
..
build-android new example: 'wear-os-gps' (meant for use on e.g. a canoe) 2022-07-03 14:15:07 +02:00
cpp new example: 'wear-os-gps' (meant for use on e.g. a canoe) 2022-07-03 14:15:07 +02:00
lisp new example: 'wear-os-gps' (meant for use on e.g. a canoe) 2022-07-03 14:15:07 +02:00
platforms/android new example: 'wear-os-gps' (meant for use on e.g. a canoe) 2022-07-03 14:15:07 +02:00
qml new example: 'wear-os-gps' (meant for use on e.g. a canoe) 2022-07-03 14:15:07 +02:00
qt-sensor-hack new example: 'wear-os-gps' (meant for use on e.g. a canoe) 2022-07-03 14:15:07 +02:00
.gitignore new example: 'wear-os-gps' (meant for use on e.g. a canoe) 2022-07-03 14:15:07 +02:00
app.asd new example: 'wear-os-gps' (meant for use on e.g. a canoe) 2022-07-03 14:15:07 +02:00
app.pro example 'wear-os-gps': replace 'CircularGauge' with custom one 2022-07-24 23:46:52 +02:00
readme-build.md add settings to example 'wear-os-gps' 2022-07-05 17:59:16 +02:00
readme.md typo 2022-11-09 09:40:15 +01:00

Prepare

Please copy the app template files first:

$ cd ..
$ ./copy.sh wear-os-heart

Info

This shows how to build WearOS apps (typically a 32bit watch).

It also shows how to integrate the (not yet officially supported by Qt) heart rate sensor.

It takes the watch sensor a few seconds before heart rate data is available, so initially a demo mode with 60 bpm is shown. The red border will change to green as soon as real data is arriving.

Run (desktop demo)

lqml run.lisp

Optionally pass -slime to start a Swank server, and connect from Emacs with M-x slime-connect.

During development you can pass -auto, which will reload all QML files after you made a change to any of them and saved it. For re-initialization after reloading, file lisp/qml-reload/on-reloaded will be loaded.

Closing the window quits the app. If you try to kill it with ctrl-c, you need an additional ctrl-d to exit from ECL. To quit from Slime, do (qq) which is short for (qquit).

...and the Apple Watch?

If you were wondering: both ECL and Qt run almost everywhere, but there are exceptions. So, neither ECL (because of some missing OS API), nor QML (only Qt Core would run) can currently be used on the Apple Watch.

So, just use SwiftUI there.