How to control some BlinkM(LED) with I2C?

Hello, I'm new to this logiciel.
Now I am doing a project to realising the control of lighting.
The LEDs are made by BlinkM, and I've found some examples done by BlinkM. I need to realize three fonctions with different LEDs with different color. The ports I use are I2C.
I don't know how to start the program, for example, how to know and define the address of these LEDs.
Can you give me some guides or examples?

Thanks!

Just get the sample code from the web site and start hacking that.