Hi....without basic literacy in Arduino you will find it hard to write a sketch to do much more than those examples.
Understand that you can lift sections from those sketches for your own, modify as needed but make sure that you know how they work and what they do which takes reading the lines...