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.
Chirp.h
00001 00002 #ifndef MBED_CHIRP_H 00003 #define MBED_CHIRP_H 00004 00005 #include "mbed.h" 00006 00007 //#define _DEBUG 00008 #define DEFAULT_SLAVE_ADDRESS (0x20 << 1) 00009 00010 00011 class Chirp 00012 { 00013 public: 00014 Chirp(PinName sda, PinName sck, char slave_adr = DEFAULT_SLAVE_ADDRESS); 00015 float getCapacitance(void); 00016 float getTemperature(void); 00017 00018 private: 00019 00020 I2C *i2c_p; 00021 I2C &i2c; 00022 char address; 00023 }; 00024 00025 00026 00027 00028 #endif // MBED_CHIRP_H
Generated on Tue Jul 12 2022 19:05:13 by
1.7.2