BM1383GLV library test program

Dependencies:   BM1383GLV mbed

main.cpp

Committer:
MACRUM
Date:
2016-01-03
Revision:
0:a5fc1a590bd4

File content as of revision 0:a5fc1a590bd4:

#include "mbed.h"
#include "BM1383GLV.h"

BM1383GLV sensor(I2C_SDA, I2C_SCL);
Serial pc(USBTX, USBRX);

int main() {
    pc.printf("\nBM1383GLV Pressure sensor library test program.\n");

    while(1) {
        pc.printf("pressure=%7.2f, temperature=%5.3f\n", sensor.getPressure(), sensor.getTemperature());
        wait(0.5);
        
    }
}