1 / 2
Fysetc Hot Key Button - DISCO!! — image 1
1 / 2

Fysetc Hot Key Button - DISCO!!

Order a print of this model

We calculate the final price from your selected file. You review and accept it before payment.

Saved on this device.

With a press of a button (On the Fysetc Hot Key Board) in your Voron skirt, you can start a DISCO party in your printer.

Rating
0 / 5
Likes
15
Downloads
38
Makes
0
Views
532
Reviews
0

Updated at source:

Model information

License
Creative Commons — Attribution — Share Alike

My entry to the Fysetc hot key button competition. More info in the Fysetc Discord Server - https://discord.gg/TxYd7ZSdjw

This model is the button top for the Fysetc hot key board (affiliate link) - https://s.click.aliexpress.com/e/_DBYnQyB

You can use the below gcode macro's if you have WLED setup (Create a Disco preset in the #1 slot) or if you have LED Effects setup.

WLED:

In your moonraker.conf place the below code (Adjust as needed):

[wled lights]
type: http
address: "Your IP"
initial_red: 0.5
initial_green: 0.5
initial_blue: 0.5
chain_count: "Your Chain Count"

Then use the below gcode in a new button macro:

 {% set strip = params.STRIP|default('lights')|string %}
 {% set preset = params.PRESET|default('1')|int %}

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

 

LED Effects - https://github.com/julianschill/klipper-led_effect

In your printer.cfg, you need the following (adjust as needed):

[neopixel case_leds]
pin: PA9
chain_count: 8

 

Either in your printer.cfg or macros.cfg you need:

[led_effect disco]
leds:
   neopixel:case_leds
autostart:               false
frame_rate:              24
layers:
   gradient  0.3  1 add (0.3, 0.0, 0.0),(0.0, 0.3, 0.0),(0.0, 0.0, 0.3)

Then use the below gcode in a new button macro:

SET_LED_EFFECT EFFECT=disco

 

Example button macro for the Fysetc Hotkey:

[mcu hotkey]
serial: /dev/serial/by-id/"YOUR ID"
restart_method: command

[gcode_macro _BUTTON_B1]
# DISCO
gcode:
 _status_button_busy BUTTON=1
SET_LED_EFFECT EFFECT=disco
 _status_button_ready BUTTON=1

[gcode_button b1]
pin: ^!hotkey: gpio2
press_gcode: _BUTTON_B1

Tags