iot_water_monitor_v2

Dependencies:   easy-connect-v16 Watchdog FP MQTTPacket RecordType-v-16 watersenor_and_temp_code

Sensor/ReadSensor.h

Committer:
DuyLionTran
Date:
2018-03-08
Revision:
45:92da959d624b
Parent:
43:dcde0e66874a
Child:
48:a7ed665844cd

File content as of revision 45:92da959d624b:

#ifndef __READSENSOR_H__
#define __READSENSOR_H__

#define SENSOR_1_PIN  (A5)
#define SENSOR_2_PIN  (A4)
#define SENSOR_3_PIN  (A3)

#define VREF           5000
#define SCOUNT         30   /* sum of sample point */

//#define PROBE_EXIST

void SENSOR_DoCalibration(uint8_t CurrentCalibrationMode);
void SENSOR_AnalogRead();
void SENSOR_GetDOValue();
void SENSOR_ReadDoCharacteristicValues();
          
#endif /* __READSENSOR_H__ */