aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/ergo42/rev1/rev1.c17
-rw-r--r--keyboards/helix/rev1/rev1.c17
-rw-r--r--keyboards/helix/rev2/rev2.c17
-rw-r--r--keyboards/nyquist/rev1/rev1.c17
4 files changed, 0 insertions, 68 deletions
diff --git a/keyboards/ergo42/rev1/rev1.c b/keyboards/ergo42/rev1/rev1.c
index b4c51d557..f2e8abb1a 100644
--- a/keyboards/ergo42/rev1/rev1.c
+++ b/keyboards/ergo42/rev1/rev1.c
@@ -1,10 +1,5 @@
1#include "ergo42.h" 1#include "ergo42.h"
2 2
3#ifdef AUDIO_ENABLE
4 float tone_startup[][2] = SONG(STARTUP_SOUND);
5 float tone_goodbye[][2] = SONG(GOODBYE_SOUND);
6#endif
7
8#ifdef SSD1306OLED 3#ifdef SSD1306OLED
9void led_set_kb(uint8_t usb_led) { 4void led_set_kb(uint8_t usb_led) {
10 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here 5 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
@@ -14,11 +9,6 @@ void led_set_kb(uint8_t usb_led) {
14 9
15void matrix_init_kb(void) { 10void matrix_init_kb(void) {
16 11
17 #ifdef AUDIO_ENABLE
18 _delay_ms(20); // gets rid of tick
19 PLAY_SONG(tone_startup);
20 #endif
21
22 // // green led on 12 // // green led on
23 // DDRD |= (1<<5); 13 // DDRD |= (1<<5);
24 // PORTD &= ~(1<<5); 14 // PORTD &= ~(1<<5);
@@ -30,10 +20,3 @@ void matrix_init_kb(void) {
30 matrix_init_user(); 20 matrix_init_user();
31}; 21};
32 22
33void shutdown_user(void) {
34 #ifdef AUDIO_ENABLE
35 PLAY_SONG(tone_goodbye);
36 _delay_ms(150);
37 stop_all_notes();
38 #endif
39}
diff --git a/keyboards/helix/rev1/rev1.c b/keyboards/helix/rev1/rev1.c
index 950e4eec3..d7ea9b723 100644
--- a/keyboards/helix/rev1/rev1.c
+++ b/keyboards/helix/rev1/rev1.c
@@ -1,9 +1,5 @@
1#include "helix.h" 1#include "helix.h"
2 2
3#ifdef AUDIO_ENABLE
4 float tone_startup[][2] = SONG(STARTUP_SOUND);
5 float tone_goodbye[][2] = SONG(GOODBYE_SOUND);
6#endif
7 3
8#ifdef SSD1306OLED 4#ifdef SSD1306OLED
9void led_set_kb(uint8_t usb_led) { 5void led_set_kb(uint8_t usb_led) {
@@ -14,11 +10,6 @@ void led_set_kb(uint8_t usb_led) {
14 10
15void matrix_init_kb(void) { 11void matrix_init_kb(void) {
16 12
17 #ifdef AUDIO_ENABLE
18 _delay_ms(20); // gets rid of tick
19 PLAY_SONG(tone_startup);
20 #endif
21
22 // // green led on 13 // // green led on
23 // DDRD |= (1<<5); 14 // DDRD |= (1<<5);
24 // PORTD &= ~(1<<5); 15 // PORTD &= ~(1<<5);
@@ -29,11 +20,3 @@ void matrix_init_kb(void) {
29 20
30 matrix_init_user(); 21 matrix_init_user();
31}; 22};
32
33void shutdown_kb(void) {
34 #ifdef AUDIO_ENABLE
35 PLAY_SONG(tone_goodbye);
36 _delay_ms(150);
37 stop_all_notes();
38 #endif
39}
diff --git a/keyboards/helix/rev2/rev2.c b/keyboards/helix/rev2/rev2.c
index 1b23edb79..75765f1d3 100644
--- a/keyboards/helix/rev2/rev2.c
+++ b/keyboards/helix/rev2/rev2.c
@@ -1,11 +1,6 @@
1#include "helix.h" 1#include "helix.h"
2 2
3 3
4#ifdef AUDIO_ENABLE
5 float tone_startup[][2] = SONG(STARTUP_SOUND);
6 float tone_goodbye[][2] = SONG(GOODBYE_SOUND);
7#endif
8
9#ifdef SSD1306OLED 4#ifdef SSD1306OLED
10void led_set_kb(uint8_t usb_led) { 5void led_set_kb(uint8_t usb_led) {
11 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here 6 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
@@ -15,18 +10,6 @@ void led_set_kb(uint8_t usb_led) {
15 10
16void matrix_init_kb(void) { 11void matrix_init_kb(void) {
17 12
18 #ifdef AUDIO_ENABLE
19 _delay_ms(20); // gets rid of tick
20 PLAY_SONG(tone_startup);
21 #endif
22
23 matrix_init_user(); 13 matrix_init_user();
24}; 14};
25 15
26void shutdown_kb(void) {
27 #ifdef AUDIO_ENABLE
28 PLAY_SONG(tone_goodbye);
29 _delay_ms(150);
30 stop_all_notes();
31 #endif
32}
diff --git a/keyboards/nyquist/rev1/rev1.c b/keyboards/nyquist/rev1/rev1.c
index 99bd781d5..5f4cd32f6 100644
--- a/keyboards/nyquist/rev1/rev1.c
+++ b/keyboards/nyquist/rev1/rev1.c
@@ -1,10 +1,5 @@
1#include "rev1.h" 1#include "rev1.h"
2 2
3#ifdef AUDIO_ENABLE
4 float tone_startup[][2] = SONG(STARTUP_SOUND);
5 float tone_goodbye[][2] = SONG(GOODBYE_SOUND);
6#endif
7
8#ifdef SSD1306OLED 3#ifdef SSD1306OLED
9void led_set_kb(uint8_t usb_led) { 4void led_set_kb(uint8_t usb_led) {
10 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here 5 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
@@ -14,11 +9,6 @@ void led_set_kb(uint8_t usb_led) {
14 9
15void matrix_init_kb(void) { 10void matrix_init_kb(void) {
16 11
17 #ifdef AUDIO_ENABLE
18 _delay_ms(20); // gets rid of tick
19 PLAY_SONG(tone_startup);
20 #endif
21
22 // // green led on 12 // // green led on
23 // DDRD |= (1<<5); 13 // DDRD |= (1<<5);
24 // PORTD &= ~(1<<5); 14 // PORTD &= ~(1<<5);
@@ -30,10 +20,3 @@ void matrix_init_kb(void) {
30 matrix_init_user(); 20 matrix_init_user();
31}; 21};
32 22
33void shutdown_user(void) {
34 #ifdef AUDIO_ENABLE
35 PLAY_SONG(tone_goodbye);
36 _delay_ms(150);
37 stop_all_notes();
38 #endif
39}