Protonerd / FX-SaberOS

System code for Arduino based Lightsaber replicas for DIYino family boards
Creative Commons Zero v1.0 Universal
91 stars 42 forks source link

button #101

Closed DRagonenko closed 3 years ago

DRagonenko commented 3 years ago

What needs to be changed in the code to swap the sticking blasters ?

Protonerd commented 3 years ago

not sure what you mean. Can you try to explain more in detail?

DRagonenko commented 3 years ago

1 pressing clinch 2 pushing blaster Swap places

lemmingDev commented 3 years ago

At about line 40 in Config_HW.h you will see


#ifdef DIYINO_PRIME 
  #define MAIN_BUTTON     12
  #ifndef SINGLEBUTTON
    #define AUX_BUTTON   4
  #endif
#else if defined DIYINO_STARDUST_V2 or defined DIYINO_STARDUST_V3
  #define MAIN_BUTTON      12
  #ifndef SINGLEBUTTON
    #define AUX_BUTTON   11 // 2
  #endif
#endif

Just change the pin numbers around to what you want...