diff options
author | Matt Strapp <matt@mattstrapp.net> | 2022-01-27 15:29:31 -0600 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2022-01-27 15:29:31 -0600 |
commit | 772cff67fd3b491d015ba89601a0a098c69edd69 (patch) | |
tree | 7c1f6b3110bb45913bc0b895c0754d5cefda52e0 /System/test_Encoder.py | |
parent | Add Uploads to the gitignore. (diff) | |
download | ee4511w-772cff67fd3b491d015ba89601a0a098c69edd69.tar ee4511w-772cff67fd3b491d015ba89601a0a098c69edd69.tar.gz ee4511w-772cff67fd3b491d015ba89601a0a098c69edd69.tar.bz2 ee4511w-772cff67fd3b491d015ba89601a0a098c69edd69.tar.lz ee4511w-772cff67fd3b491d015ba89601a0a098c69edd69.tar.xz ee4511w-772cff67fd3b491d015ba89601a0a098c69edd69.tar.zst ee4511w-772cff67fd3b491d015ba89601a0a098c69edd69.zip |
Add code that was not committed before
Diffstat (limited to '')
-rw-r--r--[-rwxr-xr-x] | System/test_Encoder.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/System/test_Encoder.py b/System/test_Encoder.py index d0b7ef8..bb6e3e4 100755..100644 --- a/System/test_Encoder.py +++ b/System/test_Encoder.py @@ -3,9 +3,9 @@ import time import RPi.GPIO as GPIO # Decide which pins to hook up to on the Pi before running -clk_pin = 2 -cs_pin = 4 -data_pin = 3 +clk_pin = 3 +cs_pin = 23 +data_pin = 2 e = Encoder(clk_pin, cs_pin, data_pin) e.set_zero() @@ -19,3 +19,5 @@ except: finally: # Perform GPIO cleanup. Things may get weird otherwise... GPIO.cleanup() + + |