Giter Site home page Giter Site logo

Issue with macro about wled_klipper HOT 2 CLOSED

gliptopolis avatar gliptopolis commented on May 29, 2024
Issue with macro

from wled_klipper.

Comments (2)

airbornetrooper82573 avatar airbornetrooper82573 commented on May 29, 2024

With the help of discord and the Voron FB group, I got it all sorted. Your instructions don't state that the WLED_On is another macro that needs to be created as well. Here's what works for me:

#####################################################################
#	LED Control
#####################################################################

[gcode_macro WLED_ON]
description: Turn WLED strip on using optional preset and resets led colors
gcode:
  {% set strip = params.STRIP|default("chamber")|string %}
  {% set preset = params.PRESET|default(4)|int %}

  {action_call_remote_method("set_wled_state",
                             strip=strip,
                             state=True,
                             preset=preset)}

[gcode_macro heating_led]
gcode:
  WLED_ON STRIP=chamber PRESET=1

[gcode_macro mesh_led]
gcode:
  WLED_ON STRIP=chamber PRESET=2

[gcode_macro off_led]
gcode:
  WLED_ON STRIP=chamber PRESET=3

[gcode_macro on_led]
gcode:
  WLED_ON STRIP=chamber PRESET=4

[gcode_macro qgl_led]
gcode:
  WLED_ON STRIP=chamber PRESET=5

from wled_klipper.

Gliptopolis avatar Gliptopolis commented on May 29, 2024

Thanks for finding this @airbornetrooper82573

I had that macro, but somehow missed including it in the readme. It's there now.

from wled_klipper.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.