feat: Add initial Jumper T20 support (#3726)
* Jumper T20 * Fix center beeps * Add option to pinch top trim as well to bootloader * chore: Regenerate yaml * chore: Add entry for Buddy * Jumper T20 * Foldable section for fonction swith and fix preflight pot checks * Remove duplicated entry * Rename "function switches" to "customizable switches" * chore: Add translations * chore: Update translations * chore: Update Companion translations/wording
This commit is contained in:
@@ -50,9 +50,11 @@ enum EnumKeys {
|
||||
|
||||
MAX_KEYS
|
||||
};
|
||||
|
||||
#if defined(RADIO_T20)
|
||||
#define MAX_TRIMS 8
|
||||
#else
|
||||
#define MAX_TRIMS 6
|
||||
|
||||
#endif
|
||||
// returns a bit field with each key set as (1 << KEY_xxx)
|
||||
uint32_t readKeys();
|
||||
|
||||
|
||||
@@ -27,7 +27,11 @@
|
||||
#define ROTENC_MIDSPEED 5
|
||||
#define ROTENC_HIGHSPEED 50
|
||||
|
||||
#if defined(RADIO_T20)
|
||||
#define ROTARY_ENCODER_GRANULARITY 4
|
||||
#else
|
||||
#define ROTARY_ENCODER_GRANULARITY 2
|
||||
#endif
|
||||
|
||||
typedef int32_t rotenc_t;
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ uint8_t getSwitchCount();
|
||||
// returns the highest row for a specified column
|
||||
uint8_t switchGetMaxRow(uint8_t col);
|
||||
|
||||
// returns the maximum number of function switches supported in hardware
|
||||
// returns the maximum number of customizable switches supported in hardware
|
||||
uint8_t switchGetMaxFctSwitches();
|
||||
|
||||
struct switch_display_pos_t {
|
||||
@@ -63,10 +63,10 @@ struct switch_display_pos_t {
|
||||
|
||||
switch_display_pos_t switchGetDisplayPosition(uint8_t idx);
|
||||
|
||||
// The functions bellow support regular as well as function switches.
|
||||
// The functions bellow support regular as well as customizable switches.
|
||||
//
|
||||
// Regular switches are indexed from `0` to `switchGetMaxSwitches() - 1`
|
||||
// Function switches are indexed above the previous range.
|
||||
// Customizable switches are indexed above the previous range.
|
||||
//
|
||||
// The total number of switches (and max index + 1) is:
|
||||
// switchGetMaxSwitches() + switchGetMaxFctSwitches()
|
||||
|
||||
Reference in New Issue
Block a user