Component: Air Quality (BME688) (Environmental)
From Flowcode Help
Author | MatrixTSL |
Version | 1.0 |
Category | Environmental |
Contents
Air Quality (BME688) component
An air quality sensor connected using a standard I2C bus. Capable of detecting indoor and outdoor air quality including CO2 H2 VOCs and VSCs.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_BME688_AirQualitySensor.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_BME688_AirQualitySensor.fcfx
Detailed description
Examples
Macro reference
Initialise
![]() |
Initialise |
Initialises the I2C bus and sets up the device ready for operation. Returns 1 if the device has been found and is communicating. | |
![]() |
Return |
PerformGasResistanceCycle
ReadGasResistance
![]() |
ReadGasResistance |
Reads the resistance of the gas in ohms from the last heating cycle. | |
![]() |
Return |
ReadHumidity
![]() |
ReadHumidity |
Collects the humidity and returns as a floating point value in percent. | |
![]() |
Index |
Forced Mode = 0 / Parallel Mode = 0-2 | |
![]() |
Return |
ReadPressure
![]() |
ReadPressure |
Collects the pressure and returns as a floating point value in pascal. | |
![]() |
Index |
Forced Mode = 0 / Parallel Mode = 0-2 | |
![]() |
Return |
ReadRegister
![]() |
ReadRegister |
A simple example showing a generic way to read a register using I2C. | |
![]() |
Address |
![]() |
Return |
ReadTemperature
![]() |
ReadTemperature |
Collects the temperature and returns as a floating point value in degrees C. | |
![]() |
Index |
Forced Mode = 0 / Parallel Mode = 0-2 | |
![]() |
Return |
SetMode
![]() |
SetMode |
Sets the mode of the sensor to low power sleep, forced or parallel | |
![]() |
Mode |
0=Sleep, 1=Forced, 2=Parallel | |
![]() |
Return |
WriteRegister
![]() |
WriteRegister |
A simple example showing a generic way to write a register using I2C. | |
![]() |
Address |
![]() |
Data |
![]() |
Return |