With this libary you can read the I2C tempsensor off the appboard.
TemperatureSensor.h
- Committer:
- de_geeter_alexander
- Date:
- 2015-12-25
- Revision:
- 0:1a9f04f52745
File content as of revision 0:1a9f04f52745:
#ifndef TEMPERATURESENSOR_H
#define TEMPERATURESENSOR_H
#include "LM75B.h"
#include <string>
class TemperatureSensor : public LM75B
{
public:
TemperatureSensor(PinName SDA, PinName SCL, std::string key, std::string name);
std::string getDataPacket(void);
private:
std::string name;
std::string key;
};
#endif