<commit_before>arduino_firmata
===============

* Arduino Firmata protocol (http://firmata.org) implementation on Ruby.
* http://shokai.github.com/arduino_firmata


Install
-------

    % gem install arduino_firmata


Requirements
------------

* Ruby 1.8.7 or 1.9.2 or 1.9.3 or 2.0.0
* Arduino (http://arduino.cc)
  * testing with Arduino Duemillanove, UNO, Micro, Seeduino v2.
* Arduino Standard Firmata v2.2
  * Arduino IDE -> [File] -> [Examples] -> [Firmata] -> [StandardFirmata]


ArduinoFirmata Command
----------------------

    % arduino_firmata --help
    % arduino_firmata --list
    % arduino_firmata digital_write 13, true
    % arduino_firmata analog_read 0
    % arduino_firmata servo_write 9, 145


Synopsis
--------

- https://github.com/shokai/arduino_firmata/tree/master/samples

### Setup

Connect
```ruby
require 'arduino_firmata'

arduino = ArduinoFirmata.connect  # use default arduino<commit_msg>arduino leonardo support<commit_after>arduino_firmata
===============

* Arduino Firmata protocol (http://firmata.org) implementation on Ruby.
* http://shokai.github.com/arduino_firmata


Install
-------

    % gem install arduino_firmata


Requirements
------------

* Ruby 1.8.7 or 1.9.2 or 1.9.3 or 2.0.0
* Arduino (http://arduino.cc)
  * testing with Arduino Duemillanove, UNO, Leonardo, Micro, Seeduino v2.
* Arduino Standard Firmata v2.2
  * Arduino IDE -> [File] -> [Examples] -> [Firmata] -> [StandardFirmata]


ArduinoFirmata Command
----------------------

    % arduino_firmata --help
    % arduino_firmata --list
    % arduino_firmata digital_write 13, true
    % arduino_firmata analog_read 0
    % arduino_firmata servo_write 9, 145


Synopsis
--------

- https://github.com/shokai/arduino_firmata/tree/master/samples

### Setup

Connect
```ruby
require 'arduino_firmata'

arduino = ArduinoFirmata.connect  # use default arduino
{'fraction_non_alphanumeric': 0.166935050993022, 'fraction_numerical': 0.023617820719269995, 'mean_word_length': 3.0172413793103448, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '2418299', 'n_tokens_mistral': 746, 'n_tokens_neox': 643, 'n_words': 144}