![](/media/cache/profiles/b61abc775fa6b65019e9f6b02d891041.jpg.50x50_q85.jpg)
works fine on STM
Diff: main.cpp
- Revision:
- 3:5811c736c8ef
- Parent:
- 2:09b8571eb8ce
diff -r 09b8571eb8ce -r 5811c736c8ef main.cpp --- a/main.cpp Mon Feb 13 12:01:31 2017 +0000 +++ b/main.cpp Wed Feb 15 11:35:37 2017 +0000 @@ -32,7 +32,7 @@ data_write[0] = MLX90614_TOBJ; //TOBJ address to buff i2c.write( MLX90614_ADDR<<1 | 0x00, data_write, 1, 1); //command to RAM access SR activated i2c.read ( MLX90614_ADDR<<1 | 0x01, data_read , 3, 0); //read callback - Buff |= data_read[1] << 8; // merging + Buff = data_read[1] << 8; // merging Buff |= data_read[0]; led = 0; } \ No newline at end of file