Error reading control labels from Arduino shield

Hi All,

In the Christmas break I’ve been building a prototype arduino shield based controller with a couple of knobs, 4 footswitches and a couple of expresssion pedal inputs, with OLED displays (one at the moment but hoping to have one above each footswitch).

The control side is working OK so far but I’m getting an error trying to read the control labels to put on the display. Interestingly I get the same error when trying to compile the “Displays” example code, so either something has broken in recent releases or I’m running with an old library or something?

The code breaks on this line in the Displays example:
writeNames(assignment->actuator_id, assignment->label.size, 0);
with this error:
‘cc_assignment_t’ has no member named ‘label’

Any thoughts?

Thanks

Ian

Hi Ian,

For some Arduino’s it is not possible to use strings by default. To use them, however, is quite easy.

In the library, there is a file called config.h in which the string support can be enabled.
Depending on your Arduino you will need to delete either line 23 or line 52 which state: #define CC_STRING_NOT_SUPPORTED.

Hope this helps!

-Jan

Excellent - that was it (in fact the same item was repeated on both lines 23 and 52)

Now working - thanks so much!