Debugging

There is not much debugging-love going on inside the Arduino IDE. The idea is that a developer writes a sketch and just tests it directly on the target. Sometimes it can be very handy to have some more information abou twhat is going on inside your sketch. For this purpose the following function is implemented.

void RK002_printf(const char *fmt, ...)

This function will send the formatted string encoded as a MIDI sysex packet. The RK002 loader will catch this message and display it as a regular console string.void setup() { } void loop() { } boolean RK002_onNoteOn(byte chn, byte key, byte vel) { RK002_printf(“received note-on message (chn=%d, key=%d, vel=%d)”,chn,key,vel); return true; }

This will cause a textstring to be sent-out by MIDI whenever a MIDI note-on command arrives at the input. The RK002 loader will display these messages.

Shopping cart0
There are no products in the cart!
Continue shopping
0