1

Topic: Making life easier ....

If you add the line "#define GUI RemoteXY" in your declarations, you can then address any "RemoteXY.data" elements as "GUI.data"

It takes a lot less time to type, and negates the need to use copy/paste all the time.

Do not use this for the "RemoteXY_Init" and "RemoteXY_Handler" calls, leave them as they are ....

Here's a snippet from one of my projects to show the idea ....

      // indications
      GUI.led_ready = 1; 
      GUI.led_timing = 0;
      GUI.led_gassing = 0;
      GUI.led_firing = 0;
      GUI.sound_1 = 0;

Of course, "GUI" could be anything you like, so long as it is not a reserved word ....

I suppose RXY might be more transparent than GUI ....

2B, or not 2B, that is the pencil ...