This is a repository for code relating to mbed Fitness Tracker
Dependencies: mbed PulseSensor2 SCP1000 mbed-rtos 4DGL-uLCD-SE LSM9DS1_Library_cal PinDetect FatFileSystemCpp GP-20U7
Revision 10:aecee7025286, committed 2020-03-26
- Comitter:
- memig3
- Date:
- Thu Mar 26 22:25:20 2020 +0000
- Parent:
- 9:fb82124d9f6c
- Child:
- 11:94fb690c9a5f
- Commit message:
- pressure_sensor library;
Changed in this revision
SCP1000.lib | Show annotated file Show diff for this revision Revisions of this file |
pressure_sensor.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SCP1000.lib Thu Mar 26 22:25:20 2020 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/kadams6/code/SCP1000/#47d6f205890b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pressure_sensor.cpp Thu Mar 26 22:25:20 2020 +0000 @@ -0,0 +1,11 @@ +#include "mbed.h" +#include "SCP1000.h" + +Serial pc(USBTX, USBRX); +SCP1000 scp1000(p5,p6,p7,p8); + +int main() { + while(1) { + pc.printf("The pressure is %d Pa and the temperature is %f C\r\n", scp1000.readPressure(), scp1000.readTemperature()); + } +} \ No newline at end of file