<commit_before># MHGroveBLE – Arduino/PlatformIO support for Seeed Grove BLE module

This project provides an easy-to-use class to interface with
[Seeed Grove BLE v1](http://wiki.seeed.cc/Grove-BLE_v1/) modules. The
[Seeed Grove BLE (dual model) v1.0](http://wiki.seeed.cc/Grove-BLE-dual_model-v1.0/)
is *not* yet supported.


## Installation

### Arduino IDE/Library Manager

* Open _Sketch > Include Library > Manage Libraries_ in the Arduino IDE.
* Search for "MHGroveBLE" and click on the entry.
* Click the _"Install"_ button to install the libary.


### PlatformIO

* Open your project's `platformio.ini`.
* Add `MHGroveBLE` to the `lib_deps` entry:
```
lib_deps =
    MHGroveBLE
```

## Hardware

![Diagram showing how to connect the Grove BLE module to your board](docs/connecting.svg?raw=true)

Connect the Grove BLE's RX and TX pins to your board's/MCU's pins that you want
to use for receiving/sending. And of course connect the Grove BLE's V<sub>CC</sub>
(3.3V – 5V) and ground.

## Usage

### Basic setup

The `MHGroveBLE` class needs a stream to interface with the module. Depending on
your MCU board, this should either be a `HardwareSerial` or `SoftwareSerial`
instance.

```c++
#include <MHGroveBLE.h>
#include <SoftwareSerial.h>

#define BLE_RX_PIN 16 // Arduino digital pin for receiving<commit_msg>Narf… workaround https://github.com/github/markup/issues/556<commit_after># MHGroveBLE – Arduino/PlatformIO support for Seeed Grove BLE module

This project provides an easy-to-use class to interface with
[Seeed Grove BLE v1](http://wiki.seeed.cc/Grove-BLE_v1/) modules. The
[Seeed Grove BLE (dual model) v1.0](http://wiki.seeed.cc/Grove-BLE-dual_model-v1.0/)
is *not* yet supported.


## Installation

### Arduino IDE/Library Manager

* Open _Sketch > Include Library > Manage Libraries_ in the Arduino IDE.
* Search for "MHGroveBLE" and click on the entry.
* Click the _"Install"_ button to install the libary.


### PlatformIO

* Open your project's `platformio.ini`.
* Add `MHGroveBLE` to the `lib_deps` entry:
```
lib_deps =
    MHGroveBLE
```

## Hardware

![Diagram showing how to connect the Grove BLE module to your board](https://rawgit.com/DarkDust/MHGroveBLE/master/docs/connecting.svg)

Connect the Grove BLE's RX and TX pins to your board's/MCU's pins that you want
to use for receiving/sending. And of course connect the Grove BLE's V<sub>CC</sub>
(3.3V – 5V) and ground.

## Usage

### Basic setup

The `MHGroveBLE` class needs a stream to interface with the module. Depending on
your MCU board, this should either be a `HardwareSerial` or `SoftwareSerial`
instance.

```c++
#include <MHGroveBLE.h>
#include <SoftwareSerial.h>

#define BLE_RX_PIN 16 // Arduino digital pin for receiving
{'fraction_non_alphanumeric': 0.10845588235294118, 'fraction_numerical': 0.009191176470588236, 'mean_word_length': 4.4095427435387675, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6376003', 'n_tokens_mistral': 1019, 'n_tokens_neox': 895, 'n_words': 329}