diff options
Diffstat (limited to 'app.cpp')
-rw-r--r-- | app.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 }; |