int wait = 2000; // ms
int repeat = 5; // times
+char code[27]; // 26 bits + null
+
void setup() {
pinMode(LED_PIN, OUTPUT);
pinMode(TX_PIN, OUTPUT);
Serial.println("w/s - 1 inteval +/- 100 ms");
Serial.println("e/d - wait +/- 100 ms");
Serial.println("r/f - repeat +/- 1");
+ Serial.println("U1000100110110000000000010 - send 26 bit user code");
}
Serial.print("repeat = ");
Serial.println(repeat);
+ } else if (in == 'U') {
+ Serial.readBytesUntil('\n', code, sizeof(code));
+ Serial.print('U');
+ Serial.println( code );
+ send( code );
+
} else {
Serial.print("ignored ");
Serial.println(in);