Skip to content

stronger haptic effect on power on #5602

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions core/embed/io/haptic/drv2625/drv2625.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
#define BOOTLOADER_ENTRY_EFFECT_AMPLITUDE 100
// Duration of the bootloader entry effect
#define BOOTLOADER_ENTRY_EFFECT_DURATION 300
// Amplitude of the power on effect
#define POWER_ON_EFFECT_AMPLITUDE 50
// Duration of the power on effect
#define POWER_ON_EFFECT_DURATION 50

// Actuator configuration
#include HAPTIC_ACTUATOR
Expand Down Expand Up @@ -354,6 +358,9 @@ bool haptic_play(haptic_effect_t effect) {
return haptic_play_rtp(BOOTLOADER_ENTRY_EFFECT_AMPLITUDE,
BOOTLOADER_ENTRY_EFFECT_DURATION);
break;
case HAPTIC_POWER_ON:
return haptic_play_rtp(POWER_ON_EFFECT_AMPLITUDE,
POWER_ON_EFFECT_DURATION);
default:
break;
}
Expand Down
2 changes: 2 additions & 0 deletions core/embed/io/haptic/inc/io/haptic.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ typedef enum {
HAPTIC_HOLD_TO_CONFIRM = 1,
// Bootloader entry
HAPTIC_BOOTLOADER_ENTRY = 2,
// Power on
HAPTIC_POWER_ON = 3,
} haptic_effect_t;

#ifdef KERNEL_MODE
Expand Down
2 changes: 1 addition & 1 deletion core/embed/projects/bootloader/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ static secbool boot_sequence(void) {
}
#ifdef USE_HAPTIC
if (elapsed >= 500 && !haptic_played) {
haptic_play(HAPTIC_BUTTON_PRESS);
haptic_play(HAPTIC_POWER_ON);
haptic_played = true;
}
#endif
Expand Down