Arduino_LPS22HB - begin()

Initialize the pressure sensor.

Syntax

BARO.begin()

Parameters

None.

Returns

1 on success, 0 on failure.

Example

if (!BARO.begin()) {
    Serial.println("Failed to initialize pressure sensor!");
    while (1);
}

See also