Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "If you add AUDIO_ENABLE = yes to your rules.mk, there's a couple different sounds that will automatically be enabled without any other configuration". i followed the docs and tried to trigger sound effects but with no success. things I did:
- in rules.mk:
- AUDIO_ENABLE = yes # Audio output on port C6
- in config.h:
- #define VENDOR_ID 0xFEFD
- #define PRODUCT_ID 0x9460
- #define DEVICE_VER 0x0001
- #define MANUFACTURER Alltrons IT
- #define PRODUCT Knops Mini
- #define DESCRIPTION Advanced 3x2 macrokeyboard
- #define C6_AUDIO
- #define B6_AUDIO
- in keymap.c:
- float my_song[][2] = SONG(QWERTY_SOUND);
- to make sure its enabled:
- LAYOUT(
- AU_ON,AU_OFF,KC_NO,KC_NO,TG(3),KC_NO),
- to force an output:
- void led_init_ports() {
- PLAY_SONG(my_song);
- ...
- to force play it during macro execution:
- const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
- switch (id) {
- case 0:
- if (record->event.pressed) {
- /*
- * This is Macro 0
- * Content: tglhf<enter>
- */
- PLAY_SONG(my_song);
- return MACRO( D(LCTL), D(LALT), T(DOWN), U(LALT), U(LCTL), END );
- }
- break;
- i tried different points to make sure its executed. do you have a working config?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement