 // Configuration
 
 // Uncomment these liness if you use an Ethernet Shield
-#define USE_ETHERNET_SHIELD
-#define ETHERNET_MAC { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
+//#define USE_ETHERNET_SHIELD
+//#define ETHERNET_MAC { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
 
 // Uncomment these lines if you use a WiFi Shield
 //#define USE_WIFI_SHIELD
-#define WIFI_SSID "ssid"
-#define WIFI_KEY "wpakey"
+//#define WIFI_SSID "ssid"
+//#define WIFI_KEY "wpakey"
 
 // Uncomment these lines if you use NeoPixel for status visualization
 //#define USE_NEOPIXEL
-#define NEOPIXEL_PIN 6
+//#define NEOPIXEL_PIN 6
 
 // Uncomment these lines if you wish to use the the free strombewusstsein Web Service!
-#define USE_STROMBEWUSST_SERVER
-#define STROMBEWUSST_SERVER "se.esse.es"
-#define STROMBEWUSST_PORT 8888
-#define STROMBEWUSST_KEY "foobar"
+//#define USE_STROMBEWUSST_SERVER
+//#define STROMBEWUSST_SERVER "se.esse.es"
+//#define STROMBEWUSST_PORT 8888
+//#define STROMBEWUSST_KEY "foobar"
 
 // TriggerPin - the PIN that gets HIGH when 1.25W/h were used on the line
 #define TRIGGER_PIN 8


// *************************************

// Due to weird ifdef handling of the Arudino IDE, all libraries must be included on spot :(
//#include <Adafruit_NeoPixel.h>
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetUdp.h>
#include <WiFi.h>
#include <WiFiUdp.h>

// Our prototypes!
void setup();
void loop();
void wifiConnect();
void ethernetConnect();
void triggerCheck();
void gotTriggered();
void strombewusstInit();
void strombewusstPush();
int storageSum(int frames);
void pointerLoop();
void pointerChanged();

#ifdef USE_ETHERNET_SHIELD
  EthernetServer server = EthernetServer(SERVER_PORT);
  EthernetUDP udp;
  byte ethernetMac[] = ETHERNET_MAC;
#endif

#ifdef USE_WIFI_SHIELD
  WiFiServer server = WiFiServer(SERVER_PORT);
  WiFiUDP udp;
  int connectionStatus = WL_IDLE_STATUS;

  
  pinMode(TRIGGER_PIN, INPUT);
  
  #ifdef USE_NETWORK
    networkConnect();
  #endif
}

void networkConnect()
{
   #ifdef USE_WIFI_SHIELD
    wifiConnect();
  #endif
  #ifdef USE_ETHERNET_SHIELD
    ethernetConnect();
  #endif

  #ifdef USE_STROMBEWUSST_SERVER
    udpBuffer[32] = TIMEFRAME;
    udp.begin(STROMBEWUSST_PORT);
  #endif 
}

void loop()
