Metadata-Version: 2.4
Name: moons_motor
Version: 1.0.0
Summary: This is a python library for controlling the Moons' motor through the serial port.
Author-email: miroc <mike8503111@gmail.com>
Project-URL: Repository, https://github.com/miroc99/moons_motor.git
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Terminals :: Serial
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pyserial
Requires-Dist: rich
Requires-Dist: python-socketio
Requires-Dist: requests
Requires-Dist: pyserial_asyncio
Dynamic: license-file

# Moons Motor

This is a python library for control moons motor through serial port.

## Compatibility

Now only support Windows.

## Installing

Install through `pip`

```bash
python -m pip install moons_motor

```

## Usage

```python
from motor import MoonsStepper, StepperModules, StepperCommand
import simulate
from time import sleep

motor = MoonsStepper(StepperModules.STM17S_3RN, "0403", "6001", "TESTA")

MoonsStepper.list_all_ports()
motor.connect()

motor.send_command(address="@", command=StepperCommand.JOG)
sleep(5)
motor.send_command(address="@", command=StepperCommand.STOP_JOG)

```

## Tested Motor

1. STM17S-3RN

## Reference
