File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 22
33This module enables access to the Beaglebone Black enhanced Quadrature Encoder Pulse (eQEP) modules: eQEP0, eQEP1 and eQEP2/eQEP2b.
44
5+ ## Usage
6+
7+ On a recent Beaglebone Debian image, access to the eQEP0 and eQEP2 channels should work out of the box:
8+
9+ ``` python
10+ import Adafruit_BBIO.Encoder as Encoder
11+
12+ '''
13+ Each channel can be accessed and initialized using its corresponding
14+ channel name constants:
15+
16+ Encoder.eQEP0
17+ Encoder.eQEP1 # Pins only available when video is disabled
18+ Encoder.eQEP2
19+ Encoder.eQEP2b # Pins only available when video is disabled
20+ '''
21+
22+ # Instantiate the class to access channel eQEP2, and only initialize
23+ # that channel
24+ myEncoder = Encoder.RotaryEncoder(Encoder.eQEP2)
25+ ```
26+
27+ If you need to use further channels, read on the prerequisites in the following section.
28+
529## Prerequisites
630
731These instructions are based on:
You can’t perform that action at this time.
0 commit comments