I2C 接続の温度センサ ADT7410 用のライブラリの使用例. Demo program of the library for temperature sensor ADT7410 connected using I2C interface.
Dependencies: mbed UIT_ADT7410
Diff: main.cpp
- Revision:
- 1:639e2ad4ab5e
- Parent:
- 0:4987fb36ca61
- Child:
- 2:ed374946c673
diff -r 4987fb36ca61 -r 639e2ad4ab5e main.cpp --- a/main.cpp Mon Jun 15 05:46:14 2015 +0000 +++ b/main.cpp Mon Jun 15 07:26:32 2015 +0000 @@ -35,7 +35,10 @@ while (true) { - float tempr = tempr_.Get(); + // Menber function version +// float tempr = tempr_.Read(); + // Operator version + float tempr = tempr_; #ifdef USING_AQM1602 char str[8];