-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Buzzer cli command #4006
base: dev
Are you sure you want to change the base?
Buzzer cli command #4006
Conversation
768c5c4
to
3645dd1
Compare
applications/services/notification/notification_messages_notes.h
Outdated
Show resolved
Hide resolved
@@ -525,6 +658,7 @@ void cli_commands_init(Cli* cli) { | |||
|
|||
cli_add_command(cli, "vibro", CliCommandFlagDefault, cli_command_vibro, NULL); | |||
cli_add_command(cli, "led", CliCommandFlagDefault, cli_command_led, NULL); | |||
cli_add_command(cli, "buzzer", CliCommandFlagDefault, cli_command_buzzer, NULL); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We kinda low on free flash memory, adding this feature directly into firmware looks kinda bad.
There is a chance that we will postpone this PR till @portasynthinca3 finish cli refactoring, so we can move non essential things into external apps.
Un-draft when ready |
}; | ||
|
||
// Send notification | ||
notification_message_block(notification, ¬ification_sequence); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@skotopes Is there a way to interrupt notification by Ctrl+C? I would be grateful for examples
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added function cli_sleep
for this purpose. Please take a look
Looks ready for me. Should I un-draft it before @portasynthinca3 finishes refactoring? |
What's new
buzzer
CLI commandtop
CLI command to use these functionsVerification
buzzer freq 659.26
orbuzzer note e5
for playing e5 for 100 ms (default value)buzzer freq 659.26 5s
orbuzzer note e5 5s
for playing e5 for 5 sChecklist (For Reviewer)