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

    Start Address for Led Set Command

    Scheduled Pinned Locked Moved
    Firmware wishlist
    leds neopixel
    2
    2
    349
    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.
    • niocio01undefined
      niocio01
      last edited by

      Using the M150 command one can set a group of LED's to the same color. Chaining multiple M150 commands with the F1 Parameter together one can color each pixel separately.

      If I want to change the settings of a group (or single) LED further down the Address line, one has to write all the LED's before it again.
      It would be nice to have an additional parameter to set the starting address (LED id) of a M150 Command.

      I Use 4 Neopixels on each tool on a Toolchanger (with some additional ones on the frame) and want to change the Led's according to the tools Status. With the current system that is pretty annoying.

      Is there already such a feature planed? If no, can we please add this to the Wishlist?

      dc42undefined 1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators @niocio01
        last edited by

        @niocio01 unfortunately, Neopixel strings don't support setting just some colours. So you need to send the commands for all the LEDs that you want to change. You can either write a macro that computes and writes the correct colours for all 4 tools and call that every time the status of a tool changes, or you could use global variables to record the correct colour for each tool so that you don't need to recompute it each time.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

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