 DeviceI2C maxm1 (MaxMbus, maxm1Dev);
 DeviceI2C maxm2 (MaxMbus, maxm2Dev);
 
-#ifdef DEBUG_FLASH
-// LEDs are on ports 3 and 4
-// LED1 flashes once for the MAXM1 task, twice for the MAXM2 task
-Port led1 (3);
-// LED2 flashes once per 10 seconds in a minute (1..6)
-Port led2 (4);
-
-byte led1_on = 0;
-byte led2_on = 0; 
-#endif
+// LEDs are on port 4
+Port ledPort (4);
 
 int is_operational = 0;
 

            maxm2.write(0);
            maxm2.stop();

#ifdef DEBUG_FLASH
            doFlash(led1, 2);
#endif
            break;

        // Check if within operational time

 * operational time.
 *
 * The MaxMs that actually control the light pattern for one group
 * of LED clusters (Blasters) are preloaded with their light scripts.
 * The MaxMs are connected over an I2C and have device ids preset
 * also. Note that the RTC has device id 0x68 whcih cannot be changed.
 *
 * There is an RTC plug on Jeenode port 1, the MaxMs are on the I2C 
 * bus on port 2, and optionally there are 2 status LEDs on port 4
 * being independently controlled with the DIO and AIO pins. LED1
 * flashes once for the MAXM1 task, twice for the MAXM2 task to show
 * the correct task ran; LED2 flashes once per minute to show the
 * sketch is working.
 */

// Uncomment for LEDs flashing for debug
#define DEBUG_FLASH 1
// Uncomment for debug traces on the serial line
#define DEBUG_TRACE 1 

#include <JeeLib.h>
#include <Wire.h> // needed to avoid a linker error :(
