reformat a bit
This commit is contained in:
parent
788264499b
commit
72ce707070
1 changed files with 45 additions and 50 deletions
|
@ -101,7 +101,6 @@ void arpeggio_play(int32_t note, uint32_t len) {
|
|||
_delay_us(50);
|
||||
}
|
||||
|
||||
|
||||
void arpeggio(int32_t n1, int32_t n2, int32_t n3, int32_t len) {
|
||||
for (int32_t i = 0; i < len; i++) {
|
||||
arpeggio_play(n1, len);
|
||||
|
@ -110,7 +109,6 @@ void arpeggio(int32_t n1, int32_t n2, int32_t n3, int32_t len) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
int main(void) {
|
||||
/* setup clock divider. Timer0 overflows on counting to 256.
|
||||
* 16Mhz / 1 (CS0=1) = 16000000 increments/sec. Overflows every 256.
|
||||
|
@ -131,7 +129,6 @@ int main(void) {
|
|||
// enable interrupts
|
||||
sei();
|
||||
|
||||
|
||||
for(;;) {
|
||||
arpeggio(261,329,130,7);
|
||||
arpeggio(329,392,130,4);
|
||||
|
@ -178,7 +175,5 @@ int main(void) {
|
|||
arpeggio(261,329,110,6);
|
||||
arpeggio(261,329,110,6);
|
||||
arpeggio(261,329,110,6);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue