1

Topic: pin assignments

Ok, so I have me 1st project working, still have a few basic questions..
I am using a Adafruit Feather Huzzah board

https://learn.adafruit.com/adafruit-fea … 66/pinouts

which is a breakout board with a ESP8266

when i select a Esp 8266 in the editor, it lets me map buttons to pins D0-D9
In the Arduino ide, i actually reference the pins by number only, 0, 12,13 etc.

I have just gone into the IDE and corrected the mappings, but is there a way to define this in the editor to skip this step?

also, I assume I must use the editor, and download a whole new program to make any change to the UI, like simply moving a button, or is there a way to edit the #PRAGMA map otherwise?

2

Re: pin assignments

Assigning contacts to buttons is a really handy feature of RemoteXY. Primarily for beginners. However, the best solution would be if you write contact management directly in the source code in the IDE. Look for an example https://remotexy.com/en/help/controls/button/
If you change the interface, then just copy a part of code from the editor starting from #pragma pack(push, 1) ending with #pragma pack(pop)

#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =   // 19 bytes
  { 255,1,0,0,0,12,0,16,31,0,1,0,41,23,12,12,2,31,0 };
  
// this structure defines all the variables and events of your control interface 
struct {

    // input variables
  uint8_t button_1; // =1 if button pressed, else =0 

    // other variable
  uint8_t connect_flag;  // =1 if wire connected, else =0 

} RemoteXY;
#pragma pack(pop)