Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed MS5803_paris_Saclay
main.cpp
00001 #include "mbed.h" 00002 00003 #include "MS5803.h" 00004 using namespace std; 00005 00006 //I2C i2c(PA_10,PA_9); 00007 00008 00009 char tb[3]; 00010 Timer t1; 00011 int main() 00012 { 00013 bool ack; 00014 // Initialize big pressure sensor 00015 MS5803 big_sensor = MS5803(PA_10,PA_9, ms5803_addrCH); 00016 big_sensor.MS5803Init(); 00017 float pressure_big; 00018 float temp_big; 00019 while(1) { 00020 00021 big_sensor.Barometer_MS5803(); 00022 pressure_big = big_sensor.MS5803_Pressure(); 00023 temp_big = big_sensor.MS5803_Temperature(); 00024 printf("Press: %f ", pressure_big); 00025 printf(" Temp: %f\r\n", temp_big); 00026 wait(1.); 00027 } 00028 }
Generated on Wed Jul 27 2022 10:10:07 by
1.7.2