diff options
Diffstat (limited to 'keyboards/atomic')
-rw-r--r-- | keyboards/atomic/atomic.h | 16 | ||||
-rw-r--r-- | keyboards/atomic/keymaps/pvc/keymap.c | 30 | ||||
-rw-r--r-- | keyboards/atomic/rules.mk | 4 |
3 files changed, 34 insertions, 16 deletions
diff --git a/keyboards/atomic/atomic.h b/keyboards/atomic/atomic.h index 88e11fadf..b7ceb68d0 100644 --- a/keyboards/atomic/atomic.h +++ b/keyboards/atomic/atomic.h @@ -24,4 +24,20 @@ { K40, K41, KC_NO, K43, KC_NO, KC_NO, K46, KC_NO, KC_NO, KC_NO, K4A, K4B, K4C, K4D, K4E } \ } +#define KEYMAP_GRID( \ + K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E,\ + K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E,\ + K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E,\ + K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E,\ + K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, K4C, K4D, K4E \ +) { \ + { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \ + { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E }, \ + { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E }, \ + { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \ + { K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, K4C, K4D, K4E } \ +} + +#define LAYOUT_ortho_5x15 KEYMAP_GRID + #endif
\ No newline at end of file diff --git a/keyboards/atomic/keymaps/pvc/keymap.c b/keyboards/atomic/keymaps/pvc/keymap.c index c324078dd..4a7cc863e 100644 --- a/keyboards/atomic/keymaps/pvc/keymap.c +++ b/keyboards/atomic/keymaps/pvc/keymap.c @@ -471,7 +471,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) else { audio_on(); - PLAY_NOTE_ARRAY(tone_audio_on, false, STACCATO); + PLAY_SONG(tone_audio_on); } } break; @@ -486,7 +486,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) } else { - PLAY_NOTE_ARRAY(tone_music_on, false, STACCATO); + PLAY_SONG(tone_music_on); layer_on(LAYER_MUSIC); } } @@ -496,7 +496,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { #ifdef AUDIO_ENABLE voice_iterate(); - PLAY_NOTE_ARRAY(music_scale, false, STACCATO); + PLAY_SONG(music_scale); #endif } break; @@ -506,7 +506,7 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { #ifdef AUDIO_ENABLE voice_deiterate(); - PLAY_NOTE_ARRAY(music_scale, false, STACCATO); + PLAY_SONG(music_scale); #endif } break; @@ -550,32 +550,32 @@ void led_set_user(uint8_t usb_led) if ((usb_led & (1<<USB_LED_CAPS_LOCK)) && !(old_usb_led & (1<<USB_LED_CAPS_LOCK))) { // If CAPS LK LED is turning on... - PLAY_NOTE_ARRAY(tone_caps_on, false, LEGATO); + PLAY_SONG(tone_caps_on); } else if (!(usb_led & (1<<USB_LED_CAPS_LOCK)) && (old_usb_led & (1<<USB_LED_CAPS_LOCK))) { // If CAPS LK LED is turning off... - PLAY_NOTE_ARRAY(tone_caps_off, false, LEGATO); + PLAY_SONG(tone_caps_off); } else if ((usb_led & (1<<USB_LED_NUM_LOCK)) && !(old_usb_led & (1<<USB_LED_NUM_LOCK))) { // If NUM LK LED is turning on... - PLAY_NOTE_ARRAY(tone_numlk_on, false, LEGATO); + PLAY_SONG(tone_numlk_on); } else if (!(usb_led & (1<<USB_LED_NUM_LOCK)) && (old_usb_led & (1<<USB_LED_NUM_LOCK))) { // If NUM LED is turning off... - PLAY_NOTE_ARRAY(tone_numlk_off, false, LEGATO); + PLAY_SONG(tone_numlk_off); } else if ((usb_led & (1<<USB_LED_SCROLL_LOCK)) && !(old_usb_led & (1<<USB_LED_SCROLL_LOCK))) { // If SCROLL LK LED is turning on... - PLAY_NOTE_ARRAY(tone_scroll_on, false, LEGATO); + PLAY_SONG(tone_scroll_on); } else if (!(usb_led & (1<<USB_LED_SCROLL_LOCK)) && (old_usb_led & (1<<USB_LED_SCROLL_LOCK))) { // If SCROLL LED is turning off... - PLAY_NOTE_ARRAY(tone_scroll_off, false, LEGATO); + PLAY_SONG(tone_scroll_off); } } @@ -586,29 +586,29 @@ void led_set_user(uint8_t usb_led) void startup_user() { _delay_ms(10); // gets rid of tick - PLAY_NOTE_ARRAY(tone_my_startup, false, STACCATO); + PLAY_SONG(tone_my_startup); } void shutdown_user() { - PLAY_NOTE_ARRAY(tone_my_goodbye, false, STACCATO); + PLAY_SONG(tone_my_goodbye); _delay_ms(2000); stop_all_notes(); } void audio_on_user(void) { - PLAY_NOTE_ARRAY(tone_audio_on, false, STACCATO); + PLAY_SONG(tone_audio_on); } void music_on_user(void) { - PLAY_NOTE_ARRAY(tone_music_on, false, STACCATO); + PLAY_SONG(tone_music_on); } void music_scale_user(void) { - PLAY_NOTE_ARRAY(music_scale, false, STACCATO); + PLAY_SONG(music_scale); } #endif /* AUDIO_ENABLE */
\ No newline at end of file diff --git a/keyboards/atomic/rules.mk b/keyboards/atomic/rules.mk index 0bedc6f5c..3bd04a00a 100644 --- a/keyboards/atomic/rules.mk +++ b/keyboards/atomic/rules.mk @@ -66,4 +66,6 @@ BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE -SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
\ No newline at end of file +SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend + +LAYOUTS = ortho_5x15
\ No newline at end of file |