mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-18 19:12:09 +00:00
Remap visionmaster secondary button to TB_UP
This commit is contained in:
parent
b26b74bb24
commit
82e3a59fea
@ -792,13 +792,6 @@ void NodeDB::installDefaultModuleConfig()
|
|||||||
moduleConfig.external_notification.output_ms = 1000;
|
moduleConfig.external_notification.output_ms = 1000;
|
||||||
moduleConfig.external_notification.nag_timeout = 60;
|
moduleConfig.external_notification.nag_timeout = 60;
|
||||||
#endif
|
#endif
|
||||||
#ifdef BUTTON_SECONDARY_CANNEDMESSAGES
|
|
||||||
// Use a board's second built-in button as input source for canned messages
|
|
||||||
moduleConfig.canned_message.enabled = true;
|
|
||||||
moduleConfig.canned_message.inputbroker_pin_press = BUTTON_PIN_SECONDARY;
|
|
||||||
strcpy(moduleConfig.canned_message.allow_input_source, "scanAndSelect");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
moduleConfig.has_canned_message = true;
|
moduleConfig.has_canned_message = true;
|
||||||
moduleConfig.canned_message.enabled = true;
|
moduleConfig.canned_message.enabled = true;
|
||||||
#if USERPREFS_MQTT_ENABLED && !MESHTASTIC_EXCLUDE_MQTT
|
#if USERPREFS_MQTT_ENABLED && !MESHTASTIC_EXCLUDE_MQTT
|
||||||
|
@ -174,17 +174,18 @@ void setupModules()
|
|||||||
delete upDownInterruptImpl1;
|
delete upDownInterruptImpl1;
|
||||||
upDownInterruptImpl1 = nullptr;
|
upDownInterruptImpl1 = nullptr;
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
#if HAS_SCREEN
|
#if HAS_SCREEN
|
||||||
// In order to have the user button dismiss the canned message frame, this class lightly interacts with the Screen
|
// In order to have the user button dismiss the canned message frame, this class lightly interacts with
|
||||||
// class
|
the Screen
|
||||||
scanAndSelectInput = new ScanAndSelectInput();
|
// class
|
||||||
if (!scanAndSelectInput->init()) {
|
scanAndSelectInput = new ScanAndSelectInput();
|
||||||
delete scanAndSelectInput;
|
if (!scanAndSelectInput->init()) {
|
||||||
scanAndSelectInput = nullptr;
|
delete scanAndSelectInput;
|
||||||
}
|
scanAndSelectInput = nullptr;
|
||||||
#endif
|
}
|
||||||
|
#endif
|
||||||
|
*/
|
||||||
cardKbI2cImpl = new CardKbI2cImpl();
|
cardKbI2cImpl = new CardKbI2cImpl();
|
||||||
cardKbI2cImpl->init();
|
cardKbI2cImpl->init();
|
||||||
#ifdef INPUTBROKER_MATRIX_TYPE
|
#ifdef INPUTBROKER_MATRIX_TYPE
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#define LED_PIN 45 // LED is not populated on earliest board variant
|
#define LED_PIN 45 // LED is not populated on earliest board variant
|
||||||
#define BUTTON_PIN 0
|
#define BUTTON_PIN 0
|
||||||
#define BUTTON_PIN_SECONDARY 21 // Second built-in button
|
#define BUTTON_PIN_SECONDARY 21 // Second built-in button
|
||||||
#define BUTTON_SECONDARY_CANNEDMESSAGES // By default, use the secondary button as canned message input
|
#define TB_UP BUTTON_PIN_SECONDARY // Send the up event
|
||||||
|
|
||||||
// I2C
|
// I2C
|
||||||
#define I2C_SDA SDA
|
#define I2C_SDA SDA
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#define LED_PIN 45 // LED is not populated on earliest board variant
|
#define LED_PIN 45 // LED is not populated on earliest board variant
|
||||||
#define BUTTON_PIN 0
|
#define BUTTON_PIN 0
|
||||||
#define BUTTON_PIN_SECONDARY 21 // Second built-in button
|
#define BUTTON_PIN_SECONDARY 21 // Second built-in button
|
||||||
#define BUTTON_SECONDARY_CANNEDMESSAGES // By default, use the secondary button as canned message input
|
#define TB_UP BUTTON_PIN_SECONDARY // Send the up event
|
||||||
|
|
||||||
// I2C
|
// I2C
|
||||||
#define I2C_SDA SDA
|
#define I2C_SDA SDA
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef HAS_TFT
|
#ifndef HAS_TFT
|
||||||
#define BUTTON_PIN 0
|
#define BUTTON_PIN 0
|
||||||
#define BUTTON_PIN_SECONDARY 21 // Second built-in button
|
#define BUTTON_PIN_SECONDARY 21 // Second built-in button
|
||||||
#define BUTTON_SECONDARY_CANNEDMESSAGES // By default, use the secondary button as canned message input
|
#define TB_UP BUTTON_PIN_SECONDARY // Send the up event
|
||||||
|
|
||||||
// I2C
|
// I2C
|
||||||
#define I2C_SDA SDA
|
#define I2C_SDA SDA
|
||||||
|
Loading…
Reference in New Issue
Block a user