lqml/examples/tilt-sensor
2024-10-26 12:58:15 +02:00
..
build-android add examples 'tilt-sensor' (sensor reading on mobile devices) 2022-04-15 10:32:22 +02:00
lisp revisions 2024-10-26 12:58:15 +02:00
platforms example 'tilt-sensor': fixed orientation on ios 2022-04-15 11:44:08 +02:00
qml revision of example 'tilt-sensor' 2022-04-15 16:22:58 +02:00
.gitignore add Windows platform (desktop only) 2022-04-20 21:54:29 +02:00
app.asd add examples 'tilt-sensor' (sensor reading on mobile devices) 2022-04-15 10:32:22 +02:00
app.pro revisions for SailfishOS 2023-10-18 21:02:46 +02:00
readme.md typo 2022-11-09 09:40:15 +01:00

Prepare

Please copy the app template files first:

$ cd ..
$ ./copy.sh tilt-sensor

Info

This shows how to read mobile device sensor data from QML, combined with a Timer. Note also how a Repeater simplifies the UI.

Run

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).