aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-11-21 13:19:21 +0100
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-11-21 12:19:48 +0000
commitf469615fa1083ede58ec8603447b5feadaa83bd8 (patch)
tree3ea23e53090d38b42a9a9bd56dac21a5ec4dec14
parent3bd8002945e6c3e0119b8db1fce22e634e9c4ca5 (diff)
Add orientation to the README's example code
Change-Id: Iaf744763f4e5f10a9e91709af838277ce019a91a Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
-rw-r--r--README.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/README.md b/README.md
index 0d932e3..f03260c 100644
--- a/README.md
+++ b/README.md
@@ -56,6 +56,9 @@ Sensors example:
QObject::connect(&sensors, &QSenseHatSensors::compassChanged, [](const QVector3D &v) {
qDebug() << "Compass:" << v;
});
+ QObject::connect(&sensors, &QSenseHatSensors::orientationChanged, [](const QVector3D &v) {
+ qDebug() << "Orientation:" << v;
+ });
QTimer::singleShot(10000, &app, &QCoreApplication::quit);
return app.exec();
}