-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathSensorDo.h
47 lines (38 loc) · 1.03 KB
/
SensorDo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*********************************************************************************************
* SensorDo.h
*
* Copyright (C) 2017 [DFRobot](http://www.dfrobot.com),
* GitHub Link :https://github.com/DFRobot/watermonitor
* This Library is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Description:
*
* Sensor driver pin:Serial,Rx(0),Tx(1)
*
* author : Jason(jason.ling@dfrobot.com)
* version : V1.0
* date : 2017-04-19
*********************************************************************************************/
#pragma once
#include "ISensor.h"
#include "Arduino.h"
class SensorDo: public ISensor
{
public:
SensorDo();
~SensorDo();
public:
// initialization
void setup ();
// update the sensor data
void update ();
// Get the sensor data
double getValue();
private:
String sensorstring = "";
// do the data
double doValue;
};