Seeed / grove_moisture
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers grove_moisture_class.h Source File

grove_moisture_class.h

00001 
00002 
00003 
00004 #ifndef __GROVE_MOISTURE_CLASS_H__
00005 #define __GROVE_MOISTURE_CLASS_H__
00006 
00007 #include "grove_moisture.h"
00008 
00009 //GROVE_NAME        "Grove_Moisture"
00010 //IF_TYPE           ANALOG
00011 //IMAGE_URL         http://www.seeedstudio.com/wiki/File:Moisture_sensor_.jpg
00012 
00013 class GroveMoisture
00014 {
00015 public:
00016     GroveMoisture(int pin);
00017     bool write_setup(void);
00018     bool read_moisture(uint16_t *moisture);
00019     
00020 private:
00021     ANALOG_T *analog;
00022 };
00023 
00024 #endif