From c78be523bbcdc802929ce8f6fb119836dcbf99d5 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sat, 28 Feb 2015 10:54:19 +0100 Subject: o Creating a way to configure the code for multiple boards. Look at config.h --- trygvisio_soil_moisture.ino | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'trygvisio_soil_moisture.ino') diff --git a/trygvisio_soil_moisture.ino b/trygvisio_soil_moisture.ino index 560aef7..d357d77 100644 --- a/trygvisio_soil_moisture.ino +++ b/trygvisio_soil_moisture.ino @@ -3,6 +3,8 @@ #include #include +// See config.h on how to configure the sketch +#include "config.h" #include "services.h" #include "app.h" @@ -45,6 +47,7 @@ void setup() { Serial.begin((unsigned int)115200); +#if WAIT_FOR_SERIAL_BEFORE_STARING == 1 // Wait until the serial port is available (useful only for the Leonardo) // As the Leonardo board is not reseted every time you open the Serial Monitor #if defined (__AVR_ATmega32U4__) @@ -56,6 +59,8 @@ void setup() { delay(1000); #endif +#endif // WAIT_FOR_SERIAL_BEFORE_STARING + setup_rf(); } -- cgit v1.2.3