bigtreetech / bigtreetech/Nebula

gcode_macro NEOPIXEL_COLOR

Open
#1 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
23
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Add the "gcode_macro NEOPIXEL_COLOR" block, as an example .

**[gcode_macro NEOPIXEL_COLOR]**

gcode:

{% set bed_temp = printer['heater_bed'].temperature %}

{% set progress = printer['gcode'].print_progress %}

{% if bed_temp > 60 %}

SET_NEOPIXEL NEBULA_NEOPIXEL RED=1.0 GREEN=0.0 BLUE=0.0

{% else %}

{% set r = (progress * 255) / 100 %}

{% set g = (progress * 255) / 100 %}

{% set b = 255 - (progress * 255) / 100 %}

{% set red = r / 255 %}

{% set green = g / 255 %}

{% set blue = b / 255 %}

SET_NEOPIXEL NEBULA_NEOPIXEL RED={red} GREEN={green} BLUE={blue}

{% endif %}

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the issue body and identify where example configuration blocks are stored; no file or test is named. Confirm the intended example location and add the complete NEOPIXEL_COLOR macro shown in the issue, then verify that the example is present and valid.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.