diff options
Diffstat (limited to 'examples/sensehat/sensors/main.cpp')
-rw-r--r-- | examples/sensehat/sensors/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/sensehat/sensors/main.cpp b/examples/sensehat/sensors/main.cpp index f2c6399..87968cf 100644 --- a/examples/sensehat/sensors/main.cpp +++ b/examples/sensehat/sensors/main.cpp @@ -70,6 +70,9 @@ int main(int argc, char **argv) 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); |