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