Any advices or example with nema17 stepper welcome

Hi everyone, I think I correctly connected my nema17 but the motor doesn’t work. I think the sketch as to be adapted, any example somewhere?

Can you post a picture of the setup?

Here is an example

Thanks for tour response i’ll have a look to your code.
Here is a picture of the setup.
Its running on a Mega 2560
When i switch off the board and turn manually the motor, both LEDs are lighting so I guess I’m good with the wires.

Another thing, I tried all wire combinations, the best I got is the motor moving once a little bit and then nothing.