<commit_before># laravel-teleduino
A laravel interface for Teleduino API
# Installation
require the package using composer

```
composer require khaledkhamis/teleduino dev-master
```

add Teleduino service provider in `providers` array in `config/app.php`

```
Khaledkhamis\Teleduino\TeleduinoServiceProvider::class,
```

then publish the configuration file

```
php artisan vendor:publish
```

open `config/teleduino.php` and insert your API key from teleduino.org
# Example

```php
<?php
namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Http\Requests;
//use Teleduino namespace
use Khaledkhamis\Teleduino\Teleduino;

class ArduinoController extends Controller
{
    public function setOutput()
    {
        $myArduino = new Teleduino();	//default for 328

        /*all functions accepts same parameters as the API documentation
        **https://www.teleduino.org/documentation/api/328-full
        */
        $myArduino->definePinMode(4,1);
        $myArduino->setDigitalOutput(4,2);
    }
}

```

# Contribution
Feel free to fork and create a pull request!

# Contact
For more information please get in touch: <EMAIL><commit_msg>fixed a typo in readme<commit_after># laravel-teleduino
A laravel interface for Teleduino API
# Installation
require the package using composer

```
composer require khaledkhamis/teleduino dev-master
```

add Teleduino service provider in `providers` array in `config/app.php`

```
Khaledkhamis\Teleduino\TeleduinoServiceProvider::class,
```

then publish the configuration file

```
php artisan vendor:publish
```

open `config/teleduino.php` and insert your API key from teleduino.org
# Example

```php
<?php
namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Http\Requests;
//use Teleduino namespace
use Khaledkhamis\Teleduino\Teleduino;

class ArduinoController extends Controller
{
    public function setOutput()
    {
        $myArduino = new Teleduino();	//default for 328

        /*all functions accept same parameters as the API documentation
        **https://www.teleduino.org/documentation/api/328-full
        */
        $myArduino->definePinMode(4,1);
        $myArduino->setDigitalOutput(4,2);
    }
}

```

# Contribution
Feel free to fork and create a pull request!

# Contact
For more information please get in touch: <EMAIL>
{'fraction_non_alphanumeric': 0.09819121447028424, 'fraction_numerical': 0.008613264427217916, 'mean_word_length': 4.061002178649238, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '6139120', 'n_tokens_mistral': 766, 'n_tokens_neox': 709, 'n_words': 209}