C code for metronome on PIC32 with LED screen