Skip to content

BM1383GLV Class

Jan Gromeš edited this page May 21, 2017 · 1 revision
  • Public member variables:

    • float BM1383GLV::p Pressure in hPa.
  • Public member functions:

    • BM1383GLV::BM1383GLV(uint8_t address) The default constructor.

      address = BM1383GLV_DEVICE_ADDRESS Default value, the default I2C address.

    • uint8_t BM1383GLV::init(uint8_t mode, uint8_t avg, uint8_t tempAvg) The initialization function. Returns 0 on successful initialization, 1 on failure.

      mode = BM1383GLV_CONTINUOUS_200_MS Default value, continuous measurement mode over 200 ms.
      mode = BM1383GLV_<mode_name> Other possible measurement modes, see /sensors/BM1383GLV.cpp for details.
      avg = BM1383GLV_AVERAGE_64 Default value, the output value will be an average of 64 measurements.
      avg = BM1383GLV_AVERAGE_<n> Other possible averaging values, see /sensors/BM1383GLV.cpp for details.

    • uint8_t BM1383GLV::measure(void) The measurement function. Returns 0 if the public measurement variable was successfully updated, 1 if not.

Clone this wiki locally