You may want to read through this thread as there are many great examples and a better Arduino library than the one ST provides:
@ogiewon is the Arduino Jedi master.