RGB LED strip programming coding question

Can someone please help me with programming codes for the LED with:

Green light: 30 Second
Yellow light: 5 Second
Red Light: 30 Second

it will be wonderful and excellent if u please could help me code for the Arduino board

Best regards Steven Diaa (Stevan_dk@hotmail.com)

Thanks for your help!

What kind of LED strip?

What kind of homework?

Its a WS2812B RGB LED strip

steven1995:
Green light: 30 Second
Yellow light: 5 Second
Red Light: 30 Second

it will be wonderful and excellent if u please could help me code for the Arduino board

OK help but not do it for you.

Look at the examples in the AdaFruit Arduino library. That contains examples of setting all the LEDs to the same colour.
So take that piece of code and duplicate it three times and make each time a different colour.
Then in between each of these pieces of code put a delay function call. It takes a value in milliseconds so multiply your seconds requirement by 1000.

Then when it doesn't work you post your code in code tags. What are they you might ask, well please read the how to use this forum sticky post at the start of each forum section. ( basically use the </> icon )

Then we can give you further help with the bits you screwed up.

Sorry mate, but u saying take that piece of code and duplicate it three times and make each time a different color. Then in between each of these pieces of code put a delay function call. It takes a value in milliseconds so multiply your seconds requirement by 1000.

Can u show me where this code is so i can use it because i can't find it...

Sorry mate....but i don't know anything about Arduino codes thats why i need extra help please and keep asking

Regards Steven

Thanks again

OK, first you need to have installed the Adafruit NeoPixel library and successfully run the "strandtest" demo.

Have you done that?

Have you run the sample code and got your LED string lighting up, that is the first step.

Can u show me where this code is so i can use it because i can't find it...

Come on guess where it is. Post the guess along with why you think it is that piece of code. Then we can point you in the right direction.
Hint - that sample code is full of comments, try reading them.

Alternatively this project is way over your head at the moment so start off trying to learn the basics by going through some of the simpler examples in the IDE, like blinking an LED.