Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
ADT7410.h
00001 #ifndef ADT7410_H_ 00002 #define ADT7410_H_ 00003 00004 #include "mbed.h" 00005 00006 #define ADT7410_I2C_ADDR 0x90 00007 #define ADT7410_TMPH_ADDR 0x00 00008 #define ADT7410_CFG_ADDR 0x03 00009 00010 class ADT7410 { 00011 public: 00012 ADT7410(PinName sda, PinName scl); 00013 00014 void send(char data_0, char data_1); 00015 void recv(char data); 00016 float temp_value(); 00017 00018 protected: 00019 I2C i2c; 00020 00021 char buf[2]; 00022 00023 }; 00024 00025 #endif /* ADT7410_H_ */
Generated on Sun Jul 17 2022 01:06:57 by
1.7.2