maraesa1000:
Ok, the full code is below
Thanks. The debounce code is pretty basic. The button must be pressed, then released in less than one second. If you wait for the "localINDICATOR" to come on, and then release the button, then a bounce could be picked up, sending another 'D'.
On the sending side, change:
if (digitalRead(BUTTON) == LOW) {
Serial.print('D');
delay(1000); // prevents overwhelming the serial port i increased the delay
digitalWrite(localINDICATOR, HIGH);
To the following, and release the button as soon as the "localIndicator" comes on.
if (digitalRead(BUTTON) == LOW) {
digitalWrite(localINDICATOR, HIGH);
Serial.print('D');
delay(2000); // prevents overwhelming the serial port i increased the delay