<commit_before>Brother KH930 Arduino
=====================

Interface to a Brother KH930 knitting machine via an Arduino Due.

Based on the work by knitic.com. Technical information is from the [Brother Service Manual](https://github.com/msiegenthaler/knitting/blob/master/Manuals/Technical/Service%20Manual%20KH930%20incl.%20KG89II.pdf).<commit_msg>Extend README.md.<commit_after>Brother KH930 Arduino
=====================

Interface to a Brother KH930 knitting machine via an Arduino Due.

Features
--------
* Get the position of carriage over the needles (which needle is at the center of the carriage).
* Detection of carriage type (K, L or G).
* Access the needles and control whether they move to B or to D position (pattern knitting).


Getting Started
---------------
* Study the brotherKH930.h file.
* To initialize use

        PinSetup pins = kniticV2Pins();
        BrotherKH930 brother(pins, onChange, 0);

        void setup() {
          brother.start();
        }

        void onChange(void*) {
          //is called whenever the state of the knitting machine changes
          //  i.e. when the carriage is moved.
        }


References
----------
Based on the work by knitic.com. Technical information is from the
[Brother Service Manual](https://github.com/msiegenthaler/knitting/blob/master/Manuals/Technical/Service%20Manual%20KH930%20incl.%20KG89II.pdf).
{'fraction_non_alphanumeric': 0.12989840348330914, 'fraction_numerical': 0.033381712626995644, 'mean_word_length': 3.282608695652174, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5334942', 'n_tokens_mistral': 442, 'n_tokens_neox': 377, 'n_words': 136}