 	pinMode(RED, INPUT);
 	pinMode(ID0, INPUT);
 	pinMode(ID1, INPUT);
+	pinMode(SSerialTxControl, OUTPUT);    
+	digitalWrite(SSerialTxControl, RS485Receive);
+	RS485.begin(9600);   // set the data rate 
+
+
 	id += digitalRead(ID0);
 	id += digitalRead(ID1);
 	Serial.println("[Button Box]");

#define WHITE 5
#define RED 6
#define ID0 12
#define ID1 13
#define BUTTON_WHITE 0
#define BUTTON_RED 1

uint8_t white = 0, red = 0, white_state = 0, red_state = 0;
uint8_t id = 0;



	Serial.print("#"); Serial.print(id); Serial.print(":");
	Serial.print(button);
	Serial.println(";");
	digitalWrite(SSerialTxControl, RS485Transmit);
	RS485.print("#"); RS485.print(id); RS485.print(":");
	RS485.print(button);
	RS485.println(";");
	digitalWrite(SSerialTxControl, RS485Receive);
	delay(50);
}
