   return sum;
 }
 
+#ifdef USE_NEOPIXEL
+void neopixelInit()
+{
+  neopixel.begin();   
+}
+#endif
+
+void neopixelSet(byte red, byte green, byte blue)
+{
+  #ifdef USE_NEOPIXEL
+    neopixel.setPixelColor(0, red, green, blue);
+    neopixel.show(); 
+  #endif
+}
+
+#ifdef USE_NEOPIXEL
+void neopixelLoop()
+{
+  
+}
+#endif
+

#define SERVER_PORT 80
// *************************************

// Enable as needed, depending on either USE_ETHERNET_SHIELD, USE_WIFI_SHIELD and USE_NEOPIXEL
//#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 networkConnect();
void wifiConnect();
void ethernetConnect();

void serverCheck();
void networkCheck();

String serverHeader(String);
bool networkRequestIP(IPAddress, String);

void triggerCheck();
void gotTriggered();

void push();
void xs1Push();
void strombewusstPush();

int storageSum(int);
String generateJSON();

void pointerLoop();
void pointerChanged();
// -- end of prototypes

// Set up the corresponding network device
#ifdef USE_ETHERNET_SHIELD

    serverCheck();
    networkCheck();
  #endif
  #ifdef USE_NEOPIXEL
    neopixelLoop();
  #endif
}

#ifdef USE_NETWORK
void networkCheck()
{
  // dump all pending data from network connections to the serial interface
