Reference

Last revision 2025/12/18

Library

Download and install the LPS27HHW Library for Arduino IDE. Follow the library installation guide if needed.

API Description

List of main API interface functions:

/*!
 *  @brief Get current pressure, unit: hPA
 *  @return Return current pressure,output it as a floating point number
 */
    float getPressureData_hPA();

/*!
 *  @brief Get current temperature, unit: °C
 *  @return Return current temperature, output it as a floating point number
 */
    float getTemperature_C();

/**
  * @brief  Temperature output from FIFO value.[get]
  * @retval Sensor pressure
  */
    float getFifoPressure_hPA();

/**
  * @brief  Temperature output from FIFO value.[get]
  * @retval Sensor temperature
  */
    float getFifoTemperature_C();

/**
  * @brief  Temperature output from FIFO value.[get]
  * @retval Sensor pressure
  */
    float getFifoPressure_hPA();

/**
  * @brief  Temperature output from FIFO value.[get]
  * @retval Sensor temperature
  */
    float getFifoTemperature_C();

Other Supplementary Information

Notice: This module only supports 3.3V, if you need to use it on the 5V main control, please use the level conversion module.

Was this article helpful?

TOP