mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-08 06:02:05 +00:00
enable vibration motor
This commit is contained in:
parent
d93d5205f2
commit
0ccce5e991
@ -664,7 +664,6 @@ void NodeDB::installDefaultConfig(bool preserveKey = false)
|
|||||||
config.display.screen_on_secs = 30;
|
config.display.screen_on_secs = 30;
|
||||||
config.display.wake_on_tap_or_motion = true;
|
config.display.wake_on_tap_or_motion = true;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(ARCH_ESP32) && !MESHTASTIC_EXCLUDE_WIFI
|
#if defined(ARCH_ESP32) && !MESHTASTIC_EXCLUDE_WIFI
|
||||||
if (WiFiOTA::isUpdated()) {
|
if (WiFiOTA::isUpdated()) {
|
||||||
WiFiOTA::recoverConfig(&config.network);
|
WiFiOTA::recoverConfig(&config.network);
|
||||||
@ -720,6 +719,13 @@ void NodeDB::installDefaultModuleConfig()
|
|||||||
moduleConfig.external_notification.alert_message_buzzer = true;
|
moduleConfig.external_notification.alert_message_buzzer = true;
|
||||||
moduleConfig.external_notification.nag_timeout = 60;
|
moduleConfig.external_notification.nag_timeout = 60;
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(PIN_VIBRATION)
|
||||||
|
moduleConfig.external_notification.enabled = true;
|
||||||
|
moduleConfig.external_notification.output_vibra = PIN_VIBRATION;
|
||||||
|
moduleConfig.external_notification.alert_message_vibra = true;
|
||||||
|
moduleConfig.external_notification.output_ms = 500;
|
||||||
|
moduleConfig.external_notification.nag_timeout = 2;
|
||||||
|
#endif
|
||||||
#if defined(RAK4630) || defined(RAK11310)
|
#if defined(RAK4630) || defined(RAK11310)
|
||||||
// Default to RAK led pin 2 (blue)
|
// Default to RAK led pin 2 (blue)
|
||||||
moduleConfig.external_notification.enabled = true;
|
moduleConfig.external_notification.enabled = true;
|
||||||
|
@ -28,6 +28,9 @@
|
|||||||
|
|
||||||
#define BUTTON_PIN 0
|
#define BUTTON_PIN 0
|
||||||
|
|
||||||
|
// vibration motor
|
||||||
|
#define PIN_VIBRATION 2
|
||||||
|
|
||||||
// Have SPI interface SD card slot
|
// Have SPI interface SD card slot
|
||||||
#define HAS_SDCARD
|
#define HAS_SDCARD
|
||||||
#define SDCARD_USE_SPI1
|
#define SDCARD_USE_SPI1
|
||||||
|
Loading…
Reference in New Issue
Block a user