Drew Fustini
b2a6be54a1
force Encoder period to be an integer #299
2018-12-19 13:31:34 -06:00
David Planella
f12715b277
Finished documenting GPIO
2017-12-02 18:19:00 +01:00
David Planella
6e9ea9245d
Minor documentation and configuration improvements
2017-12-02 16:27:48 +01:00
David Planella
47aa372a5b
Made kernel version check to happen only if running on a beaglebone. The readthedocs builders that import the Encoder module have an old 3.3 kernel and the autodoc build fails
2017-12-02 14:07:22 +01:00
David Planella
32e63c992d
Added docstrings using Google syntax and Sphinx support to generate the API documentation for the Encoder and PWM modules for now.
2017-12-02 14:07:22 +01:00
David Planella
a27cb61de1
Encoder: fix frequency getter
...
This change fixes the following:
- Correct calculation of the frequency from period on the property getter
- Cast the string returned from sysfs to int to perform the calculation
- Fix the period variable for logging and debug properties
2017-11-30 23:18:31 +01:00
David Planella
6909243cb5
Encoder: use items() instead of iteritems() to be Python 3 compatible
2017-11-30 22:31:06 +01:00
David Planella
d1eb617c68
Encoder: switched sysfs to be a relative import compatible with Python 2 and 3
2017-11-30 22:28:35 +01:00
David Planella
c7e5c94165
Encoder: convert get/set methods to properties, update apidoc strings
2017-11-28 12:10:57 +01:00
David Planella
92bd6110f2
Merge pull request #2 from adafruit/master
...
Sync from upstream
2017-11-28 10:48:12 +01:00
David Planella
2d54d001eb
Encoder: corrected kernel check logic
2017-11-25 19:59:41 +01:00
David Planella
1fdedc59e1
Encoder: use sysfs to write QEP attributes
2017-11-24 14:32:21 +01:00
David Planella
f8c730ee59
Encoder: do kernel check, PEP8 cleanup
...
- Added a check for kernels >= 4.4
- Cleaned up formatting for the module to be PEP8-compliant
2017-11-24 12:02:45 +01:00
David Planella
9dc57bf4da
Encoder: initialize only the given channel
2017-11-24 02:11:54 +01:00
David Planella
6f19946a07
Encoder: remove unused logging code
2017-11-17 03:42:46 +01:00
David Planella
082bfff556
Add logging support, turn off unconditional debug output
2017-11-17 03:29:05 +01:00
David Planella
df87be6010
Removed QEP instructions from Encoder module
2017-11-16 11:18:39 +01:00
Drew Fustini
538e564ad9
Fix print syntax to avoid python3 errors
2017-08-23 22:20:46 +00:00
Drew Fustini
bdd3ed493e
run config-pin to set pin mux for qep
2017-06-10 04:03:24 +00:00
Drew Fustini
c418cdae9a
document howo to enable all the eqep pins
2017-05-11 09:44:15 +00:00
Drew Fustini
c6b314c7e5
return position from getPosition()
2017-04-24 06:22:25 +00:00
Drew Fustini
790deb2021
read from eqep position file
2017-04-24 06:15:18 +00:00
Drew Fustini
0b4bf35ae1
add test for rotary encoder
2017-04-23 05:38:27 +00:00
Drew Fustini
cc5edb2d29
Adapt code from PyBBIO.RotaryEncoder
...
Add code to use as a basis for our QEP module from:
graycatlabs/PyBBIO/bbio/libraries/RotaryEncoder/rotary_encoder.py
2017-04-23 05:20:51 +00:00
Drew Fustini
db114ac8c0
Add code to Encoder.QEP from PyBBIO.RotaryEncoder
...
Add code to use as a basis for our QEP module from:
graycatlabs/PyBBIO/bbio/libraries/RotaryEncoder/rotary_encoder.py
2017-04-20 09:44:21 +00:00
Drew Fustini
341ceb7382
Add skeleton for Encoder module to read eQEP
...
related to feature request in issue #122
2017-04-20 09:27:10 +00:00