mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
Refactor: move buzzer RTTTL strings to class members, tune sounds, add PlatformIO build task
This commit is contained in:
parent
eeae32b25d
commit
0d8fa629ba
2 changed files with 26 additions and 0 deletions
18
.vscode/tasks.json
vendored
Normal file
18
.vscode/tasks.json
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "PlatformIO Build",
|
||||
"type": "shell",
|
||||
"command": "platformio",
|
||||
"args": [
|
||||
"run"
|
||||
],
|
||||
"isBackground": false,
|
||||
"problemMatcher": [
|
||||
"$platformio"
|
||||
],
|
||||
"group": "build"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -28,6 +28,14 @@ class genericBuzzer
|
|||
void quiet(bool buzzer_state); // enables or disables the buzzer
|
||||
bool isQuiet(); // get buzzer state on/off
|
||||
|
||||
|
||||
// Example RTTTL melodies for startup/shutdown/message/discovery
|
||||
const char *startup_song = "Startup:d=4,o=5,b=160:16c6,16e6,8g6";
|
||||
const char *shutdown_song = "Shutdown:d=4,o=5,b=100:8g5,16e5,16c5";
|
||||
const char *message_song = "MsgRcv3:d=4,o=6,b=200:32e,32g,32b,16c7";
|
||||
const char *discovery_song = "Discovery:d=4,o=5,b=180:8e6,8d6,8c6";
|
||||
const char *channel_song = "kerplop:d=16,o=6,b=120:32g#,16c#"; // more of a "plop" sound for channel change
|
||||
const char *ack_song = "ack:d=16,o=8,b=120:c8,c6"; // Two beeps: first high (C8), then low (C6)
|
||||
private:
|
||||
// gemini's picks:
|
||||
const char *startup_song = "Startup:d=4,o=5,b=160:16c6,16e6,8g6";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue