Using DHT11 sensor, sdWrite, wdt. Need to sleep more then this.

Dependencies:   DHT GPRSInterface HTTPClient_GPRS SDFileSystem USBDevice mbed

Committer:
seedteam20
Date:
Wed Apr 01 16:16:13 2015 +0000
Revision:
0:b6b64c1e74bb
Using DHT11 sensor and wdt. Not fully going to sleep.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
seedteam20 0:b6b64c1e74bb 1 /*
seedteam20 0:b6b64c1e74bb 2 IOT_hw.h
seedteam20 0:b6b64c1e74bb 3 2013 Copyright (c) Seeed Technology Inc. All right reserved.
seedteam20 0:b6b64c1e74bb 4
seedteam20 0:b6b64c1e74bb 5 Author:Loovee
seedteam20 0:b6b64c1e74bb 6 2013-7-21
seedteam20 0:b6b64c1e74bb 7
seedteam20 0:b6b64c1e74bb 8 This library is free software; you can redistribute it and/or
seedteam20 0:b6b64c1e74bb 9 modify it under the terms of the GNU Lesser General Public
seedteam20 0:b6b64c1e74bb 10 License as published by the Free Software Foundation; either
seedteam20 0:b6b64c1e74bb 11 version 2.1 of the License, or (at your option) any later version.
seedteam20 0:b6b64c1e74bb 12
seedteam20 0:b6b64c1e74bb 13 This library is distributed in the hope that it will be useful,
seedteam20 0:b6b64c1e74bb 14 but WITHOUT ANY WARRANTY; without even the implied warranty of
seedteam20 0:b6b64c1e74bb 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
seedteam20 0:b6b64c1e74bb 16 Lesser General Public License for more details.
seedteam20 0:b6b64c1e74bb 17
seedteam20 0:b6b64c1e74bb 18 You should have received a copy of the GNU Lesser General Public
seedteam20 0:b6b64c1e74bb 19 License along with this library; if not, write to the Free Software
seedteam20 0:b6b64c1e74bb 20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
seedteam20 0:b6b64c1e74bb 21 */
seedteam20 0:b6b64c1e74bb 22
seedteam20 0:b6b64c1e74bb 23 #ifndef __ARCH_GPRS_HW_H__
seedteam20 0:b6b64c1e74bb 24 #define __ARCH_GPRS_HW_H__
seedteam20 0:b6b64c1e74bb 25
seedteam20 0:b6b64c1e74bb 26 #include "ARCH_GPRS_HW_DFS.h"
seedteam20 0:b6b64c1e74bb 27
seedteam20 0:b6b64c1e74bb 28 class IOT_HW{
seedteam20 0:b6b64c1e74bb 29
seedteam20 0:b6b64c1e74bb 30 private:
seedteam20 0:b6b64c1e74bb 31
seedteam20 0:b6b64c1e74bb 32 public:
seedteam20 0:b6b64c1e74bb 33 int init(); // init all
seedteam20 0:b6b64c1e74bb 34 void init_io(); // init io
seedteam20 0:b6b64c1e74bb 35 void EG10_PWRON(); // power on eg10
seedteam20 0:b6b64c1e74bb 36 void EG10_PWROFF(); // power off eg10, cut the power
seedteam20 0:b6b64c1e74bb 37 void EG10_ON(); // turn on eg10
seedteam20 0:b6b64c1e74bb 38 void EG10_OFF(); // turn off eg10
seedteam20 0:b6b64c1e74bb 39 int getEG10_State(); // get state of eg10
seedteam20 0:b6b64c1e74bb 40 void EG10StateLed(unsigned char state); // control led
seedteam20 0:b6b64c1e74bb 41
seedteam20 0:b6b64c1e74bb 42 int readChrgState();
seedteam20 0:b6b64c1e74bb 43 float readBatVol();
seedteam20 0:b6b64c1e74bb 44 void userLed(unsigned char led, unsigned char state);
seedteam20 0:b6b64c1e74bb 45 void grovePwrOn();
seedteam20 0:b6b64c1e74bb 46 void grovePwrOff();
seedteam20 0:b6b64c1e74bb 47 };
seedteam20 0:b6b64c1e74bb 48
seedteam20 0:b6b64c1e74bb 49 extern IOT_HW iot_hw;
seedteam20 0:b6b64c1e74bb 50
seedteam20 0:b6b64c1e74bb 51 #endif
seedteam20 0:b6b64c1e74bb 52
seedteam20 0:b6b64c1e74bb 53 /*********************************************************************************************************
seedteam20 0:b6b64c1e74bb 54 END FILE
seedteam20 0:b6b64c1e74bb 55 *********************************************************************************************************/