What usually happens here is that you tell us what equipment you have, how you’ve connected it up, and what lessons/tutorials you’ve completed.
By then you’ll have at least the simplest sketch working (because you followed the lessons & tutorials).
Try to code your own, post your attempt - then we help you get it sorted.
That should keep you busy for a day or two.