It depends on what you are trying to accomplish. If you want to use the encoder to position an axis, you probably need to be working down in the Stepper.cpp module. But if you just want an independent report of where an axis is positioned, you can do that pretty high up, maybe as an M command in Marlin_main.cpp.
↧