Skip to content

Instantly share code, notes, and snippets.

@tenaciousRas
Last active December 17, 2015 12:59
Show Gist options
  • Save tenaciousRas/5614216 to your computer and use it in GitHub Desktop.
Save tenaciousRas/5614216 to your computer and use it in GitHub Desktop.
custom gcode handler for M777 - echo back ADC reading from extruder TEMP_0_PIN. paste in Marlin.cpp near line 1321 (in revision ?) - just before the 'case 999' statement.
case 777: // print thermistor ADC
{
SERIAL_ECHO_START;
SERIAL_ECHO("ADC ");
SERIAL_ECHOLN(analogRead(TEMP_0_PIN));
}
break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment