96 lines
3.4 KiB
INI
96 lines
3.4 KiB
INI
[include menu.cfg]
|
|
|
|
[mcu menu]
|
|
serial: /dev/serial/by-id/usb-Klipper_stm32f042x6_300021001943534D34383120-if00
|
|
restart_method: command
|
|
|
|
[display]
|
|
lcd_type: uc1701
|
|
kill_pin: menu:PF0
|
|
spi_bus: spi1
|
|
cs_pin: menu:PA4
|
|
a0_pin: menu:PA2
|
|
rst_pin: menu:PA3
|
|
contrast: 63
|
|
encoder_pins: ^menu:PA0, ^menu:PA1
|
|
click_pin: ^!menu:PB1
|
|
|
|
[output_pin BEEPER_pin]
|
|
pin: menu:PF1
|
|
pwm: True
|
|
value: 0
|
|
shutdown_value: 0
|
|
cycle_time: 0.001
|
|
scale: 1000
|
|
|
|
[gcode_macro M300]
|
|
gcode: SET_PIN PIN=BEEPER_pin VALUE={1000}
|
|
G4 P{100}
|
|
SET_PIN PIN=BEEPER_pin VALUE=0
|
|
|
|
|
|
[neopixel fysetc_mini12864]
|
|
# To control Neopixel RGB in mini12864 display
|
|
pin: menu:PA13
|
|
chain_count: 3
|
|
color_order: RGB
|
|
initial_RED: 0
|
|
initial_GREEN: 0
|
|
initial_BLUE: 0.4
|
|
|
|
[delayed_gcode set_displaytemp_timer]
|
|
initial_duration: 1
|
|
gcode:
|
|
SET_LED_TEMPERATURES
|
|
UPDATE_DELAYED_GCODE ID=set_displaytemp_timer DURATION=5
|
|
|
|
[gcode_macro SET_LED_TEMPERATURES]
|
|
gcode:
|
|
# Make display red if any heater is above 50C
|
|
{% if printer.extruder.temperature >= 50 or printer.heater_bed.temperature >= 50 %}
|
|
SET_LED LED=fysetc_mini12864 RED=1.00 GREEN=0.00 BLUE=0.00 INDEX=1 SYNC=0
|
|
{% else %}
|
|
SET_LED LED=fysetc_mini12864 RED=0.00 GREEN=0.60 BLUE=0.60 INDEX=1 SYNC=0
|
|
{% endif %}
|
|
|
|
{% if printer.extruder.temperature >= 180 %}
|
|
SET_LED LED=fysetc_mini12864 RED=0.66 GREEN=0.50 BLUE=0.00 INDEX=2 SYNC=0
|
|
{% elif printer.extruder.temperature >= 160 %}
|
|
SET_LED LED=fysetc_mini12864 RED=0.66 GREEN=0.40 BLUE=0.00 INDEX=2 SYNC=0
|
|
{% elif printer.extruder.temperature >= 140 %}
|
|
SET_LED LED=fysetc_mini12864 RED=0.66 GREEN=0.30 BLUE=0.00 INDEX=2 SYNC=0
|
|
{% elif printer.extruder.temperature >= 120 %}
|
|
SET_LED LED=fysetc_mini12864 RED=0.66 GREEN=0.20 BLUE=0.00 INDEX=2 SYNC=0
|
|
{% elif printer.extruder.temperature >= 100 %}
|
|
SET_LED LED=fysetc_mini12864 RED=0.66 GREEN=0.10 BLUE=0.00 INDEX=2 SYNC=0
|
|
{% elif printer.extruder.temperature >= 80 %}
|
|
SET_LED LED=fysetc_mini12864 RED=0.66 GREEN=0.00 BLUE=0.00 INDEX=2 SYNC=0
|
|
{% elif printer.extruder.temperature >= 60 %}
|
|
SET_LED LED=fysetc_mini12864 RED=0.66 GREEN=0.00 BLUE=0.33 INDEX=2 SYNC=0
|
|
{% elif printer.extruder.temperature >= 50 %}
|
|
SET_LED LED=fysetc_mini12864 RED=0.33 GREEN=0.00 BLUE=0.66 INDEX=2 SYNC=0
|
|
{% else %}
|
|
SET_LED LED=fysetc_mini12864 RED=0.00 GREEN=0.00 BLUE=0.00 INDEX=2 SYNC=0
|
|
{% endif %}
|
|
|
|
{% if printer.heater_bed.temperature >= 100 %}
|
|
SET_LED LED=fysetc_mini12864 RED=0.66 GREEN=0.50 BLUE=0.00 INDEX=3 SYNC=0
|
|
{% elif printer.heater_bed.temperature >= 90 %}
|
|
SET_LED LED=fysetc_mini12864 RED=0.66 GREEN=0.40 BLUE=0.00 INDEX=3 SYNC=0
|
|
{% elif printer.heater_bed.temperature >= 80 %}
|
|
SET_LED LED=fysetc_mini12864 RED=0.66 GREEN=0.30 BLUE=0.00 INDEX=3 SYNC=0
|
|
{% elif printer.heater_bed.temperature >= 70 %}
|
|
SET_LED LED=fysetc_mini12864 RED=0.66 GREEN=0.20 BLUE=0.00 INDEX=3 SYNC=0
|
|
{% elif printer.heater_bed.temperature >= 60 %}
|
|
SET_LED LED=fysetc_mini12864 RED=0.66 GREEN=0.10 BLUE=0.00 INDEX=3 SYNC=0
|
|
{% elif printer.heater_bed.temperature >= 50 %}
|
|
SET_LED LED=fysetc_mini12864 RED=0.66 GREEN=0.00 BLUE=0.00 INDEX=3 SYNC=0
|
|
{% elif printer.heater_bed.temperature >= 40 %}
|
|
SET_LED LED=fysetc_mini12864 RED=0.66 GREEN=0.00 BLUE=0.33 INDEX=3 SYNC=0
|
|
{% else %}
|
|
SET_LED LED=fysetc_mini12864 RED=0.00 GREEN=0.00 BLUE=0.00 INDEX=3 SYNC=0
|
|
{% endif %}
|
|
|
|
[menu __main __octoprint]
|
|
type: disabled
|
|
|