This finally works. 🙂
Lights up 4 red leds when above 40C, green <=40
Bed and T0 heater are set to 4 leds each.
Make sure each if and elif M150 conmmend has a beginning space
; dameon.g
; Adafruit #1426 8 led neopixel
G4 P500 ; 500ms delay
if heat.heaters[0].current > 40 ; temp
M150 R255 P10 S4 F1 ; set first 4 red
elif heat.heaters[0].current <= 40
M150 U255 P10 S4 F1 ; set first 4 green
if heat.heaters[1].current > 40 ; temp
M150 R255 P10 S4 F0 ; set second 4 red, and done
elif heat.heaters[1].current <= 40
M150 U255 P10 S4 F0 ; set second 4 green and done
This is in my config.g to make sure the NEOPixels are off
M150 R0 U0 B0 P5 S8 F0 ; shut off neopixel