   0, 0,                                 // Net (0-127) and subnet (0-15)
   "VardeLED",                           // Short name
   "VardeLED",                           // Long name
-  1,                                    // Number of ports
+  4,                                    // Number of ports
   {PortTypeDmx|PortTypeOutput, PortTypeDmx|PortTypeOutput, PortTypeDmx|PortTypeOutput, PortTypeDmx|PortTypeOutput}, // Port types
-  {2, 3, 4, 5},                         // Port input universes (0-15)
-  {5, 6, 7, 8}                          // Port output universes (0-15)
+  {0, 0, 0, 0},                         // Port input universes (0-15)
+  {0, 1, 2, 3},                          // Port output universes (0-15)
+  VERSION_HI,                                    
+  VERSION_LO                                    
 };
 
 ArtNode node;
 ////////////////////////////////////////////////////////////
 
 void setup() {
+  loadConfig();
+  
+  config.numPorts = 4;
+  for(int i=0;i<config.numPorts;i++){
+    config.portTypes[i]= PortTypeDmx|PortTypeOutput;
+  }
   
 #ifdef PIN_RESET
   pinMode(PIN_RESET, OUTPUT);

  node = ArtNode(config, sizeof(buffer), buffer);

  FastLED.addLeds<WS2812, 5, RGB>(leds1, NUM_RGB);
  FastLED.addLeds<WS2812, 21, RGB>(leds2, NUM_RGB);
}

////////////////////////////////////////////////////////////

#include <SPI.h>
#include <Ethernet.h>
#include <ArtNode.h>

#include "TeensyMAC.h"
#include <EEPROM.h>

#define VERSION_HI 0
#define VERSION_LO 2

#define NUM_RGBW  128*2
#define NUM_RGB   (NUM_RGBW/4*3)
#define PIN_RESET 9

// ID of the settings block
#define CONFIG_VERSION "ls1"

// Tell it where to store your config data in EEPROM
#define CONFIG_MEM_START 16
#define CONFIG_START 17
#define CONFIG_END 2

EthernetUDP udp;
byte buffer[600];

CRGB leds1[NUM_RGB];
CRGB leds2[NUM_RGB];
CRGB leds3[NUM_RGB];
CRGB leds4[NUM_RGB];

bool locateMode = false;

int oemCode = 0x0000; // OemUnkown

