Your Neopixel action
-
I would be interested to know how and for what purposes you use your LEDs.
-
@Proschi78 I used to show if the hotend and bed is above 40C in daemon.g. I use a 8 led adafruit neopixel.
; dameon.g while global.RunDaemon ; set to true in config.g G4 P500 ; 500ms delay if heat.heaters[1].current > 40 ; temp M150 R255 P10 S4 F1 ; set right 4 red, and done elif heat.heaters[1].current <= 40 M150 U255 P10 S4 F1 ; set right 4 green and done if heat.heaters[0].current > 40 ; temp M150 R255 P10 S4 F0 ; set left 4 red elif heat.heaters[0].current <= 40 M150 U255 P10 S4 F0 ; set left 4 green
-
I have the following code in start.g to visualize that the print has started.
I am using two Adafruit 8np for this.M291 P"Start.g wird ausgeführt" S0 M98 P"/Macros/SUB/CheckDoor" ;Door open or closed M98 P"/Macros/LED/rot blau blinken" M561 M106 P3 S0 G4 S1 M106 P3 S25 G4 S1 M106 P3 S0 G4 S1 M98 P"/Macros/LED/grün" M290 R0 S0 M106 P3 S25 ;dimme LED for IR Probe M98 P"/Macros/LED/rot blau blinken" M98 P"/Macros/SUB/Preheat" ;Preheat for Loaded Filament if !move.axes[0].homed || !move.axes[1].homed || !move.axes[2].homed M150 R0 U0 B0 Y0 G28 G28 Z0 M98 P"/Macros/Buildplate" ;Load Hightmap for Buildplate and Filament M98 P"config_probe.g"
M150 R255 S16 G4 P100 M150 Y0 S16 G4 P100 M150 R255 S16 G4 P100 M150 Y0 S16 G4 P100 M150 R255 S16 M150 Y0 S16 G4 P100 M150 B255 S16 G4 P100 M150 Y0 S16 G4 P100 M150 B255 S16 G4 P100 M150 Y0 S16 G4 P100 M150 R255 S16 G4 P100 M150 Y0 S16 G4 P100 M150 R255 S16
I also use the LED to visualize when the door is opened - 5 seconds of red when it's opened and 5 seconds of green when it's closed again.