Skip to content

Instantly share code, notes, and snippets.

@drashna
Created June 7, 2022 17:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drashna/3ee68510a75b13ffea261de4f089848d to your computer and use it in GitHub Desktop.
Save drashna/3ee68510a75b13ffea261de4f089848d to your computer and use it in GitHub Desktop.
float my_sound[][2] = SONG(ONE_UP_SOUND);
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case KC_ENTER:
if (record->event.pressed) {
PLAY_SONG(my_sound);
}
break;
}
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment