Difference between revisions of "Component: Barometer (BMP280 / Grove 101020192) (101020192) (Environmental)"
From Flowcode Help
Jump to navigationJump to searchLine 73: | Line 73: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
+ | |||
+ | |||
Line 79: | Line 81: | ||
==Macro reference== | ==Macro reference== | ||
+ | ===ReadPressureFloat=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 92: | Line 95: | ||
+ | ===Reset=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 105: | Line 109: | ||
+ | ===I2C_Read_Register=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 123: | Line 128: | ||
+ | ===ReadTemperatureFloat=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 136: | Line 142: | ||
+ | ===Altitude=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 149: | Line 156: | ||
+ | ===Forced_Read=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 162: | Line 170: | ||
+ | ===I2C_Write_Register=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 185: | Line 194: | ||
+ | ===Initialise=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- |
Revision as of 11:50, 3 February 2023
Author | Matrix TSL |
Version | 1.2 |
Category | Environmental |
Contents
Barometer (BMP280 / Grove 101020192) component
Barometric pressure sensor with a I2C bus interface. Pressure range 300 to 1100 hPa. Temperature range -40 to +85 ?C.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Grove_Barometer_Sensor_BMP280.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Grove_Barometer_Sensor_BMP280.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
ReadPressureFloat
ReadPressureFloat | |
Reads the pressure as a floating point value in Bars. Calls the ReadPressureRaw function and then converts to a meaningful value. | |
- FLOAT | Return |
Reset
Reset | |
Resets the device | |
- VOID | Return |
I2C_Read_Register
I2C_Read_Register | |
Reads a byte value from a register on the device | |
- BYTE | Address |
- BYTE | Return |
ReadTemperatureFloat
Altitude
Altitude | |
Calculates the altitude based on difference between actual pressure and the pressure at the sea level P0=1013.25 hPa. | |
- FLOAT | Return |
Forced_Read
Forced_Read | |
- VOID | Return |
I2C_Write_Register
I2C_Write_Register | |
Writes a byte value to a register on the device | |
- BYTE | Address |
- BYTE | Value |
- VOID | Return |
Initialise
Initialise | |
Starts up the I2C bus and initialises the pressure sensor ready for use. Returns 1 for a sucessful startup. Returns 0 for a failed startup or no device detected. | |
- BYTE | Return |