-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSA_28.h
23 lines (18 loc) · 839 Bytes
/
SA_28.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef SA_28_H
#define SA_28_H
#include <CommonFunctions.h>
/*****************************************************************/
/* GLOBAL CONSTS */
/*****************************************************************/
#define SA_28_PIN 39
#define SA_28_NO_OF_SAMPLES 1000
#define SA_28_MEASURED_MIN_VOLTAGE 998
#define SA_28_MEASURED_MAX_VOLTAGE 3129
/*****************************************************************/
/* WORKER FUNCTIONS */
/*****************************************************************/
///////////////////////////////////////////////////////////////
/// Get the soil moisture percent based on the SA_28's
/// output voltage.
void determineRainStatus(uint8_t& rainPercent);
#endif // SA_28_H