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?
Thks

Can you post a picture of the setup?

Here is an example
https://www.arduino.cc/en/Tutorial/StepperOneRevolution

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.

Please let me know if the ground is swapped on the connector on the motor side.
Blue and black.
You change colour over connection on the posted picture?