Lenght display using WS2812b and arduino Uno

Hi ,
first I look around tring to find a code I can use to do my project but I dont have enough coding to do it
I need your help to do a little program to control a ws2812b digital led strip with two signal

I will try to explain it the best I can
this is a scale to measure parts

input 1: material in place
input 2: Pluse counter with preset (ie: sprocket with a sensor)

1 led = 1 inch.

  1. All led red on the strip at startup.
  2. If input 1 is held high(part on the table) and input 2 is pressed (ie: 5 time in arrow) then the first led turn green .
  3. If the input 2 preset is reached again then an other green led turn on, if not (no part is Under the input 1 sensor) then led turn red and the previous green(s) leds forward to the next led(s) till it reach the and of the strip.

If someone Have an exemple that I can use it will be apreciated

Thanks

Martin

You have a choice

  1. Learn how to program, what you are asking for is not hard.

  2. Only ever do projects that some one else has done.

taktin:
If someone Have an exemple that I can use it will be apreciated

I highly doubt someone has an example of exactly what you want.

ieee488,

I agree with you but I would of expented to find something more similar than the exemple I found previously.

thanks you to the both of you, for your answers .

taktin:
ieee488,

I agree with you but I would of expented to find something more similar than the exemple I found previously.

thanks you to the both of you, for your answers .

On what basis, did you base your "expented"?

if you look at the adafruit neopixel library, or other such libs, you will find code that show you how to light the leds and wire them. look at instructables / maker faire pages for many examples.