diff options
-rw-r--r-- | app.cpp | 5 | ||||
-rw-r--r-- | app.h | 2 |
2 files changed, 4 insertions, 3 deletions
@@ -7,14 +7,14 @@ #undef PROGMEM #define PROGMEM __attribute__((section(".progmem.data"))) -#define SENSOR_COUNT 1 +#define SENSOR_COUNT 2 // See http://redbearlab.com/blendmicro/ for pins. struct sm_sensor { uint8_t a_pin; uint8_t d1_pin; uint8_t d2_pin; - uint8_t value; + uint16_t value; uint16_t warning_value; uint16_t update_interval; uint8_t name_length; @@ -22,6 +22,7 @@ struct sm_sensor { } sensors[SENSOR_COUNT] = { // A Pin, D1 Pin, D2 Pin, Value, Warning Value, Update Interval, Length of Name, Name { 8, 3, 5, 0, 10, 0, 9, 'sensor #1'}, + { 10, 11, 12, 0, 10, 0, 9, 'sensor #2'}, }; static unsigned long next_update[SENSOR_COUNT]; @@ -29,7 +29,7 @@ struct sm_get_value_req { }; struct sm_get_value_res { - uint8_t value; + uint16_t value; }; struct sm_set_warning_value_req { |