Plot Something - ME 405 Term Project
|
This class implements a encoder driver for an ME405 kit. More...
Public Member Functions | |
def | __init__ (self, in1pin, in2pin, timer) |
Creates a encoder driver by initializing encoder pins. More... | |
def | read (self) |
Reads the encoder position and returns the values. More... | |
def | zero (self) |
Sets the encoder reading to zero. | |
This class implements a encoder driver for an ME405 kit.
def encoder_agena_chiu.EncoderDriver.__init__ | ( | self, | |
in1pin, | |||
in2pin, | |||
timer | |||
) |
Creates a encoder driver by initializing encoder pins.
in1pin | Pin 1 to read the encoder. |
in2pin | Pin 2 to read the encoder. |
timer | Timer to use for encoder channels. |
def encoder_agena_chiu.EncoderDriver.read | ( | self | ) |
Reads the encoder position and returns the values.