Simple Stepper Motor Program

Good Morning,

I haven't worked with coding in a long time and need a good starting point. I can figure out the rest of the details, but does anyone have any code for the following:

1 Stepper motor

Function: 1 jog button function at a certain speed forward 1 jog button function at a certain speed backward 1 button for running forward at a certain speed and # of steps until pressed again. (repeatable)

Thank you

I am probably so far off with most of it but I will try my best.

const int buttonPin = 12;//Jog Button Clockwise
const int buttonPin = 11;//Jog Button Counter Clockwise
int buttonState = 0;
#include <AccelStepper.h>

AccelStepper stepper1(1, 9, 8); // 9= step ,8= direction
AccelStepper stepper2(1, 9, 8); // 9= step ,8= direction
#define RIGHT_PIN 2

#define MAX_SPEED 5000
#define MIN_SPEED .01

void setup() {
stepper1.setMaxSpeed(5000.0);

pinMode(Right_Pin, INPUT_PULLUP);
pinMode(buttonPin, INPUT);
pinMode(buttonPin1, INPUT);
}

void loop() {
buttonState = digitalRead(buttonPin);
static float current_speed = 0.0;
static int analog_read_counter = 1000;
static char sign = 0;
static int analog_value = 0;
}

if (digitalRead(RIGHT_PIN) == 0){
stepper.setspeed(500);
steps2tape = 2048;
stepper.step(steps2take);
delay(1000);
break;
}

if (digitalRead(buttonPin) ==HIGH){
current_speed = ((analog_value/1023.0) * (MAX_SPEED - MIN_SPEED)) + MIN_SPEED;
stepper1.setSpeed(-current_speed);
stepper1.runSpeed();
}

if (digitalRead(buttonPin1) ==HIGH){
current_speed = ((analog_value/1023.0) * (MAX_SPEED - MIN_SPEED)) + MIN_SPEED;
stepper1.setSpeed(-current_speed);
stepper1.runSpeed();
}

resume();
}

Using what driver hardware? Makes a difference.

I am probably so far off with most of it

You mean like connecting both steppers to the same set of pins, including the non-existent smiley face pin? Yes, you are.