Send CC values using Control_Surface.h

Hi Guys

I'm using the fantastic and very powerful <Control_Surface.h> library to program a series of buttons & encoders,but I can't get my head around the sendCC function ... My sketch does not accept this is as a construct within the library.

Similar to the midi.sendNoteOn(0, 127); instruction, when I press a particular button I would like to send a fixed value CC message of my choosing so midi.sendCC(16, 100); for example. Where 16 is the controller and 100 is the actual value of what is being output. I must add that this code is to be used with the encoder library, and Control_Surface library together utilising them for relative encoders.
Can anyone help?

Please post your full code and the exact error message. Use [code] tags as explained in the "How to use the forum" thread.

If you want a push button that sends a CC message, you can use the CCButton class.

Pieter