1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-25 01:05:10 +03:00

Switches configuration + Switches/Pots/Sliders/Sticks custom names

This commit is contained in:
bsongis 2014-10-29 07:08:02 +01:00
parent 59d72f93ce
commit 06437b2954
14 changed files with 660 additions and 144 deletions

View file

@ -316,8 +316,7 @@ extern void boardInit();
#endif
#if defined(PCBTARANIS)
#define NUM_SWITCHES 8
#define IS_3POS(sw) ((sw) != 5 && (sw) != 7)
#define NUM_SWITCHES 14 // 8 physical switches + 6 possible from 3POS
#define NUM_SW_SRCRAW 8
#define SWSRC_THR SWSRC_SF2
#define SWSRC_GEA SWSRC_SG2
@ -746,7 +745,7 @@ extern volatile GETSWITCH_RECURSIVE_TYPE s_last_switch_value;
#define getSwitchesPosition(...)
#endif
extern swstate_t switches_states;
extern swarnstate_t switches_states;
int8_t getMovedSwitch();
#if defined(PCBTARANIS)