# Raspberry Pi Pico Stepper Motor Interfacing
# Group 2 - BS CpE 4-4
# Lloyd Francis G. Aboda
# Marlon Jhon B. Bautista
# Tristan D. Nerveza
# Joshua R. Rodriguez
from machine import Pin
import utime
# pin setup
pins = [
Pin(2,Pin.OUT),
Pin(3,Pin.OUT)
]
# step sequence for the stepper motor
full_step_sequence = [
[1,0],
[0,1]
]
# loop for the stepper motor to rotate
while True:
for step in full_step_sequence:
for i in range(len(pins)):
pins[i].value(step[i])
utime.sleep(0.01)