<commit_before>#AnalogMultiButton

AnalogMultiButton is an Arduino library to capture button presses on multiple buttons through a single analog pin. It provides a set of functions to detect when buttons are being held, pressed, released, pressed for a duration, released before or after a specific duration has elapsed, and also allows a button being held to repeatedly report a "press" on a timed interval for use with cursors or scrolling. The library also debounces each button press, it can also cope with different or irregular times between calling update(), and can be used with analog inputs that have an analogRead range other than 0-1023.

See the comments in AnalogMultiButton.h or the examples below for details.

While up to ~20 buttons may be connected at a time, please note that the circuit and this library are only capable of capturing one *button press* at a time. If you hold down two buttons at once, only one of them will register. It's a limitation of the circuit being used. If you need to capture multiple simultaneous button presses through a single analog input pin you will need to find another circuit and library.

##How to install
In the Arduino IDE, go to Sketch > Include libraries > Manage libraries, and search for AnalogMultiButton.
Or you can also just use the files directly from the src folder.

##How to use
This library allows you to detect presses and releases of different buttons using a single analog input pin. To set this up with your Arduino, connect resistors in the following pattern:

```<commit_msg>Added image<commit_after>#AnalogMultiButton

![AnalogMultiButton](http://damienclarke.me/content/2-code/4-analog-multi-button/thumbnail.jpg)

AnalogMultiButton is an Arduino library to capture button presses on multiple buttons through a single analog pin. It provides a set of functions to detect when buttons are being held, pressed, released, pressed for a duration, released before or after a specific duration has elapsed, and also allows a button being held to repeatedly report a "press" on a timed interval for use with cursors or scrolling. The library also debounces each button press, it can also cope with different or irregular times between calling update(), and can be used with analog inputs that have an analogRead range other than 0-1023.

#### One button at a time please...

While up to ~20 buttons may be connected at a time, please note that the circuit and this library are only capable of capturing one *button press* at a time. If you hold down two buttons at once, only one of them will register. It's a limitation of the circuit being used. If you need to capture multiple simultaneous button presses through a single analog input pin you will need to find another circuit and library.

##How to install
In the Arduino IDE, go to Sketch > Include libraries > Manage libraries, and search for AnalogMultiButton.
Or you can also just use the files directly from the src folder.

##How to use
This library allows you to detect presses and releases of different buttons using a single analog input pin. To set this up with your Arduino, connect resistors in the following pattern:

```
{'fraction_non_alphanumeric': 0.037025316455696206, 'fraction_numerical': 0.005063291139240506, 'mean_word_length': 4.614564831261101, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '4056893', 'n_tokens_mistral': 753, 'n_tokens_neox': 705, 'n_words': 505}