Gabriel Silva
/
mlx90615_lpc1768
program for temperature reading with mlx90615
Diff: main.cpp
- Revision:
- 1:c0d057b08394
- Parent:
- 0:db513e91a2c9
- Child:
- 2:c4552b8c47c0
--- 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