Added the functions to read and set the emissivity of the sensor.
Revision 7:be827071bcb0, committed 2020-09-18
- Comitter:
- lamell
- Date:
- Fri Sep 18 13:54:59 2020 -0400
- Parent:
- 6:689f0dab386c
- Commit message:
- Downgraded mbed-os to version 5.13 so accrodingly:
Changed thread_sleep_for to wait
Changed in this revision
mlx90614.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 689f0dab386c -r be827071bcb0 mlx90614.cpp --- a/mlx90614.cpp Mon May 11 18:38:27 2020 -0400 +++ b/mlx90614.cpp Fri Sep 18 13:54:59 2020 -0400 @@ -16,7 +16,7 @@ bool ch; i2c->stop(); //stop i2c if not ack - thread_sleep_for(10); + wait(0.010); i2c->start(); //start I2C ch=i2c->write(i2caddress); //device address with write condition @@ -51,7 +51,7 @@ i2c->stop(); //stop i2c if not ack - thread_sleep_for(10); + wait(0.010); i2c->start(); //start I2C ch = i2c->write(i2caddress); //device address with write condition @@ -88,7 +88,7 @@ p1[3]=0x00; i2c->stop(); //stop i2c if not ack - thread_sleep_for(10); + wait(0.010); i2c->start(); //start I2C ch = i2c->write(p1[0]); //device address with write condition if(!ch)return -1; //No Ack, return False @@ -118,7 +118,7 @@ uint8_t ch; i2c->stop(); //stop i2c if not ack - thread_sleep_for(10); + wait(0.010); i2c->start(); //start I2C ch = i2c->write(p[0]); //device address with write condition if(!ch)return -1; //No Ack, return False