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); } }
History
initial version, one shot mode for pressure only
2020-03-05, by Pawel Zarembski [Thu, 05 Mar 2020 11:13:50 +0100] rev 0
initial version, one shot mode for pressure only