Moving stepper motors with jetson nano using tb6600 motor driver

It seems a custom driver and you should find the author for the usage since I can’t find it on upstream linux.

Is the left side you motor device?
I’m not clear about what’s the interface of this motor. Controlled by GPIO?

From your code, it seems you are controlling GPIO high/low for your device.
If your motor is not working, please check the manual of your motor device.