Browse Source

music mode file

pull/239/head
Jack Humbert 8 years ago
parent
commit
a90d68739a
6 changed files with 1725 additions and 16 deletions
  1. +2
    -2
      keyboard/preonic/Makefile
  2. +1
    -1
      keyboard/preonic/keymaps/default/keymap.c
  3. +1
    -1
      keyboard/preonic/keymaps/lock/keymap.c
  4. +6
    -10
      keyboard/preonic/preonic.c
  5. +2
    -2
      keyboard/preonic/preonic.h
  6. +1713
    -0
      keyboard/preonic/preonic_music.hex

+ 2
- 2
keyboard/preonic/Makefile View File

@ -139,8 +139,8 @@ COMMAND_ENABLE = yes # Commands for debug and configuration
# SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
# NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
# MIDI_ENABLE = YES # MIDI controls
# AUDIO_ENABLE = YES # Audio output on port C6
MIDI_ENABLE = YES # MIDI controls
AUDIO_ENABLE = YES # Audio output on port C6
# UNICODE_ENABLE = YES # Unicode
# BLUETOOTH_ENABLE = yes # Enable Bluetooth with the Adafruit EZ-Key HID
# RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with MIDI at the same time.


+ 1
- 1
keyboard/preonic/keymaps/default/keymap.c View File

@ -88,7 +88,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
return MACRO_NONE;
};
void * matrix_init_user(void) {
void matrix_init_user(void) {
#ifdef AUDIO_ENABLE
init_notes();
play_notes(&start_up, 9, false);


+ 1
- 1
keyboard/preonic/keymaps/lock/keymap.c View File

@ -99,7 +99,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
return MACRO_NONE;
};
void * matrix_init_user(void) {
void matrix_init_user(void) {
init_notes();
play_notes(&start_up, 9, false);
}

+ 6
- 10
keyboard/preonic/preonic.c View File

@ -1,16 +1,16 @@
#include "preonic.h"
__attribute__ ((weak))
void * matrix_init_user(void) {
void matrix_init_user(void) {
};
__attribute__ ((weak))
void * matrix_scan_user(void) {
void matrix_scan_user(void) {
};
void * matrix_init_kb(void) {
void matrix_init_kb(void) {
#ifdef BACKLIGHT_ENABLE
backlight_init_ports();
#endif
@ -24,13 +24,9 @@ void * matrix_init_kb(void) {
DDRE |= (1<<6);
PORTE |= (1<<6);
if (matrix_init_user) {
(*matrix_init_user)();
}
matrix_init_user();
};
void * matrix_scan_kb(void) {
if (matrix_scan_user) {
(*matrix_scan_user)();
}
void matrix_scan_kb(void) {
matrix_scan_user();
};

+ 2
- 2
keyboard/preonic/preonic.h View File

@ -44,7 +44,7 @@
{ k40, k41, k42, k43, k44, k45, k46, k47, k48, k49, k4a, k4b } \
}
void * matrix_init_user(void);
void * matrix_scan_user(void);
void matrix_init_user(void);
void matrix_scan_user(void);
#endif

+ 1713
- 0
keyboard/preonic/preonic_music.hex
File diff suppressed because it is too large
View File


Loading…
Cancel
Save