aboutsummaryrefslogtreecommitdiff
path: root/app.cpp
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-07-31 21:00:26 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2015-07-31 21:00:32 +0200
commit455775a4a028c886d4d32dc816d57dff5bfae8aa (patch)
treed6e2e1996d90e4df05087d1706b42c75934ba1a2 /app.cpp
parent930b9e23ab981251e0cbd839c5a2f3a769c3fb47 (diff)
downloadtrygvisio_soil_moisture-455775a4a028c886d4d32dc816d57dff5bfae8aa.tar.gz
trygvisio_soil_moisture-455775a4a028c886d4d32dc816d57dff5bfae8aa.tar.bz2
trygvisio_soil_moisture-455775a4a028c886d4d32dc816d57dff5bfae8aa.tar.xz
trygvisio_soil_moisture-455775a4a028c886d4d32dc816d57dff5bfae8aa.zip
o Adding Board #4.
Diffstat (limited to 'app.cpp')
-rw-r--r--app.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/app.cpp b/app.cpp
index 30160dc..8780f0f 100644
--- a/app.cpp
+++ b/app.cpp
@@ -12,6 +12,8 @@
#define SENSOR_COUNT 4
#elif SM_BOARD_VERSION == 3
#define SENSOR_COUNT 1
+#elif SM_BOARD_VERSION == 4
+#define SENSOR_COUNT 0
#else
#error "SM_BOARD_VERSION must be set to a valid value. See config-check.h"
#endif
@@ -20,7 +22,6 @@
#define EEPROM_MAGIC 0xa5
-// See http://redbearlab.com/blendmicro/ for pins.
struct sm_sensor {
uint8_t a_pin;
uint8_t d1_pin;
@@ -34,6 +35,7 @@ struct sm_sensor {
// A Pin, D1 Pin, D2 Pin, Value, Warning Value, Update Interval, Length of Name, Name
#if SM_BOARD_VERSION == 1
+// See http://redbearlab.com/blendmicro/ for pins.
{ 8, 3, 5, 0, 200, 3000, 9, "Sensor #1"},
{ 10, 11, 12, 0, 200, 5000, 9, "Sensor #2"},
#elif SM_BOARD_VERSION == 2
@@ -43,6 +45,8 @@ struct sm_sensor {
{ A3, 11, 12, 0, 200, 3000, 3, "bar"},
#elif SM_BOARD_VERSION == 3
{ A0, 1, 2, 0, 200, 3000, 3, "0"},
+#elif SM_BOARD_VERSION == 4
+// TODO: add some sensors
#endif
};