Hi dmitri, I have seen on another post that megadrum sends hihat pedal MIDI CC continuously. I have seen that comercial modules send MIDI CC only when it changes its previous value. for example if you release the foot from the pedal it reaches 127 and it sends several MIDI CC values till 127. And it stops sending any MIDI CC till you step it again and the resistor value changes.
I say this because maybe you could save some clock cicles if you don't have to send MIDI CC constantly.
What lasts more? sending a MIDI CC value or checking if previous value is different from the new one sampled?