M117 calls lcd_setstatus(parser.string_arg); This puts what ever you want on the last line of the display.
so all you need to do is add something like the above to the main loop in Marlin_main.cpp and pass it the analog port
eg just before the idle() change it to
Nb this is just hack.. if the controlling software sends a M117 it will over write this, till the next loop
and the code should have checks, to make sure you have a lcd defined and such things...
Also I have no idea how much of an impact this will have on the controller, could make it crawl and be unusable.
so all you need to do is add something like the above to the main loop in Marlin_main.cpp and pass it the analog port
eg just before the idle() change it to
lcd_setstatus(analogRead(ANALOG_PIN_YOU_WANT_TO_READ)); idle();
Nb this is just hack.. if the controlling software sends a M117 it will over write this, till the next loop
and the code should have checks, to make sure you have a lcd defined and such things...
Also I have no idea how much of an impact this will have on the controller, could make it crawl and be unusable.