Compiling Error Nano using nRF24L01.h and ezButton

I apologize in advance for the long post - I am trying to include as much info as possible. I tried using the </> to put the code text in the correct format (with colored text) to no avail. Also thank you in advance for any help/thoughts/insights/questions/funny stories/etc.

I am trying to make a simple remote control using the nRF24L01 with the ezButton library. What I am trying to do is send a code to the receiver to turn on an LED when a button is pressed and then turn it off when the button is released. My thinking here is that this will keep the battery-operated transmitter from having to continuously send the code to turn the LED off, draining the battery.
I am using a macbook pro OS10.14.3, Arduino IDE 1.8.16
The transmitter is a Nano-knockoff with a current bootloader.
The receiver is a Nano-knockoff with an old bootloader.
The "Hello World" example without modifications works fine.
When I add the ezButton library and an associated button to the transmitter, the program fails to compile. (Error messages below, points that caught my eye are in bold). The button is SPST NO on pin 7, with a 1k pulldown resistor.
Questions:
Is this a correct approach to this program?
Is there another library that includes the "on press" and "on release" functions that do not interfere with the compiling?

The transmit and receiver codes directly from the examples:

//**************************************************

//RF24 TRANSMITTER FOR NANO
   /* Arduino Wireless Communication Tutorial
    *     Example 1 - Transmitter Code               
    * by Dejan Nedelkovski, www.HowToMechatronics.com
    * Library: TMRh20/RF24, https://github.com/tmrh20/RF24/
    */
    
    #include <SPI.h>
    #include <nRF24L01.h>
    #include <RF24.h>
    RF24 radio(9, 10); // CE, CSN
    const byte address[6] = "00001";
    
    void setup() {
      radio.begin();
      radio.openWritingPipe(address);
      radio.setPALevel(RF24_PA_MIN);
      radio.stopListening();
    }
    
    void loop() {
      const char text[] = "Hello World";
      radio.write(&text, sizeof(text));
      delay(2000);
    }


//  RF24 RECEIVER FOR NANO
    /* Arduino Wireless Communication Tutorial
    *       Example 1 - Receiver Code      
    * by Dejan Nedelkovski, www.HowToMechatronics.com
    * Library: TMRh20/RF24, https://github.com/tmrh20/RF24/
    */

    #include <SPI.h>
    #include <nRF24L01.h>
    #include <RF24.h>
    RF24 radio(9, 10); // CE, CSN
    const byte address[6] = "00001";

    void setup() 
    { Serial.begin(9600);
      radio.begin();
      radio.openReadingPipe(0, address);
      radio.setPALevel(RF24_PA_MIN);
      radio.startListening();
    }

    void loop() 
   { if (radio.available()) 
      { char text[32] = "";
        radio.read(&text, sizeof(text));
        Serial.println(text);
      }
    }

//**************************************************

This is the above transmitter code with the ezButton library and associated code:

//**************************************************
//RF24 TRANSMITTER FOR NANO
   /* Arduino Wireless Communication Tutorial
    *     Example 1 - Transmitter Code           
    * by Dejan Nedelkovski, www.HowToMechatronics.com
    * Library: TMRh20/RF24, https://github.com/tmrh20/RF24/
    */
    
    #include <ezButton.h>  //version 1.0.3
    ezButton button(7)   //the pin the button is attached to
    
    #include <SPI.h>
    #include <nRF24L01.h>
    #include <RF24.h>
    RF24 radio(9, 10); // CE, CSN
    const byte address[6] = "00001";

    void setup() 
    { radio.begin();
      radio.openWritingPipe(address);
      radio.setPALevel(RF24_PA_MIN);
      radio.stopListening();
    }

    void loop() 
    { button.loop();
    if (button.isPressed())
      {const char text[] = "Hello World";
      radio.write(&text, sizeof(text));
      }
      delay(2000);
    }
//**************************************************

And the compiling errors that come back:

Arduino: 1.8.16 (Mac OS X), Board: "Arduino Nano, ATmega328P"

