]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - keyboards/meira/meira.c
Usbasploader bootloader option addition (#6304)
[qmk_firmware.git] / keyboards / meira / meira.c
index 8234159207dc92ca6836f6403a1fa821d248b2b5..1d0db5e99721feea0f856ad73babbdca1d6bef7f 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright 2017 REPLACE_WITH_YOUR_NAME
+/* Copyright 2017 Cole Markham, WoodKeys.click
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
 #include "quantum.h"
 #define BACKLIGHT_BREATHING
 
-#ifdef AUDIO_ENABLE
-    float tone_startup[][2] = SONG(STARTUP_SOUND);
-    float tone_goodbye[][2] = SONG(GOODBYE_SOUND);
-#endif
-
-
-void shutdown_user(void) {
-    #ifdef AUDIO_ENABLE
-        PLAY_NOTE_ARRAY(tone_goodbye, false, 0);
-    _delay_ms(150);
-    stop_all_notes();
-    #endif
-}
-
+extern void backlight_set(uint8_t level);
 
 void matrix_init_kb(void)
 {
     debug_enable=true;
     print("meira matrix_init_kb\n");
-#ifdef AUDIO_ENABLE
-    _delay_ms(20); // gets rid of tick
-    PLAY_NOTE_ARRAY(tone_startup, false, 0);
-#endif
-
 
 #ifdef ISSI_ENABLE
     issi_init();
@@ -55,7 +37,6 @@ void matrix_init_kb(void)
     wdt_enable(WDTO_500MS);
 #endif
 
-
     // put your keyboard start-up code here
     // runs once when the firmware starts up
     matrix_init_user();
@@ -108,32 +89,6 @@ void led_set_kb(uint8_t usb_led) {
        led_set_user(usb_led);
 }
 
-//void action_function(keyrecord_t *event, uint8_t id, uint8_t opt)
-//{
-//#ifdef AUDIO_ENABLE
-//    int8_t sign = 1;
-//#endif
-//    if(id == LFK_ESC_TILDE){
-//        // Send ~ on shift-esc
-//        void (*method)(uint8_t) = (event->event.pressed) ? &add_key : &del_key;
-//        uint8_t shifted = get_mods() & (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT));
-//        method(shifted ? KC_GRAVE : KC_ESCAPE);
-//        send_keyboard_report();
-//    }else if(event->event.pressed){
-//        switch(id){
-//            case LFK_CLEAR:
-//                // Go back to default layer
-//                layer_clear();
-//                break;
-//#ifdef ISSI_ENABLE
-//            case LFK_LED_TEST:
-//                led_test();
-//                break;
-//#endif
-//        }
-//    }
-//}
-
 void reset_keyboard_kb(){
 #ifdef WATCHDOG_ENABLE
     MCUSR = 0;