 
 boolean programmingMode;
 
-/* 
-    Button related stuff
-*/
-
 #define LOCONET_TX_PIN 5
 
-bool pins_busy = false;
-/*
-	Switch related stuff
-*/
-#define MAX 24
-ConfiguredPin* confpins[MAX];
 
 void reportSwitch(uint16_t Address, uint16_t state){
 #ifdef DS54

#define DEBUGLN(x)
#endif

#include <LocoNet.h>

#include "decoder_conf.h"
#include "configuredpins.h"
#include "cvaccess.h"

#define servoEnablePin 15

#define ARTNR 10001

decoder_conf_t EEMEM _CV = {
#include "default_conf.h"
};


void enableServos();
void disableServos();

/* 
    Serial related stuff
*/
int incomingByte = 0;

lnMsg *LnPacket;


		AddrH |= OPC_SW_REP_HI | OPC_SW_REP_SW ;
	
	LocoNet.send(OPC_SW_REP, AddrL, AddrH );
#else
	if ( state == 0 ) {
		LocoNet.reportSensor(Address, 0);