/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/davidmisner/Library/Arduino15/packages -hardware /Arduino/hardware -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/davidmisner/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Arduino/libraries -fqbn=arduino:avr:nano:cpu=atmega328 -vid-pid=1A86_7523 -ide-version=10816 -build-path /var/folders/1m/yvxgl13j0h9896gkp_221vw40000gp/T/arduino_build_948385 -warnings=all -build-cache /var/folders/1m/yvxgl13j0h9896gkp_221vw40000gp/T/arduino_cache_153418 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/Users/davidmisner/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/Users/davidmisner/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avr-gcc.path=/Users/davidmisner/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=/Users/davidmisner/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.arduinoOTA.path=/Users/davidmisner/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/Users/davidmisner/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -verbose /Arduino/RF24_TransmitterWithezButton/RF24_TransmitterWithezButton.ino
/Applications/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/davidmisner/Library/Arduino15/packages -hardware /Arduino/hardware -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/davidmisner/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Arduino/libraries -fqbn=arduino:avr:nano:cpu=atmega328 -vid-pid=1A86_7523 -ide-version=10816 -build-path /var/folders/1m/yvxgl13j0h9896gkp_221vw40000gp/T/arduino_build_948385 -warnings=all -build-cache /var/folders/1m/yvxgl13j0h9896gkp_221vw40000gp/T/arduino_cache_153418 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=/Users/davidmisner/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=/Users/davidmisner/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17 -prefs=runtime.tools.avr-gcc.path=/Users/davidmisner/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=/Users/davidmisner/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.arduinoOTA.path=/Users/davidmisner/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=/Users/davidmisner/Library/Arduino15/packages/arduino/tools/arduinoOTA/1.3.0 -verbose /Arduino/RF24_TransmitterWithezButton/RF24_TransmitterWithezButton.ino
Using board 'nano' from platform in folder: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr
Using core 'arduino' from platform in folder: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr
**Warning: Board breadboard:avr:atmega328bb doesn't define a 'build.board' preference. Auto-set to: AVR_ATMEGA328BB**
Detecting libraries used...
/Users/davidmisner/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs /var/folders/1m/yvxgl13j0h9896gkp_221vw40000gp/T/arduino_build_948385/sketch/RF24_TransmitterWithezButton.ino.cpp -o /dev/null
**Alternatives for ezButton.h: [ezButton@1.0.3]**
**ResolveLibrary(ezButton.h)**
**  -> candidates: [ezButton@1.0.3]**
/Users/davidmisner/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs -I/Arduino/libraries/ezButton/src /var/folders/1m/yvxgl13j0h9896gkp_221vw40000gp/T/arduino_build_948385/sketch/RF24_TransmitterWithezButton.ino.cpp -o /dev/null
Alternatives for SPI.h: [SPI@1.0]
ResolveLibrary(SPI.h)
  -> candidates: [SPI@1.0]
/Users/davidmisner/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs -I/Arduino/libraries/ezButton/src -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SPI/src /var/folders/1m/yvxgl13j0h9896gkp_221vw40000gp/T/arduino_build_948385/sketch/RF24_TransmitterWithezButton.ino.cpp -o /dev/null
Alternatives for nRF24L01.h: [RF24@1.3.4]
ResolveLibrary(nRF24L01.h)
  -> candidates: [RF24@1.3.4]
