Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Arduino_BHY2/examples/Standalone/Standalone.ino
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ SensorXYZ gyro(SENSOR_ID_GYRO);
Sensor temp(SENSOR_ID_TEMP);
Sensor gas(SENSOR_ID_GAS);
SensorQuaternion rotation(SENSOR_ID_RV);
SensorBSEC bsec(SENSOR_ID_BSEC);

void setup()
{
Expand All @@ -25,6 +26,7 @@ void setup()
gyro.begin();
temp.begin();
gas.begin();
bsec.begin();
rotation.begin();
}

Expand All @@ -42,6 +44,8 @@ void loop()
Serial.println(String("gyroscope: ") + gyro.toString());
Serial.println(String("temperature: ") + String(temp.value(),3));
Serial.println(String("gas: ") + String(gas.value(),3));
Serial.println(String("co2: ") + String(bsec.co2_eq()));
Serial.println(String("iaq: ") + String(bsec.iaq()));
Serial.println(String("rotation: ") + rotation.toString());
}
}