Rohm
/
BM1383GLV_Hello
BM1383GLV library test program
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 #include "mbed.h" 00002 #include "BM1383GLV.h" 00003 00004 BM1383GLV sensor(I2C_SDA, I2C_SCL); 00005 Serial pc(USBTX, USBRX); 00006 00007 int main() { 00008 pc.printf("\nBM1383GLV Pressure sensor library test program.\n"); 00009 00010 while(1) { 00011 pc.printf("pressure=%7.2f, temperature=%5.3f\n", sensor.getPressure(), sensor.getTemperature()); 00012 wait(0.5); 00013 00014 } 00015 }
Generated on Thu Jul 14 2022 11:38:58 by 1.7.2