Metadata-Version: 2.4
Name: servo-like-arduino
Version: 0.2.0
Summary: Arduino-style servo control using PyFirmata2
Author: Vihaan Parlikar
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pyfirmata2
Requires-Dist: pyserial
Dynamic: license-file

# servo-like-arduino

Arduino-style servo control for Python using PyFirmata2.

## Installation

```bash
pip install pyfirmata2
pip install servo-like-arduino
```

## Arduino Setup

Upload StandardFirmata to your Arduino:

File → Examples → Firmata → StandardFirmata

## Quick Start

```python
from servo_like_arduino import *

Board('/dev/ttyUSB0')

servo = Servo()
servo.attach(9)

servo.write(90)
```

## Smooth Movement

```python
servo.move_smooth(180)
```

## Sweep

```python
servo.sweep(
    start=0,
    end=180,
    step=1,
    delay_ms=15
)
```

## Features

- Arduino-style syntax
- Servo control
- Smooth movement
- Sweep functionality
- delay()
- millis()
- Built on PyFirmata2
