semvec/pypi-packages huggingface dataset:
arduinoserial2 1.0.2
ArduinoSerial2: Connects Arudino with Computer


# Arduino Serial Communication Python Library

This Python library provides a convenient interface for communicating with Arduino boards via serial communication. It allows you to detect connected Arduino boards, establish serial connections, send data, and receive data from the Arduino board.

## Features

-   **Auto Detection:** Automatically detects available Arduino (uno R3) boards connected to the computer.
-   **Connection Handling:** Easily establish serial connections with detected Arduino boards.
-   **Data Transmission:** Send data over the serial connection to Arduino boards.
-   **Data Reception:** Read data from Arduino boards and process it in real-time.
-   **Multithreading Support:** Receive data asynchronously using multithreading for responsive communication.

## Installation

To use this library, you'll need Python installed on your system. If you haven't already, download and install Python from [python.org](https://www.python.org/).
```python
pip install arduinoserial2 
```
## Usage

Here's a quick guide on how to use the library in your Python project:

### 1. Import the Library

pythonCopy code

```python 
import arduinoserial2 as as2
```

### 2. Detect Arduino Boards

pythonCopy code

```python
import arduinoserial2 as as2

as2.detect()
``` 
#### Output
```bash
Available ports: ['/dev/ttyACM0']
```

### 3. Establish Serial Connection


#### Method 1 (Recommanded)
```python 
conection=as2.connect(port='/dev/ttyACM0',baud_rate=9600)
``` 
#### Method 2 
```python 
conection=as2.connect()
``` 
##### The above code will automaticaly detect the arduino uno board and will have default baud rate `9600`
### 4. Send Data to Arduino



```python
as2.send_data(conection,"Hello Arduino ")
```

### 5. Receive Data from Arduino
```python
as2.read_start(connection)
```

### 6. Additional Features

-   **Check Python Version and Detected Ports:**
    

    
   ```python
   as2.checks()
   ``` 
    
```arduino

```
## Contributing

Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.

## License

This library is licensed under the MIT License
vsearcher 0.2.17
支持视频内容检索和课件自动生成的库
Requires Python: >=3.9
Keywords: video,search,video search,courseware,ocr

<div style="display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;">
    <img style="width: 10em;" src="http://breath57.gitee.io/vs-docs/images/vs-logo.ico"/>
</div>
<h1 style="text-align: center;">VSearcher</h1>
<p style="text-align: center;">国内为数不多的教学类视频内容检索Python库</p>
<div style="display: flex;
    flex-direction: row;
    justify-content: center;
}">
<img style="margin: 0 .27em;
    margin: .2em;" src='https://img.shields.io/badge/最新版本-v0.2.16-3963bc.svg'/>
<img style="margin: 0 .27em;
    margin: .2em;" src='https://img.shields.io/badge/build-passing-00d508.svg'/>
<img style="margin: 0 .27em;
    margin: .2em;" src='https://img.shields.io/badge/license-MIT-f0f900.svg'/>
</div>
<div style='display: flex;
    flex-direction: row;
    justify-content: center;
}r'>
    <img style="margin: 0 .27em;
    margin: .2em;" src='https://img.shields.io/badge/python-v3.8+-7efaff.svg'/>
    <img style="margin: 0 .27em;
    margin: .2em;" src='https://img.shields.io/badge/setuptools-v59.8.0+-7ecaff.svg'/>
    <img style="margin: 0 .27em;
    margin: .2em;" src='https://img.shields.io/badge/pip-v21.3.1+-00d5a8.svg'/>
    <img style="margin: 0 .27em;
    margin: .2em;" src='https://img.shields.io/badge/opencv_python-v4.5.5-0fcff8.svg'/>
</div>


<div style='display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;;margin: .5em 0  3em 0;'>
    <a style="   
    border-radius: 5px;
    width: 8em;
    font-size: 1.3em;
    text-align: center;
    line-height: 2em;
    height:2em;
    text-decoration-line: none;
    background-color: #1387c1;
    color: #fff;
    margin: 0.2em 1em;
    padding: 0 0.2em;
    text-align: center;
    " href="http://breath57.gitee.io/vs-docs/">查看官方文档</a>
</div>