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

    Trigger macro stopped working

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    2
    3
    151
    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.
    • MatixYoundefined
      MatixYo
      last edited by

      After update from I think 3.0 to 3.3 my code that toggled LEDs on button press stopped working.
      Here's my config.g responsible part:

      M950 J0 C"^e0stop" 								   ; E0 input with pull-up
      M581 P"^e0stop" T2 S0							   ; LED button
      

      Here's my trigger2.g

      if fans[2].requestedValue > 0.0
      	M106 P2 S0.0
      else
      	M106 P2 S1.0
      

      What should be changed?

      peter247undefined 1 Reply Last reply Reply Quote 0
      • peter247undefined
        peter247 @MatixYo
        last edited by peter247

        @matixyo I may be wrong , but the led on the end stops of the duet 2 are hardware.

        AND M581 P"^e0stop" T2 S0 , should that be M581 P0 ?

        Ender 5 plus linear rail and hemera powered by duet 2 wifi , CR10s pro v1 with bltouch mostly stock , BLV mgn Cube slowly being built powered by duet 3 mini 5+

        MatixYoundefined 1 Reply Last reply Reply Quote 1
        • MatixYoundefined
          MatixYo @peter247
          last edited by

          @peter247 Yeah, that's what had to be changed

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