alex
Joined: 27 Nov 2011 Posts: 7
|
PIC18F and MIDI |
Posted: Sat Dec 10, 2011 12:10 am |
|
|
Well I managed to make my PIC18F4550 run and even get detected by USB.
I'm trying to send MIDI messages with no luck, have someone ever managed to do that? I searched on forums and copied nakarman's example but I still cant send it to my endpoint (i guess he didnt also).
heres what im trying
Code: |
while (TRUE) {
usb_task();
if(usb_enumerated()) {
buf[0] = (3 << 4) | 0x09;
buf[1] = 0x93;
buf[2] = 12;
buf[3] = 64;
usb_put_packet(1, buf, sizeof(buf), USB_DTS_TOGGLE);
delay_ms(200);
}
}
|
|
|