Hauptprogramm

Dependencies:   ILI9340_Driver_Lib PM2_Libary Lib_DFPlayerMini

Feuchtigkeitssensor/Chirp.h

Committer:
ackerden
Date:
2021-05-05
Revision:
30:39a53ed11b7d
Parent:
29:91df2c5fb297

File content as of revision 30:39a53ed11b7d:

#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