 	Serial.begin(9600);
 }
 
-int bytevalue() {
+int bytebitsGet() {
 	int value=0;
 	int power=1;
 	int i=0;

	}
	digitalWrite(LED, LOW);
	Serial.print("byte read: ");
	Serial.println(bytevalue());
	for(i=0; i<32; i++) {
		sendCarrier(BTX, sleepms);
	}
	i=8;
	while (i) {
		if (bytebits[--i])
			send1(BTX, sleepms);
		else
			send0(BTX, sleepms);
	}
	sendCarrier(BTX, sleepms);
	sendCarrier(BTX, sleepms);
}

	return readFrame(cyclecount0, cyclecount1);
}

void sendBytebits()
{
	int i=8;
	while (i) {
		if (bytebits[--i])
			send1(BTX, sleepms);
		else
			send0(BTX, sleepms);
	}
}

void sendCarrier(int pin, int sleepms)
{
	digitalWrite(pin, HIGH);
