Skip to content

Conversation

@BrewNinja
Copy link

Fixed the "main_led" to actually dim and work as expected

Fixed the "main_led" to actually dim and work as expected
@BrewNinja
Copy link
Author

The original value made it so the LED's blinked instead of dimmed.

@mon5termatt
Copy link

mon5termatt commented May 24, 2024

I WAS SO CONFUSED!

@mon5termatt
Copy link

@BrewNinja

The menu config can also be easily changed.

#[menu __main __tune __exhaustfanspeed]
#type: input
#name: ExhaustFan:{'%3d' % (menu.input*100)}%
#input: {printer["fan_generic fan3"].speed}
#input_min: 0
#input_max: 1
#input_step: 0.01
#gcode:
#    M106 P3 S{'%d' % (menu.input*255)}

#[menu __main __tune __ledonoff]
#type: input
#name: Led: {'ON ' if menu.input else 'OFF'}
#input: {printer['output_pin main_led'].value}
#input_min: 0
#input_max: 1
#input_step: 1
#gcode:
#    SET_PIN PIN=main_led VALUE={1 if menu.input else 0}

[menu __main __tune __ledonoff]
type: input
enable: {'output_pin main_led' in printer}
name: Dim:        {'%3d%s' % (menu.input*100,'%') if menu.input else 'OFF'}
input: {printer['output_pin main_led'].value}
input_min: 0.0
input_max: 1.0
input_step: 0.01
gcode: SET_PIN PIN=main_led VALUE={menu.input}

#[menu __main __control2 __exhaustfanspeed]
#type: input
#name: ExhaustFan:{'%3d' % (menu.input*100)}%
#input: {printer["fan_generic fan3"].speed}
#input_min: 0
#input_max: 1
#input_step: 0.01
#gcode:
#    M106 P3 S{'%d' % (menu.input*255)}

#[menu __main __control2 __ledonoff]
#type: input
#name: Led: {'ON ' if menu.input else 'OFF'}
#input: {printer['output_pin main_led'].value}
#input_min: 0
#input_max: 1
#input_step: 1
#gcode:
#    SET_PIN PIN=main_led VALUE={1 if menu.input else 0}

[menu __main __control2 __ledonoff]
type: input
enable: {'output_pin main_led' in printer}
name: Dim:        {'%3d%s' % (menu.input*100,'%') if menu.input else 'OFF'}
input: {printer['output_pin main_led'].value}
input_min: 0.0
input_max: 1.0
input_step: 0.01
gcode: SET_PIN PIN=main_led VALUE={menu.input}

@kampfwuffi
Copy link

menu config

Where can i find the menu config? Is it in Klipper menu somewhere or SSH?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants