Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Your Neopixel action

    Scheduled Pinned Locked Moved
    Third-party add-ons
    2
    3
    364
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Proschi3Dundefined
      Proschi3D
      last edited by

      I would be interested to know how and for what purposes you use your LEDs.

      Love my Duet 3 Mini.
      https://www.instagram.com/proschi3d
      https://youtube.com/@proschi3d
      https://www.proschi3d.de

      Stephen6309undefined 1 Reply Last reply Reply Quote 0
      • Stephen6309undefined
        Stephen6309 @Proschi3D
        last edited by

        @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
        
        
        Proschi3Dundefined 1 Reply Last reply Reply Quote 1
        • Proschi3Dundefined
          Proschi3D @Stephen6309
          last edited by Proschi3D

          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.

          Love my Duet 3 Mini.
          https://www.instagram.com/proschi3d
          https://youtube.com/@proschi3d
          https://www.proschi3d.de

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA