Hauptprogramm

Dependencies:   ILI9340_Driver_Lib PM2_Libary Lib_DFPlayerMini

Feuchtigkeitssensor/Chirp.h

Committer:
ackerden
Date:
2021-05-05
Revision:
29:91df2c5fb297
Parent:
27:bbcd157dcd63

File content as of revision 29:91df2c5fb297:

#ifndef MBED_CHIRP_H
#define MBED_CHIRP_H
 
#include "mbed.h"
 
//#define _DEBUG
#define DEFAULT_SLAVE_ADDRESS (0x49 << 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