I2C 接続の温度センサ ADT7410 用のライブラリ. Library for temperature sensor ADT7410 connected using I2C interface.
Dependents: Mbed2_ConnectTestAll Demo_ADT7410
Diff: ADT7410.hpp
- Revision:
- 3:e0717c58a396
- Parent:
- 2:c134a43c7875
- Child:
- 4:3769397d3803
--- a/ADT7410.hpp Mon Jun 15 09:18:19 2015 +0000 +++ b/ADT7410.hpp Wed Sep 14 23:35:30 2016 +0000 @@ -1,7 +1,7 @@ //-------------------------------------------------------------- // Class for using ADT7410 (Header) // Default: 13-bit resolution -// 2015/06/15, Copyright (c) 2015 MIKAMI, Naoki +// 2015/09/27, Copyright (c) 2015 MIKAMI, Naoki //-------------------------------------------------------------- #ifndef ADT7410_HPP @@ -15,10 +15,16 @@ { public: // Constructor +#if defined(STM32F4) || defined(STM32L0) || defined(__STM32F3xx_H) ADT7410(PinName sda = D14, // SDA PinName scl = D15, // SCL uint8_t addr = 0x90); // I2C bus address - +// Default constructor is defined for only Nucleo +#else + ADT7410(PinName sda, // SDA + PinName scl, // SCL + uint8_t addr = 0x90); // I2C bus address +#endif // Set configuration register void SetConfig(char val);