Using serial Communications with Leonardo board

You could try searching the Playground, searching the Forum. I've not personally done anything.

I don't think the compiler matters - put the functions into the IDE and see if they compile ok.