Fysetc Hot Key Button - DISCO!!
Obliczymy ostateczną cenę na podstawie wybranego pliku. Sprawdzisz ją i zaakceptujesz przed płatnością.
Zapisane na tym urządzeniu.
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.
- Ocena
- 0 / 5
- Polubienia
- 15
- Pobrania
- 38
- Wydruki
- 0
- Wyświetlenia
- 532
- Oceny
- 0
Aktualizacja u źródła:
Informacje o modelu
- Źródło
- Printables
- Kategoria
- Voron Parts & Upgrades
- Licencja
- 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: httpaddress: "Your IP"initial_red: 0.5initial_green: 0.5initial_blue: 0.5chain_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: PA9chain_count: 8
Either in your printer.cfg or macros.cfg you need:
[led_effect disco]leds: neopixel:case_ledsautostart: falseframe_rate: 24layers: 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]# DISCOgcode: _status_button_busy BUTTON=1SET_LED_EFFECT EFFECT=disco _status_button_ready BUTTON=1
[gcode_button b1]pin: ^!hotkey: gpio2press_gcode: _BUTTON_B1