Metadata-Version: 2.1
Name: Encoder
Version: 1.0
Summary: Encoder library for Raspberry Pi for measuring quadrature encoded signals.
Home-page: https://github.com/mivallion/Encoder
Author: Viktor Sevastyanov
Author-email: mivallion@example.com
License: UNKNOWN
Description: # Raspberry Pi Rotary Encoder Library
        
        Encoder library for Raspberry Pi for measuring quadrature encoded signals.
        ### About
        Encoder class allows to work with rotary encoder which connected via two pin A and B (EN11 for example). Works only on interrupts because all RPi pins allow that. This library is a simple port of the Arduino Encoder library (https://github.com/PaulStoffregen/Encoder)
        
        ### Installation
        ```sh
        $ pip install Encoder
        ```
        
        ### Usage
        
        To use it, you need to connect pins A and B and GND of the rotary encoder to two pins and GND of the Raspberry Pi, for example 24 and 10. Then just use it:
        ```python
        from Encoder import Encoder
        
        enc = Encoder(24, 10)
        enc.read()
        ```
        
        You can use two or more rotary encoders:
        ```python
        from Encoder import Encoder
        
        enc_1 = Encoder(24, 10)
        enc_2 = Encoder(25, 9)
        ```
        
        ### Note
        If the encoder works in the wrong direction, for example, it reduces the position when turning clockwise, you just need to swap pins A and B in the code.
        
        License
        ----
        
        MIT
Keywords: raspberrypi,encoder,gpio
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX :: Linux
Description-Content-Type: text/markdown
