We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b470afc commit 817a51eCopy full SHA for 817a51e
examples/Standalone/Standalone.ino
@@ -12,6 +12,7 @@ SensorXYZ accel(SENSOR_ID_ACC);
12
SensorXYZ gyro(SENSOR_ID_GYRO);
13
Sensor temp(SENSOR_ID_TEMP);
14
Sensor gas(SENSOR_ID_GAS);
15
+SensorQuaternion rotation(SENSOR_ID_RV);
16
17
void setup()
18
{
@@ -24,6 +25,7 @@ void setup()
24
25
gyro.begin();
26
temp.begin();
27
gas.begin();
28
+ rotation.begin();
29
}
30
31
void loop()
@@ -40,5 +42,6 @@ void loop()
40
42
Serial.println(String("gyroscope: ") + gyro.toString());
41
43
Serial.println(String("temperature: ") + String(temp.value(),3));
44
Serial.println(String("gas: ") + String(gas.value(),3));
45
+ Serial.println(String("rotation: ") + rotation.toString());
46
47
0 commit comments