from encoder import Encoder import time # Decide which pins to hook up to on the Pi before running clk_pin = 2 cs_pin = 14 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)