/Users/davidmisner/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs -I/Arduino/libraries/ezButton/src -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SPI/src -I/Arduino/libraries/RF24 /var/folders/1m/yvxgl13j0h9896gkp_221vw40000gp/T/arduino_build_948385/sketch/RF24_TransmitterWithezButton.ino.cpp -o /dev/null
/Users/davidmisner/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs -I/Arduino/libraries/ezButton/src -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SPI/src -I/Arduino/libraries/RF24 /Arduino/libraries/ezButton/src/Button.cpp -o /dev/null
/Users/davidmisner/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs -I/Arduino/libraries/ezButton/src -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SPI/src -I/Arduino/libraries/RF24 /Arduino/libraries/ezButton/src/ezButton.cpp -o /dev/null
/Users/davidmisner/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs -I/Arduino/libraries/ezButton/src -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SPI/src -I/Arduino/libraries/RF24 /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SPI/src/SPI.cpp -o /dev/null
/Users/davidmisner/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs -I/Arduino/libraries/ezButton/src -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SPI/src -I/Arduino/libraries/RF24 -I/Arduino/libraries/RF24/utility /Arduino/libraries/RF24/RF24.cpp -o /dev/null
Generating function prototypes...
/Users/davidmisner/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs -I/Arduino/libraries/ezButton/src -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SPI/src -I/Arduino/libraries/RF24 /var/folders/1m/yvxgl13j0h9896gkp_221vw40000gp/T/arduino_build_948385/sketch/RF24_TransmitterWithezButton.ino.cpp -o /var/folders/1m/yvxgl13j0h9896gkp_221vw40000gp/T/arduino_build_948385/preproc/ctags_target_for_gcc_minus_e.cpp
/Applications/Arduino.app/Contents/Java/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /var/folders/1m/yvxgl13j0h9896gkp_221vw40000gp/T/arduino_build_948385/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch...
/Users/davidmisner/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/avr-g++ -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/eightanaloginputs -I/Arduino/libraries/ezButton/src -I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SPI/src -I/Arduino/libraries/RF24 /var/folders/1m/yvxgl13j0h9896gkp_221vw40000gp/T/arduino_build_948385/sketch/RF24_TransmitterWithezButton.ino.cpp -o /var/folders/1m/yvxgl13j0h9896gkp_221vw40000gp/T/arduino_build_948385/sketch/RF24_TransmitterWithezButton.ino.cpp.o
In file included from /Arduino/RF24_TransmitterWithezButton/RF24_TransmitterWithezButton.ino:11:0:
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SPI/src/SPI.h:72:1: error: expected ',' or ';' before 'class'
 class SPISettings {
 ^~~~~
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SPI/src/SPI.h:178:39: error: **'SPISettings' has not been declared**
   inline static void beginTransaction(SPISettings settings) {
                                       ^~~~~~~~~~~
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SPI/src/SPI.h: In static member function 'static void SPIClass::beginTransaction(int)':
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SPI/src/SPI.h:203:21: error: request for member 'spcr' in 'settings', which is of non-class type 'int'
     SPCR = settings.spcr;
                     ^~~~
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SPI/src/SPI.h:204:21: error: request for member 'spsr' in 'settings', which is of non-class type 'int'
     SPSR = settings.spsr;
                     ^~~~
Using library ezButton at version 1.0.3 in folder: /Arduino/libraries/ezButton 
Using library SPI at version 1.0 in folder: /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries/SPI 
Using library RF24 at version 1.3.4 in folder: /Arduino/libraries/RF24 
exit status 1
Error compiling for board Arduino Nano.

You're missing a semicolon on this line:

ezButton button(7)   //the pin the button is attached to

There might be more wrong, but I would start with that.

Thankyou, sterrtje. Thatʻs a little embarrasing. :roll_eyes: Iʻll start expanding the code from here.

Hello again - with no luck on the ezButton route, Iʻve gone to something simpler, but am getting a response I donʻt understand.
The pared down transmitter code:

#include <SPI.h>
#include "RF24.h"
RF24 radio(9, 10); // Establish a new RF24 object
const uint64_t send_pipe = 0xB01DFACECEL; //This will be this device
const uint64_t recv_pipe = 0xDEADBEEFF1L; //This will be the other device

#define volup 2  //button attached to pin 2 with pull-down resistor

void setup()
{
  Serial.begin(9600); // Set up communcations with the serial monitor in the arduino IDE

  pinMode(volup, INPUT);  //button 

  radio.begin();// Basically turn on communications with the device
  radio.setPALevel(RF24_PA_LOW);//RF24_PA_MAX is max power
  radio.setRetries(15, 15); //This will improve reliability
  radio.openWritingPipe(recv_pipe);//Set up the two way communications with the named device
  radio.openReadingPipe(1, send_pipe);

  radio.startListening();// Start listening for data which gives the device a kick
}
//These are the four codes that we will work with, the final three being those that are transmitted
#define CODE_NONE 0
#define CODE_VOLUP 1

unsigned long message_code = CODE_NONE; //This is where the code to be sent will reside
void loop()
{
  //Check the status of the button
  int volupState = digitalRead(volup);

  if (volupState == 1)
  { Serial.println("Volume Up");
    message_code = CODE_VOLUP;
  }

  radio.stopListening();
  radio.write(&message_code, sizeof(unsigned long));

  radio.startListening();

  delay(50);
}

The pared down receiver code:

#include <SPI.h>
#include "RF24.h" // This is the RF24 library that may need to be installed through the Manage Libraries feature in the IDE.

RF24 radio(9, 10);//Create a commuications object for talking to the NRF24L01
const uint64_t send_pipe = 0xB01DFACECEL; //This will be the other device
const uint64_t recv_pipe = 0xDEADBEEFF1L; //This will be this device

//As in the transmit code these are the possible motor codes.
#define CODE_NONE 0
#define CODE_VOLUP 1

const int volup = 2;

void setup()
{
  pinMode(volup, OUTPUT);

  Serial.begin(9600);//Set up comm with the IDE serial monitor
  Serial.println("Ready for commands");
  radio.begin();//Start up the radio object
  radio.setRetries(5, 25); //This will improve reliability of the module if it encounters interference
  radio.setPALevel(RF24_PA_LOW);//This sets the power low. This will reduce the range. RF24_PA_MAX would increase the range
  radio.openReadingPipe(1, recv_pipe);
  radio.startListening();//Give the module a kick
}

void loop()
{
  unsigned long message_code = CODE_NONE;

  if (radio.available()) //Keep checking on each loop to see if any data has come in
  {
    if (radio.available()) //Loop while there is incoming data. The packets are one unsigned long in total so it shoudl only loop once
    { radio.read(&message_code, sizeof(unsigned long));//Stuff the incoming packet into the motor_code variable
    }

    if (message_code == CODE_VOLUP)
    {
      Serial.println("Volume UP");
      digitalWrite(volup, HIGH);
    }

    if (message_code == CODE_NONE)
    {}

    delay(50);
    digitalWrite(volup, LOW);
  }
}

THE PROBLEM:
With the serial monitor on the TX, if I press the button, the monitor will display "Volume Up" for as long as I hold the button down. Pretty simple.
When monitoring the RX, there is nothing displayed, other than "Ready for commands", until I press the button on the TX. The RX receives the code and turns on the LED on the press as expected, but when I release the button, the RX continues to light the LED, display "Volume Up" on the monitor, and waits the 50ms as if it were stuck in a loop. (The button has been checked, it is not stuck.)
What I am expecting is that since the TX is no longer transmitting the "volume up" code, the RX should not be receiving the code and should be turning the LED off, and continuing to loop until it receives a button pressed code. What appears to be happening is that the message code "CODE_NONE" is not cleared.
What am I missing? Thanks again for your help.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.