From f469615fa1083ede58ec8603447b5feadaa83bd8 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Sat, 21 Nov 2015 13:19:21 +0100 Subject: Add orientation to the README's example code Change-Id: Iaf744763f4e5f10a9e91709af838277ce019a91a Reviewed-by: Laszlo Agocs --- README.md | 3 +++ 1 file changed, 3 insertions(+) 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(); } -- cgit v1.2.3