2023-02-07 19:33:05 +03:00
|
|
|
#include <furi_hal_resources.h>
|
2021-05-24 16:44:14 +03:00
|
|
|
#include "notification.h"
|
2022-01-05 19:10:18 +03:00
|
|
|
#include "notification_messages_notes.h"
|
2021-05-24 16:44:14 +03:00
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
/*********************************** Messages **********************************/
|
|
|
|
|
2022-04-29 17:21:12 +03:00
|
|
|
/** Display: backlight wakeup */
|
|
|
|
const NotificationMessage message_display_backlight_on = {
|
|
|
|
.type = NotificationMessageTypeLedDisplayBacklight,
|
2021-05-24 16:44:14 +03:00
|
|
|
.data.led.value = 0xFF,
|
|
|
|
};
|
|
|
|
|
2022-04-29 17:21:12 +03:00
|
|
|
/** Display: backlight force off */
|
|
|
|
const NotificationMessage message_display_backlight_off = {
|
|
|
|
.type = NotificationMessageTypeLedDisplayBacklight,
|
2021-05-24 16:44:14 +03:00
|
|
|
.data.led.value = 0x00,
|
|
|
|
};
|
|
|
|
|
2022-04-29 17:21:12 +03:00
|
|
|
/** Display: backlight always on */
|
|
|
|
const NotificationMessage message_display_backlight_enforce_on = {
|
|
|
|
.type = NotificationMessageTypeLedDisplayBacklightEnforceOn,
|
2022-02-24 03:17:40 +03:00
|
|
|
.data.led.value = 0xFF,
|
|
|
|
};
|
|
|
|
|
2022-04-29 17:21:12 +03:00
|
|
|
/** Display: automatic backlight management, with configured timeout */
|
|
|
|
const NotificationMessage message_display_backlight_enforce_auto = {
|
|
|
|
.type = NotificationMessageTypeLedDisplayBacklightEnforceAuto,
|
2022-02-24 03:17:40 +03:00
|
|
|
.data.led.value = 0x00,
|
|
|
|
};
|
|
|
|
|
2021-05-24 16:44:14 +03:00
|
|
|
// Led ON
|
|
|
|
const NotificationMessage message_red_255 = {
|
|
|
|
.type = NotificationMessageTypeLedRed,
|
|
|
|
.data.led.value = 0xFF,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationMessage message_green_255 = {
|
|
|
|
.type = NotificationMessageTypeLedGreen,
|
|
|
|
.data.led.value = 0xFF,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationMessage message_blue_255 = {
|
|
|
|
.type = NotificationMessageTypeLedBlue,
|
|
|
|
.data.led.value = 0xFF,
|
|
|
|
};
|
|
|
|
|
|
|
|
// Led OFF
|
|
|
|
const NotificationMessage message_red_0 = {
|
|
|
|
.type = NotificationMessageTypeLedRed,
|
|
|
|
.data.led.value = 0x00,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationMessage message_green_0 = {
|
|
|
|
.type = NotificationMessageTypeLedGreen,
|
|
|
|
.data.led.value = 0x00,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationMessage message_blue_0 = {
|
|
|
|
.type = NotificationMessageTypeLedBlue,
|
|
|
|
.data.led.value = 0x00,
|
|
|
|
};
|
|
|
|
|
2022-06-09 10:33:46 +03:00
|
|
|
const NotificationMessage message_blink_start_10 = {
|
|
|
|
.type = NotificationMessageTypeLedBlinkStart,
|
|
|
|
.data.led_blink.color = 0,
|
|
|
|
.data.led_blink.on_time = 10,
|
|
|
|
.data.led_blink.period = 100,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationMessage message_blink_start_100 = {
|
|
|
|
.type = NotificationMessageTypeLedBlinkStart,
|
|
|
|
.data.led_blink.color = 0,
|
|
|
|
.data.led_blink.on_time = 100,
|
|
|
|
.data.led_blink.period = 1000,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationMessage message_blink_stop = {
|
|
|
|
.type = NotificationMessageTypeLedBlinkStop,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationMessage message_blink_set_color_red = {
|
|
|
|
.type = NotificationMessageTypeLedBlinkColor,
|
|
|
|
.data.led_blink.color = LightRed,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationMessage message_blink_set_color_green = {
|
|
|
|
.type = NotificationMessageTypeLedBlinkColor,
|
|
|
|
.data.led_blink.color = LightGreen,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationMessage message_blink_set_color_blue = {
|
|
|
|
.type = NotificationMessageTypeLedBlinkColor,
|
|
|
|
.data.led_blink.color = LightBlue,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationMessage message_blink_set_color_cyan = {
|
|
|
|
.type = NotificationMessageTypeLedBlinkColor,
|
|
|
|
.data.led_blink.color = LightBlue | LightGreen,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationMessage message_blink_set_color_magenta = {
|
|
|
|
.type = NotificationMessageTypeLedBlinkColor,
|
|
|
|
.data.led_blink.color = LightBlue | LightRed,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationMessage message_blink_set_color_yellow = {
|
|
|
|
.type = NotificationMessageTypeLedBlinkColor,
|
|
|
|
.data.led_blink.color = LightGreen | LightRed,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationMessage message_blink_set_color_white = {
|
|
|
|
.type = NotificationMessageTypeLedBlinkColor,
|
|
|
|
.data.led_blink.color = LightRed | LightGreen | LightBlue,
|
|
|
|
};
|
|
|
|
|
2021-05-24 16:44:14 +03:00
|
|
|
// Delay
|
2021-06-09 16:04:49 +03:00
|
|
|
const NotificationMessage message_delay_1 = {
|
|
|
|
.type = NotificationMessageTypeDelay,
|
|
|
|
.data.delay.length = 1,
|
|
|
|
};
|
|
|
|
|
2021-05-24 16:44:14 +03:00
|
|
|
const NotificationMessage message_delay_10 = {
|
|
|
|
.type = NotificationMessageTypeDelay,
|
|
|
|
.data.delay.length = 10,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationMessage message_delay_25 = {
|
|
|
|
.type = NotificationMessageTypeDelay,
|
|
|
|
.data.delay.length = 25,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationMessage message_delay_50 = {
|
|
|
|
.type = NotificationMessageTypeDelay,
|
|
|
|
.data.delay.length = 50,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationMessage message_delay_100 = {
|
|
|
|
.type = NotificationMessageTypeDelay,
|
|
|
|
.data.delay.length = 100,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationMessage message_delay_250 = {
|
|
|
|
.type = NotificationMessageTypeDelay,
|
|
|
|
.data.delay.length = 250,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationMessage message_delay_500 = {
|
|
|
|
.type = NotificationMessageTypeDelay,
|
|
|
|
.data.delay.length = 500,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationMessage message_delay_1000 = {
|
|
|
|
.type = NotificationMessageTypeDelay,
|
|
|
|
.data.delay.length = 1000,
|
|
|
|
};
|
|
|
|
|
|
|
|
// Sound
|
|
|
|
const NotificationMessage message_sound_off = {
|
|
|
|
.type = NotificationMessageTypeSoundOff,
|
|
|
|
};
|
|
|
|
|
|
|
|
// Vibro
|
|
|
|
const NotificationMessage message_vibro_on = {
|
|
|
|
.type = NotificationMessageTypeVibro,
|
|
|
|
.data.vibro.on = true,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationMessage message_vibro_off = {
|
|
|
|
.type = NotificationMessageTypeVibro,
|
|
|
|
.data.vibro.on = false,
|
|
|
|
};
|
|
|
|
|
|
|
|
// Reset
|
|
|
|
const NotificationMessage message_do_not_reset = {
|
|
|
|
.type = NotificationMessageTypeDoNotReset,
|
|
|
|
};
|
|
|
|
|
2021-12-28 18:46:08 +03:00
|
|
|
// Override user settings
|
|
|
|
const NotificationMessage message_force_speaker_volume_setting_1f = {
|
|
|
|
.type = NotificationMessageTypeForceSpeakerVolumeSetting,
|
|
|
|
.data.forced_settings.speaker_volume = 1.0f,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationMessage message_force_vibro_setting_on = {
|
|
|
|
.type = NotificationMessageTypeForceVibroSetting,
|
|
|
|
.data.forced_settings.vibro = true,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationMessage message_force_vibro_setting_off = {
|
|
|
|
.type = NotificationMessageTypeForceVibroSetting,
|
|
|
|
.data.forced_settings.vibro = false,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationMessage message_force_display_brightness_setting_1f = {
|
|
|
|
.type = NotificationMessageTypeForceDisplayBrightnessSetting,
|
|
|
|
.data.forced_settings.display_brightness = 1.0f,
|
|
|
|
};
|
|
|
|
|
2023-06-06 20:46:01 +03:00
|
|
|
const NotificationMessage message_lcd_contrast_update = {
|
|
|
|
.type = NotificationMessageTypeLcdContrastUpdate,
|
|
|
|
};
|
|
|
|
|
2021-05-24 16:44:14 +03:00
|
|
|
/****************************** Message sequences ******************************/
|
|
|
|
|
|
|
|
// Reset
|
|
|
|
const NotificationSequence sequence_reset_red = {
|
|
|
|
&message_red_0,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationSequence sequence_reset_green = {
|
2021-06-09 16:04:49 +03:00
|
|
|
&message_green_0,
|
2021-05-24 16:44:14 +03:00
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationSequence sequence_reset_blue = {
|
2021-06-09 16:04:49 +03:00
|
|
|
&message_blue_0,
|
2021-05-24 16:44:14 +03:00
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationSequence sequence_reset_rgb = {
|
|
|
|
&message_red_0,
|
|
|
|
&message_blue_0,
|
|
|
|
&message_green_0,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationSequence sequence_reset_display = {
|
2022-04-29 17:21:12 +03:00
|
|
|
&message_display_backlight_off,
|
2021-05-24 16:44:14 +03:00
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationSequence sequence_reset_sound = {
|
|
|
|
&message_sound_off,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationSequence sequence_reset_vibro = {
|
|
|
|
&message_vibro_off,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
// Vibro
|
|
|
|
const NotificationSequence sequence_set_vibro_on = {
|
|
|
|
&message_vibro_on,
|
|
|
|
&message_do_not_reset,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
// Display
|
2022-04-29 17:21:12 +03:00
|
|
|
const NotificationSequence sequence_display_backlight_on = {
|
|
|
|
&message_display_backlight_on,
|
2021-05-24 16:44:14 +03:00
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
2022-04-29 17:21:12 +03:00
|
|
|
const NotificationSequence sequence_display_backlight_off = {
|
|
|
|
&message_display_backlight_off,
|
2021-05-24 16:44:14 +03:00
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
2022-04-29 17:21:12 +03:00
|
|
|
/** Display: backlight always on lock */
|
|
|
|
const NotificationSequence sequence_display_backlight_enforce_on = {
|
|
|
|
&message_display_backlight_enforce_on,
|
2022-02-24 03:17:40 +03:00
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
2022-04-29 17:21:12 +03:00
|
|
|
/** Display: backlight always on unlock */
|
|
|
|
const NotificationSequence sequence_display_backlight_enforce_auto = {
|
|
|
|
&message_display_backlight_enforce_auto,
|
2022-02-24 03:17:40 +03:00
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
2022-04-29 17:21:12 +03:00
|
|
|
const NotificationSequence sequence_display_backlight_off_delay_1000 = {
|
2022-04-14 15:20:41 +03:00
|
|
|
&message_delay_1000,
|
2022-04-29 17:21:12 +03:00
|
|
|
&message_display_backlight_off,
|
2022-04-14 15:20:41 +03:00
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
2021-05-24 16:44:14 +03:00
|
|
|
// Charging
|
|
|
|
const NotificationSequence sequence_charging = {
|
|
|
|
&message_red_255,
|
|
|
|
&message_green_0,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationSequence sequence_charged = {
|
|
|
|
&message_green_255,
|
|
|
|
&message_red_0,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationSequence sequence_not_charging = {
|
|
|
|
&message_red_0,
|
|
|
|
&message_green_0,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
// Light up
|
|
|
|
const NotificationSequence sequence_set_only_red_255 = {
|
|
|
|
&message_red_255,
|
|
|
|
&message_green_0,
|
|
|
|
&message_blue_0,
|
|
|
|
&message_do_not_reset,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationSequence sequence_set_only_green_255 = {
|
|
|
|
&message_red_0,
|
|
|
|
&message_green_255,
|
|
|
|
&message_blue_0,
|
|
|
|
&message_do_not_reset,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationSequence sequence_set_only_blue_255 = {
|
|
|
|
&message_red_0,
|
|
|
|
&message_green_0,
|
|
|
|
&message_blue_255,
|
|
|
|
&message_do_not_reset,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationSequence sequence_set_red_255 = {
|
|
|
|
&message_red_255,
|
|
|
|
&message_do_not_reset,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationSequence sequence_set_green_255 = {
|
|
|
|
&message_green_255,
|
|
|
|
&message_do_not_reset,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationSequence sequence_set_blue_255 = {
|
|
|
|
&message_blue_255,
|
|
|
|
&message_do_not_reset,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
2022-06-21 17:45:55 +03:00
|
|
|
// Solid colors
|
|
|
|
const NotificationSequence sequence_solid_yellow = {
|
|
|
|
&message_red_255,
|
|
|
|
&message_green_255,
|
|
|
|
&message_blue_0,
|
|
|
|
&message_do_not_reset,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
2021-05-24 16:44:14 +03:00
|
|
|
// Blink
|
2021-05-28 17:12:39 +03:00
|
|
|
const NotificationSequence sequence_blink_blue_10 = {
|
|
|
|
&message_blue_255,
|
|
|
|
&message_delay_10,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
2021-05-24 16:44:14 +03:00
|
|
|
const NotificationSequence sequence_blink_red_10 = {
|
|
|
|
&message_red_255,
|
|
|
|
&message_delay_10,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationSequence sequence_blink_green_10 = {
|
|
|
|
&message_green_255,
|
|
|
|
&message_delay_10,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationSequence sequence_blink_yellow_10 = {
|
|
|
|
&message_red_255,
|
|
|
|
&message_green_255,
|
|
|
|
&message_delay_10,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
2021-06-28 17:42:30 +03:00
|
|
|
const NotificationSequence sequence_blink_cyan_10 = {
|
|
|
|
&message_green_255,
|
|
|
|
&message_blue_255,
|
|
|
|
&message_delay_10,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
2022-04-28 20:20:59 +03:00
|
|
|
const NotificationSequence sequence_blink_magenta_10 = {
|
|
|
|
&message_red_255,
|
|
|
|
&message_blue_255,
|
|
|
|
&message_delay_10,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
2021-05-24 16:44:14 +03:00
|
|
|
const NotificationSequence sequence_blink_red_100 = {
|
|
|
|
&message_red_255,
|
|
|
|
&message_delay_100,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationSequence sequence_blink_green_100 = {
|
|
|
|
&message_green_255,
|
|
|
|
&message_delay_100,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationSequence sequence_blink_blue_100 = {
|
|
|
|
&message_blue_255,
|
|
|
|
&message_delay_100,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationSequence sequence_blink_yellow_100 = {
|
|
|
|
&message_red_255,
|
|
|
|
&message_green_255,
|
|
|
|
&message_delay_100,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationSequence sequence_blink_cyan_100 = {
|
|
|
|
&message_green_255,
|
|
|
|
&message_blue_255,
|
|
|
|
&message_delay_100,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationSequence sequence_blink_magenta_100 = {
|
|
|
|
&message_red_255,
|
|
|
|
&message_blue_255,
|
|
|
|
&message_delay_100,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationSequence sequence_blink_white_100 = {
|
|
|
|
&message_red_255,
|
|
|
|
&message_green_255,
|
|
|
|
&message_blue_255,
|
|
|
|
&message_delay_100,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
2022-08-04 15:11:01 +03:00
|
|
|
// Hardware blink
|
|
|
|
const NotificationSequence sequence_blink_start_blue = {
|
|
|
|
&message_blink_start_10,
|
|
|
|
&message_blink_set_color_blue,
|
|
|
|
&message_do_not_reset,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationSequence sequence_blink_start_red = {
|
|
|
|
&message_blink_start_10,
|
|
|
|
&message_blink_set_color_red,
|
|
|
|
&message_do_not_reset,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationSequence sequence_blink_start_green = {
|
|
|
|
&message_blink_start_10,
|
|
|
|
&message_blink_set_color_green,
|
|
|
|
&message_do_not_reset,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationSequence sequence_blink_start_yellow = {
|
|
|
|
&message_blink_start_10,
|
|
|
|
&message_blink_set_color_yellow,
|
|
|
|
&message_do_not_reset,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationSequence sequence_blink_start_cyan = {
|
|
|
|
&message_blink_start_10,
|
|
|
|
&message_blink_set_color_cyan,
|
|
|
|
&message_do_not_reset,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationSequence sequence_blink_start_magenta = {
|
|
|
|
&message_blink_start_10,
|
|
|
|
&message_blink_set_color_magenta,
|
|
|
|
&message_do_not_reset,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
|
|
|
const NotificationSequence sequence_blink_stop = {
|
|
|
|
&message_blink_stop,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
2021-11-26 17:01:03 +03:00
|
|
|
//General
|
|
|
|
const NotificationSequence sequence_single_vibro = {
|
|
|
|
&message_vibro_on,
|
|
|
|
&message_delay_100,
|
|
|
|
&message_vibro_off,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
2021-06-09 16:04:49 +03:00
|
|
|
const NotificationSequence sequence_double_vibro = {
|
|
|
|
&message_vibro_on,
|
|
|
|
&message_delay_100,
|
|
|
|
&message_vibro_off,
|
|
|
|
&message_delay_100,
|
|
|
|
&message_vibro_on,
|
|
|
|
&message_delay_100,
|
|
|
|
&message_vibro_off,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
2021-05-24 16:44:14 +03:00
|
|
|
const NotificationSequence sequence_success = {
|
2022-04-29 17:21:12 +03:00
|
|
|
&message_display_backlight_on,
|
2021-05-24 16:44:14 +03:00
|
|
|
&message_green_255,
|
|
|
|
&message_vibro_on,
|
|
|
|
&message_note_c5,
|
|
|
|
&message_delay_50,
|
|
|
|
&message_vibro_off,
|
|
|
|
&message_note_e5,
|
|
|
|
&message_delay_50,
|
|
|
|
&message_note_g5,
|
|
|
|
&message_delay_50,
|
|
|
|
&message_note_c6,
|
|
|
|
&message_delay_50,
|
|
|
|
&message_sound_off,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
2024-01-02 09:43:46 +03:00
|
|
|
const NotificationSequence sequence_semi_success = {
|
|
|
|
&message_display_backlight_on,
|
|
|
|
&message_green_255,
|
|
|
|
&message_vibro_on,
|
|
|
|
&message_note_c4,
|
|
|
|
&message_delay_50,
|
|
|
|
&message_note_e4,
|
|
|
|
&message_delay_50,
|
|
|
|
&message_note_g4,
|
|
|
|
&message_delay_50,
|
|
|
|
&message_sound_off,
|
|
|
|
&message_delay_50,
|
|
|
|
&message_note_c5,
|
|
|
|
&message_delay_50,
|
|
|
|
&message_sound_off,
|
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
2021-05-24 16:44:14 +03:00
|
|
|
const NotificationSequence sequence_error = {
|
2022-04-29 17:21:12 +03:00
|
|
|
&message_display_backlight_on,
|
2021-05-24 16:44:14 +03:00
|
|
|
&message_red_255,
|
|
|
|
&message_vibro_on,
|
2021-05-25 00:43:44 +03:00
|
|
|
&message_note_c5,
|
|
|
|
&message_delay_100,
|
2021-05-24 16:44:14 +03:00
|
|
|
&message_vibro_off,
|
2021-05-25 00:43:44 +03:00
|
|
|
&message_sound_off,
|
2021-05-24 16:44:14 +03:00
|
|
|
&message_delay_100,
|
|
|
|
&message_vibro_on,
|
2021-05-25 00:43:44 +03:00
|
|
|
&message_note_c5,
|
|
|
|
&message_delay_100,
|
2021-05-24 16:44:14 +03:00
|
|
|
&message_vibro_off,
|
2021-05-25 00:43:44 +03:00
|
|
|
&message_sound_off,
|
2021-05-24 16:44:14 +03:00
|
|
|
NULL,
|
2021-05-28 17:12:39 +03:00
|
|
|
};
|
2021-12-28 18:46:08 +03:00
|
|
|
|
|
|
|
const NotificationSequence sequence_audiovisual_alert = {
|
|
|
|
&message_force_speaker_volume_setting_1f,
|
|
|
|
&message_force_vibro_setting_on,
|
|
|
|
&message_force_display_brightness_setting_1f,
|
|
|
|
&message_vibro_on,
|
|
|
|
|
2022-04-29 17:21:12 +03:00
|
|
|
&message_display_backlight_on,
|
2021-12-28 18:46:08 +03:00
|
|
|
&message_note_c7,
|
|
|
|
&message_delay_250,
|
|
|
|
|
2022-04-29 17:21:12 +03:00
|
|
|
&message_display_backlight_off,
|
2021-12-28 18:46:08 +03:00
|
|
|
&message_note_c4,
|
|
|
|
&message_delay_250,
|
|
|
|
|
2022-04-29 17:21:12 +03:00
|
|
|
&message_display_backlight_on,
|
2021-12-28 18:46:08 +03:00
|
|
|
&message_note_c7,
|
|
|
|
&message_delay_250,
|
|
|
|
|
2022-04-29 17:21:12 +03:00
|
|
|
&message_display_backlight_off,
|
2021-12-28 18:46:08 +03:00
|
|
|
&message_note_c4,
|
|
|
|
&message_delay_250,
|
|
|
|
|
2022-04-29 17:21:12 +03:00
|
|
|
&message_display_backlight_on,
|
2021-12-28 18:46:08 +03:00
|
|
|
&message_note_c7,
|
|
|
|
&message_delay_250,
|
|
|
|
|
2022-04-29 17:21:12 +03:00
|
|
|
&message_display_backlight_off,
|
2021-12-28 18:46:08 +03:00
|
|
|
&message_note_c4,
|
|
|
|
&message_delay_250,
|
|
|
|
|
|
|
|
&message_sound_off,
|
|
|
|
&message_vibro_off,
|
|
|
|
NULL,
|
2022-04-14 15:20:41 +03:00
|
|
|
};
|
2023-06-06 20:46:01 +03:00
|
|
|
|
|
|
|
const NotificationSequence sequence_lcd_contrast_update = {
|
|
|
|
&message_lcd_contrast_update,
|
|
|
|
NULL,
|
|
|
|
};
|