forked from mirrors/qmk_userspace
pwm audio
This commit is contained in:
parent
11ce694557
commit
29de37d5c0
13 changed files with 600 additions and 190 deletions
|
@ -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)();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue