How to execute firmware command from gcode I wrote a command in Marlin firmware which changes Neopixel color based on extruder temperature.

In my start G-code for I set the color to white. How to execute my above command from the end G-code so that the the color changes per request?
As your color is based on the temp reading, as far as I know, there is no G-code to read a temperature and push that value to another command.
The way you can do it is:


Static color change - use same method as you are setting to white
Intercept firmware temperature reading function and push that value to led module