update

Dependents:   mbed_Wiznet_W7500 httpServer-WIZwiki-W7500

Fork of Air_Quality by Seo-young Yoon

Committer:
M_J
Date:
Wed Aug 12 04:49:28 2015 +0000
Revision:
1:3d804fbaa44d
Parent:
0:7653022b71cb
update

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ysy00700 0:7653022b71cb 1 /*
ysy00700 0:7653022b71cb 2 AirQuality library v1.0
ysy00700 0:7653022b71cb 3 2010 Copyright (c) Seeed Technology Inc. All right reserved.
ysy00700 0:7653022b71cb 4
ysy00700 0:7653022b71cb 5 Original Author: Bruce.Qin
ysy00700 0:7653022b71cb 6
ysy00700 0:7653022b71cb 7 This library is free software; you can redistribute it and/or
ysy00700 0:7653022b71cb 8 modify it under the terms of the GNU Lesser General Public
ysy00700 0:7653022b71cb 9 License as published by the Free Software Foundation; either
ysy00700 0:7653022b71cb 10 version 2.1 of the License, or (at your option) any later version.
ysy00700 0:7653022b71cb 11
ysy00700 0:7653022b71cb 12 This library is distributed in the hope that it will be useful,
ysy00700 0:7653022b71cb 13 but WITHOUT ANY WARRANTY; without even the implied warranty of
ysy00700 0:7653022b71cb 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
ysy00700 0:7653022b71cb 15 Lesser General Public License for more details.
ysy00700 0:7653022b71cb 16
ysy00700 0:7653022b71cb 17 You should have received a copy of the GNU Lesser General Public
ysy00700 0:7653022b71cb 18 License along with this library; if not, write to the Free Software
ysy00700 0:7653022b71cb 19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
ysy00700 0:7653022b71cb 20 */
ysy00700 0:7653022b71cb 21 #include"mbed.h"
ysy00700 0:7653022b71cb 22 #ifndef __AIRQUALITY_H__
ysy00700 0:7653022b71cb 23 #define __AIRQUALITY_H__
ysy00700 0:7653022b71cb 24 class AirQuality
ysy00700 0:7653022b71cb 25 {
ysy00700 0:7653022b71cb 26 public:
ysy00700 0:7653022b71cb 27 int i ;
ysy00700 0:7653022b71cb 28 long vol_standard;
ysy00700 0:7653022b71cb 29 int init_voltage;
ysy00700 0:7653022b71cb 30 int first_vol;
ysy00700 0:7653022b71cb 31 int last_vol;
ysy00700 0:7653022b71cb 32 int temp;
ysy00700 0:7653022b71cb 33 int counter;
ysy00700 0:7653022b71cb 34 bool timer_index;
ysy00700 0:7653022b71cb 35 bool error;
ysy00700 0:7653022b71cb 36 void init(PinName pin, void(*IRQ)(void));
ysy00700 0:7653022b71cb 37 int slope(void);
ysy00700 0:7653022b71cb 38 private:
ysy00700 0:7653022b71cb 39 PinName _pin;
ysy00700 0:7653022b71cb 40 void avgVoltage(void);
ysy00700 0:7653022b71cb 41 };
ysy00700 0:7653022b71cb 42 #endif