program for temperature reading with mlx90615

Dependencies:   crc8

Files at this revision

API Documentation at this revision

Comitter:
glsfacom
Date:
Wed Jul 15 18:55:10 2020 +0000
Parent:
0:db513e91a2c9
Child:
2:c4552b8c47c0
Commit message:
mbed os5;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Jul 15 18:20:00 2020 +0000
+++ b/main.cpp	Wed Jul 15 18:55:10 2020 +0000
@@ -15,10 +15,10 @@
     c.input();                          // Make it input to start with...
     c.mode(PullUp);                     // ...with pull up
     c.output();                         // Override clock pin low
-    wait(0.00005);                      // Pause for treq 39ms
+    ThisThread::sleep_for(0.00005);                      // Pause for treq 39ms
     c.input();                          // Remove override...
     c.mode(PullUp);                     // ...with pull up
-    wait(0.00005);                      // Pause again
+    ThisThread::sleep_for(0.00005);                      // Pause again
 }
 
 int main(){
@@ -28,6 +28,6 @@
     while(true){
       temp=mlx90615.read_temperature();
       pc.printf("%4.2f Celcius\r\n", temp);
-      wait(1);
+      ThisThread::sleep_for(1);
     }
 }
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-os.lib	Wed Jul 15 18:55:10 2020 +0000
@@ -0,0 +1,1 @@
+https://github.com/armmbed/mbed-os/#3ab72c71b75cb9cb91160a54fba22ec43b036ed2
--- a/mbed.bld	Wed Jul 15 18:20:00 2020 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file