Hauptprogramm
Dependencies: ILI9340_Driver_Lib PM2_Libary Lib_DFPlayerMini
Diff: Feuchtigkeitssensor/Chirp.h
- Revision:
- 27:bbcd157dcd63
- Child:
- 29:91df2c5fb297
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Feuchtigkeitssensor/Chirp.h Sun May 02 19:50:46 2021 +0000 @@ -0,0 +1,27 @@ +#ifndef MBED_CHIRP_H +#define MBED_CHIRP_H + +#include "mbed.h" + +//#define _DEBUG +#define DEFAULT_SLAVE_ADDRESS (0x20 << 1) + + +class Chirp +{ + public: + Chirp(PinName sda, PinName sck, char slave_adr = DEFAULT_SLAVE_ADDRESS); + float getCapacitance(void); + float getTemperature(void); + + private: + + I2C *i2c_p; + I2C &i2c; + char address; +}; + +void getResults(); + + +#endif // MBED_CHIRP_H \ No newline at end of file