49
49
#include " displayapp/screens/settings/SettingChimes.h"
50
50
#include " displayapp/screens/settings/SettingShakeThreshold.h"
51
51
#include " displayapp/screens/settings/SettingBluetooth.h"
52
+ #include " displayapp/screens/settings/SettingNotifVibration.h"
53
+ #include " displayapp/screens/settings/SettingChimeVibration.h"
52
54
53
55
#include " libs/lv_conf.h"
54
56
#include " UserApps.h"
@@ -270,7 +272,7 @@ void DisplayApp::Refresh() {
270
272
} else {
271
273
LoadNewScreen (Apps::Timer, DisplayApp::FullRefreshDirections::Up);
272
274
}
273
- motorController.RunForDuration (35 );
275
+ motorController.RunForDuration (static_cast < uint8_t >(settingsController. GetNotifVibration ()) );
274
276
break ;
275
277
case Messages::AlarmTriggered:
276
278
if (currentApp == Apps::Alarm) {
@@ -282,7 +284,7 @@ void DisplayApp::Refresh() {
282
284
break ;
283
285
case Messages::ShowPairingKey:
284
286
LoadNewScreen (Apps::PassKey, DisplayApp::FullRefreshDirections::Up);
285
- motorController.RunForDuration (35 );
287
+ motorController.RunForDuration (static_cast < uint8_t >(settingsController. GetNotifVibration ()) );
286
288
break ;
287
289
case Messages::TouchEvent: {
288
290
if (state != States::Running) {
@@ -375,7 +377,7 @@ void DisplayApp::Refresh() {
375
377
break ;
376
378
case Messages::Chime:
377
379
LoadNewScreen (Apps::Clock, DisplayApp::FullRefreshDirections::None);
378
- motorController.RunForDuration (35 );
380
+ motorController.RunForDuration (static_cast < uint8_t >(settingsController. GetChimeVibration ()) );
379
381
break ;
380
382
case Messages::OnChargingEvent:
381
383
RestoreBrightness ();
@@ -465,6 +467,7 @@ void DisplayApp::LoadScreen(Apps app, DisplayApp::FullRefreshDirections directio
465
467
notificationManager,
466
468
systemTask->nimble ().alertService (),
467
469
motorController,
470
+ settingsController,
468
471
*systemTask,
469
472
Screens::Notifications::Modes::Normal);
470
473
break ;
@@ -473,6 +476,7 @@ void DisplayApp::LoadScreen(Apps app, DisplayApp::FullRefreshDirections directio
473
476
notificationManager,
474
477
systemTask->nimble ().alertService (),
475
478
motorController,
479
+ settingsController,
476
480
*systemTask,
477
481
Screens::Notifications::Modes::Preview);
478
482
break ;
@@ -524,6 +528,12 @@ void DisplayApp::LoadScreen(Apps app, DisplayApp::FullRefreshDirections directio
524
528
case Apps::SettingBluetooth:
525
529
currentScreen = std::make_unique<Screens::SettingBluetooth>(this , settingsController);
526
530
break ;
531
+ case Apps::SettingNotifVibration:
532
+ currentScreen = std::make_unique<Screens::SettingNotifVibration>(settingsController, motorController);
533
+ break ;
534
+ case Apps::SettingChimeVibration:
535
+ currentScreen = std::make_unique<Screens::SettingChimeVibration>(settingsController, motorController);
536
+ break ;
527
537
case Apps::BatteryInfo:
528
538
currentScreen = std::make_unique<Screens::BatteryInfo>(batteryController);
529
539
break ;
0 commit comments