lqml/examples/tilt-sensor
2022-04-16 07:09:07 +02:00
..
build-android add examples 'tilt-sensor' (sensor reading on mobile devices) 2022-04-15 10:32:22 +02:00
lisp revisions 2022-04-16 07:09:07 +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
app.asd add examples 'tilt-sensor' (sensor reading on mobile devices) 2022-04-15 10:32:22 +02:00
app.pro example 'tilt-sensor': fixed orientation on ios 2022-04-15 11:44:08 +02:00
readme.md add examples 'tilt-sensor' (sensor reading on mobile devices) 2022-04-15 10:32:22 +02: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 releoad 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).