forked from CreatBot/CreatBotKlipperScreen
* feature: add leds panel * Various refactors and improvements * lint fixes * led: use more columns for the selector * leds: name in the title * mainsail presets * change sliders to horizontal to avoid visual bug, simplify defaults * led: add a color preview and simplify methods to fix some issues * simplify presets move all the logic to the panel * led: change presets from names to previews * preview label shows color, add vertical mode * led: colored previews as rectangles instead of circles --------- Co-authored-by: alfrix <alfredomonclus@gmail.com>
This commit is contained in:
@@ -39,3 +39,11 @@ class KlippyGcodes:
|
||||
@staticmethod
|
||||
def bed_mesh_save(profile):
|
||||
return f"BED_MESH_PROFILE SAVE='{profile}'"
|
||||
|
||||
@staticmethod
|
||||
def set_led_color(led, color):
|
||||
return (
|
||||
f'SET_LED LED="{led}" '
|
||||
f'RED={color[0]} GREEN={color[1]} BLUE={color[2]} WHITE={color[3]} '
|
||||
f'SYNC=0 TRANSMIT=1'
|
||||
)
|
||||
|
Reference in New Issue
Block a user