I have an Arduino running everything as it should. The code drives a stepper motor and follows input from a rotary encoder. The code id from the Buxtronics/GitHub site and seems to work very well.
However, I'm new to Arduino and the coding language. There is a line that I don't understand exactly what it does. It is in the setup and seems to be defining pins 2,3 of the Arduino as encoder input:
// Rotary encoder is wired with the common to ground and the two
// outputs to pins 2 and 3.
Rotary rotary = Rotary(2, 3);
enum PinAssignments {
encoderPinA = 2, // right
encoderPinB = 3, // left
clearButton = 5, // Encoder swtich
It isn't clear to me why the word rotary is repeated twice, once with a capital "R." I tried a number of searches on this, but I don't know what to search for, ie: structures, setup, defines, etc. Can someone tell me what I should be looking at?
Thanks
Dennis