aboutsummaryrefslogtreecommitdiffstats
path: root/System_Python/test_Encoder.py
diff options
context:
space:
mode:
Diffstat (limited to 'System_Python/test_Encoder.py')
-rw-r--r--System_Python/test_Encoder.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/System_Python/test_Encoder.py b/System_Python/test_Encoder.py
index 08804fa..b667cc1 100644
--- a/System_Python/test_Encoder.py
+++ b/System_Python/test_Encoder.py
@@ -7,8 +7,8 @@ cs_pin = 4
data_pin = 3
e = Encoder(clk_pin, cs_pin, data_pin)
-e.setZero()
+e.set_zero()
while(1):
- print(e.readPosition('Degrees'))
+ print(e.read_position('Degrees'))
time.sleep(0.001) \ No newline at end of file