summaryrefslogtreecommitdiff
path: root/floppyMusic/midi.c
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2017-10-12 22:19:16 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2017-10-12 22:19:16 +0200
commit084f43a1b47fc7ffaad806dd4961d8be3740a75e (patch)
treeba802348f2be4892c112e8ac2739404e2be877c5 /floppyMusic/midi.c
parentd7c4299cd4aaaabcce3c5d6eab3a4f693dd784cc (diff)
downloadavrFloppy-084f43a1b47fc7ffaad806dd4961d8be3740a75e.tar.gz
Something must have changed. I dont rememberHEADmaster
Diffstat (limited to 'floppyMusic/midi.c')
-rw-r--r--floppyMusic/midi.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/floppyMusic/midi.c b/floppyMusic/midi.c
index 8e760a8..62c1b1d 100644
--- a/floppyMusic/midi.c
+++ b/floppyMusic/midi.c
@@ -31,6 +31,8 @@ void midi_setup()
UCSRB = (1<<RXEN) | (1<<TXEN) | (1<<RXCIE); //Enable Tx, Rx and Rx Interrupt
UCSRC = (1<<URSEL) | (1<<USBS) | (3<<UCSZ0);
+ midi_uart_outs("MIDI set up successfully");
+
}
void midi_process()
@@ -52,6 +54,8 @@ void midi_process()
midi_command(command, note, velocity);
+ //midi_uart_outs("\nCommand received:\n");
+ midi_uart_out(command);
}
void midi_command(char _cmd, char _note, char _vel)
@@ -138,3 +142,12 @@ void midi_uart_out(unsigned char _c)
/* Put data into buffer, sends the data */
UDR = _c;
}
+
+ void midi_uart_outs( char *_s)
+ {
+ while(*_s)
+ {
+ midi_uart_out(*_s);
+ _s++;
+ }
+ } \ No newline at end of file