3
$\begingroup$

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?

$\endgroup$
1
$\begingroup$

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:

  1. Static color change - use same method as you are setting to white
  2. Intercept firmware temperature reading function and push that value to led module
| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.