Arduino Lighthack for Softkeys

Hi all, I'm trying to modify the Lighthack code on the ETCLabs Github page to make some physical softkeys, and use the display to label them. I'm pretty new to arduino but have some programming knowledge from doing engineering at uni (mainly Matlab). I'm getting hung up on parsing the OSC messages from the console. The original code is:

 

void parsePanUpdate(OSCMessage& msg, int addressOffset)
{
panWheel.pos = msg.getOSCData(0)->getFloat();
updateDisplay = true;
}

 

The softkey labels are strings not floats, and I'm not sure how to go about adapting this code, to put the softkey label into a string. I'm not using the encoder structs, just simply strings, which are global vars, to store the labels, which get printed to the LCD display.

There is a getString method, but I'm not sure how to go about using it.

 

Any help would be greatly appreciated.

Cheers

Related