Skip to content

To add to this, is there a way to set the LED brightness of the actual neopixels? #15

Answered by digitalninja-ro
scubieman asked this question in Q&A
Discussion options

You must be logged in to vote

Use this

[display_template led_print_percent_progress]
param_led_num:  0
param_led_total: 1
text:
    {% set ratio = printer.virtual_sdcard.progress %}
    {% set led_ratio   = param_led_num|float / param_led_total %}
    {% if ratio > led_ratio %}
        0.0, 0.1, 0.0, 0.0
    {% else %}
        0.0, 0.0, 0.0, 0.0
    {% endif %}

If stil is too bright play with line 0.0, 0.1, 0.0, 0.0 and try something lower for the second values, ex 0.0, 0.05, 0.0, 0.0

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by digitalninja-ro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants