Skip to content

Update printer.cfg - #4

Open
BrewNinja wants to merge 1 commit into
Sovol3d:mainfrom
BrewNinja:main
Open

Update printer.cfg#4
BrewNinja wants to merge 1 commit into
Sovol3d:mainfrom
BrewNinja:main

Conversation

@BrewNinja

Copy link
Copy Markdown

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
Copy Markdown
Author

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

@mon5termatt

mon5termatt commented May 24, 2024

Copy link
Copy Markdown

I WAS SO CONFUSED!

@mon5termatt

Copy link
Copy Markdown

@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
Copy Markdown

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