Driver for FXPQ3115 sensor.

Example usage

main.cpp

#include "mbed.h"
#include "FXPQ3115.h"

FXPQ3115 pressure_sensor(P0_13, P0_14);

int main()
{
    pressure_sensor.sensor_init();

    while (1) {
        pressure_sensor.read_oneshotMode_bar();
        printf("Pressure in Pascals: %d\n", pressure_sensor.print_pressure());
        thread_sleep_for(20000);
    }
}
Download repository: zip gz

Files at revision 0:0b221579ed52

Name Size Actions
[up]
FXPQ3115.cpp 2354 Revisions Annotate
FXPQ3115.h 859 Revisions Annotate
FXPQ3115_reg.h 47922 Revisions Annotate