|
Emakefun Encoder Motor Arduino Lib 1.1.1
|
Example: Connect the encoded motor to the specified positions E0 as described in the example program. After the program runs successfully, it will print out whether kAPhaseLeads or kBPhaseLeads should be used based on the actual phase relationship between the A and B phases of the encoder during forward rotation of the motor, helping the user determine the value that should be set for the phase_relation parameter when creating an EncoderMotor object. More...
Go to the source code of this file.
Functions | |
| void | setup () |
| void | loop () |
Example: Connect the encoded motor to the specified positions E0 as described in the example program. After the program runs successfully, it will print out whether kAPhaseLeads or kBPhaseLeads should be used based on the actual phase relationship between the A and B phases of the encoder during forward rotation of the motor, helping the user determine the value that should be set for the phase_relation parameter when creating an EncoderMotor object.
Definition in file detect_phase_relation.ino.
| void loop | ( | ) |
Definition at line 72 of file detect_phase_relation.ino.
| void setup | ( | ) |
Definition at line 63 of file detect_phase_relation.ino.