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.
grove_barometer_class.h
- Committer:
- JackyZhangFromSeeed
- Date:
- 2015-06-09
- Revision:
- 0:3d05d80776f9
File content as of revision 0:3d05d80776f9:
#ifndef __GROVE_BAROMETER_CLASS_H__
#define __GROVE_BAROMETER_CLASS_H__
#include "grove_barometer.h"
//GROVE_NAME "Grove_Barometer"
//IF_TYPE I2C
//IMAGE_URL http://www.seeedstudio.com/wiki/File:Grove-Barometer.jpg
class GroveBarometer
{
public:
GroveBarometer(int pinsda, int pinscl);
bool write_setup(void);
bool read_temperature(float *temperature);
bool read_pressure(long *pressure);
bool read_altitude(float *altitude);
private:
I2C_T *i2c;
};
#endif