Using the examples you should be able to work out how to implement the program using the Arduino as all the functions you require are illustrated in them as is the syntax and program layout required for the Arduino environment.
Using the examples you should be able to work out how to implement the program using the Arduino as all the functions you require are illustrated in them as is the syntax and program layout required for the Arduino environment.