diff options
Diffstat (limited to 'System_Python/test_Encoder.py')
-rw-r--r-- | System_Python/test_Encoder.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/System_Python/test_Encoder.py b/System_Python/test_Encoder.py deleted file mode 100644 index b667cc1..0000000 --- a/System_Python/test_Encoder.py +++ /dev/null @@ -1,14 +0,0 @@ -from encoder import Encoder -import time - -# Decide which pins to hook up to on the Pi before running -clk_pin = 2 -cs_pin = 4 -data_pin = 3 - -e = Encoder(clk_pin, cs_pin, data_pin) -e.set_zero() - -while(1): - print(e.read_position('Degrees')) - time.sleep(0.001)
\ No newline at end of file |