Led mount Dayspring RatRig VCore 3 LED by Vector3d
We calculate the final price from your selected file. You review and accept it before payment.
Saved on this device.
Led mount Dayspring RatRig VCore3 LED by Vector3d
- Rating
- 5 / 5
- Likes
- 32
- Downloads
- 97
- Makes
- 0
- Views
- 1,857
- Reviews
- 1
Updated at source:
Model information
- Source
- Printables
- Category
- Other Printer Parts & Upgrades
- License
- Creative Commons — Attribution — Noncommercial
Support Dayspring RatRig LED by Vector3d
BOM:
4x cap head screw M6x12
4x Tnut m6 3030
4x heatinsert M3
4x M3x6/8
you can buy it here: Dayspring RatRig LED - Vector 3D

Download:
- led.cfg
- klipperscreen.conf
printer.cfg
#############################################################################################################
### USER OVERRIDES
### Anything custom you want to add, or RatOS configuration you want to override, do it here.
#############################################################################################################LED
[include led.cfg]
led.cfg
(thanks to: Vector 3D and ticolaugs for the macros)
[output_pin caselight]
pin: PA3 # your control board pin number
pwm: true # enable pwm control for the led brightness
shutdown_value: 0 # brightness on printer error
value: 0 # value when printer turns on
cycle_time: 0.0025 # fast-ish cycle time
[gcode_macro led_on]
description: turn the LED on
gcode:
SET_PIN PIN=caselight VALUE=0.1 # adjust value for designed brightness
[gcode_macro led_off]
description: turn the LED off
gcode:
SET_PIN PIN=caselight VALUE=0 # set value to 0
[gcode_macro toggle_led]
description: Toggle the LED On/Off
gcode:
{% if printer['output_pin caselight'].value == 0 %}
SET_PIN PIN=caselight VALUE=0.1 # adjust value for designed brightness
{% else %}
SET_PIN PIN=caselight VALUE=0
{%endif%}
[gcode_macro Toggle_Led2]
description: Toggle the LED On/Off
variable_state: 'off'
gcode:
{% if params.POWER is defined %}
{% set POWER = params.POWER|default(0.0)|float %}
SET_PIN PIN=caselight VALUE={POWER}
{% else %}
{% if printer['output_pin caselight'].value == 0 %}
SET_PIN PIN=caselight VALUE=0.1 # adjust value for designed
{% else %}
SET_PIN PIN=caselight VALUE=0
{% endif %}
{% endif %}
If you want to add a button to turn the LEDs on and off from the main klipperscreen page edit or create:
klipperscreen.conf
[menu __main led]
name: {{ gettext('LED') }}
icon: light
method: printer.gcode.script
params: {"script":"toggle_led"}

If you want to add a button to turn LEDs on and off from the menu: "more" edit or create: klipperscreen.conf
[menu __main more toggle_led]
name: {{ gettext('LED') }}
icon: light
method: printer.gcode.script
params: {"script":"toggle_led"}