summaryrefslogtreecommitdiff
path: root/keyboard/planck/planck.c
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-01-11 16:53:33 -0500
committerJack Humbert <jack.humb@gmail.com>2016-01-11 16:53:33 -0500
commit29de37d5c0ea9fc6b5539ce4493c7b10a2a7f33f (patch)
treececb16f2969a1d250b45d828df1e700bce1d8c40 /keyboard/planck/planck.c
parent11ce694557389bdde2b5ae15af38fdad3fe77a27 (diff)
pwm audio
Diffstat (limited to 'keyboard/planck/planck.c')
-rw-r--r--keyboard/planck/planck.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/keyboard/planck/planck.c b/keyboard/planck/planck.c
index b62862af04..a986bd8812 100644
--- a/keyboard/planck/planck.c
+++ b/keyboard/planck/planck.c
@@ -19,6 +19,35 @@ void * matrix_init_kb(void) {
DDRE |= (1<<6);
PORTE |= (1<<6);
+ init_notes();
+
+ // play_note(((double)261.6*32)*pow(2.0,(36)/12.0), 0xF);
+ // _delay_ms(50);
+
+ // play_note(((double)261.6*32)*pow(2.0,(48)/12.0), 0xF);
+ // _delay_ms(25);
+ // stop_note(((double)261.6*32)*pow(2.0,(48)/12.0));
+
+ // play_note(((double)261.6*32)*pow(2.0,(48)/12.0), 0xF);
+ // _delay_ms(25);
+ // stop_note(((double)261.6*32)*pow(2.0,(48)/12.0));
+
+
+ // stop_note(((double)261.6*32)*pow(2.0,(36)/12.0));
+
+
+ // play_note(((double)261.6*32)*pow(2.0,(62)/12.0), 0xF);
+ // _delay_ms(50);
+ // stop_note(((double)261.6*32)*pow(2.0,(62)/12.0));
+
+
+ // play_note(((double)261.6*32)*pow(2.0,(64)/12.0), 0xF);
+ // _delay_ms(50);
+ // stop_note(((double)261.6*32)*pow(2.0,(64)/12.0));
+
+
+
+
if (matrix_init_user) {
(*matrix_init_user)();
}