 	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);


void loop() {
	int frame,i;
	digitalWrite(LED, HIGH);
	digitalWrite(BTX, LOW);
	i=8;
	while (i) {
		while((frame = getFrame(BRX)) == CARRIER) {

	}
	digitalWrite(LED, LOW);
	Serial.print("byte read: ");
	Serial.println(bytebitsGet());
}
