<commit_before># AMSpi
Python class for controlling Arduino Motor Shield L293D from Raspberry Pi (using RPi.GPIO)

### Requirements
- RPi.GPI, on Raspbian you can install it typing this command:
```
sudo aptitude install python3-rpi.gpio
```  

### Connecting Arduino Motor Shield L293D to Raspberry Pi
You can wire it up as I did. Just look at the colors :-]
![alt tag](http:/janlipovsky.cz/wiring.jpg "Wiring Motor Shield wit Raspberry Pi")

### Example
 For complex example please have a look to *example.py* source code.   
```python
from AMSpi import AMSpi

with AMSpi() as amspi:
    # Set PINs for controlling shift register (GPIO numbering)
    amspi.set_74HC595_pins(21, 20, 16)
    # Set PINs for controlling all 4 motors (GPIO numbering)
    amspi.set_L293D_pins(5, 6, 13, 19)
    # Run motors
    amspi.run_dc_motors([amspi.DC_Motor_1, amspi.DC_Motor_2, amspi.DC_Motor_3, amspi.DC_Motor_4])
```

### License
This piece of code is licensed under The MIT License.
<commit_msg>Use .png instead of .jpg, alt text instead of alt tag<commit_after># AMSpi
Python class for controlling Arduino Motor Shield L293D from Raspberry Pi (using RPi.GPIO)

### Requirements
- RPi.GPI, on Raspbian you can install it typing this command:
```
sudo aptitude install python3-rpi.gpio
```  

### Connecting Arduino Motor Shield L293D to Raspberry Pi
You can wire it up as I did. Just look at the colors :-]
![alt text](http:/janlipovsky.cz/wiring.png "Wiring Motor Shield wit Raspberry Pi")

### Example
 For complex example please have a look to *example.py* source code.   
```python
from AMSpi import AMSpi

with AMSpi() as amspi:
    # Set PINs for controlling shift register (GPIO numbering)
    amspi.set_74HC595_pins(21, 20, 16)
    # Set PINs for controlling all 4 motors (GPIO numbering)
    amspi.set_L293D_pins(5, 6, 13, 19)
    # Run motors
    amspi.run_dc_motors([amspi.DC_Motor_1, amspi.DC_Motor_2, amspi.DC_Motor_3, amspi.DC_Motor_4])
```

### License
This piece of code is licensed under The MIT License.

{'fraction_non_alphanumeric': 0.09190263288623944, 'fraction_numerical': 0.031793343268753105, 'mean_word_length': 4.150895140664962, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5573993', 'n_tokens_mistral': 772, 'n_tokens_neox': 671, 'n_words': 252}