Skip to content

Commit

Permalink
hide leds from UI
Browse files Browse the repository at this point in the history
  • Loading branch information
rootiest committed Nov 20, 2022
1 parent 8b06b25 commit a80ec7a
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 68 deletions.
18 changes: 9 additions & 9 deletions dev/stealthburner.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ gcode:
_STOP_SB_EFFECTS
_SB_IDLE_EFFECTS
_SB_HEATING_EFFECTS
SET_LED LED=fysetc_mini12864 RED=1 GREEN=1 BLUE=1 INDEX=3 TRANSMIT=1
SET_LED LED=_mini12864_neopixel RED=1 GREEN=1 BLUE=1 INDEX=3 TRANSMIT=1
#_set_sb_leds_by_name leds="logo" color="off" transmit=0
_set_sb_leds_by_name leds="nozzle" color="standby" transmit=1

Expand All @@ -196,7 +196,7 @@ gcode:
_IDLE_LEDS
_STOP_SB_EFFECTS
_SB_BUSY_EFFECTS
SET_LED LED=fysetc_mini12864 RED=0 GREEN=0 BLUE=1 INDEX=3 TRANSMIT=1
SET_LED LED=_mini12864_neopixel RED=0 GREEN=0 BLUE=1 INDEX=3 TRANSMIT=1
#_set_sb_leds_by_name leds="logo" color="busy" transmit=0
set_nozzle_leds_on

Expand All @@ -205,7 +205,7 @@ gcode:
STOP_LED_EFFECTS
WLED_ON PRESET=2
SET_LED_EFFECT EFFECT=critical_error FADE=0
SET_LED LED=fysetc_mini12864 RED=1 GREEN=0 BLUE=0 TRANSMIT=1
SET_LED LED=_mini12864_neopixel RED=1 GREEN=0 BLUE=0 TRANSMIT=1

[gcode_macro status_heating]
gcode:
Expand All @@ -228,7 +228,7 @@ gcode:
SET_LED_EFFECT EFFECT=mini12864_printing STOP=1 FADETIME=0
SET_LED_EFFECT EFFECT=mini12864_idle STOP=1 FADETIME=0
SET_LED_EFFECT EFFECT=mini12864_heating FADETIME=1
SET_LED LED=fysetc_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=3 TRANSMIT=1
SET_LED LED=_mini12864_neopixel RED=1 GREEN=0 BLUE=0 INDEX=3 TRANSMIT=1
#_set_sb_leds_by_name leds="logo" color="heating" transmit=0
_set_sb_leds_by_name leds="nozzle" color="heating" transmit=1

Expand All @@ -242,7 +242,7 @@ gcode:
SET_LED_EFFECT EFFECT=mini12864_printing STOP=1 FADETIME=0
SET_LED_EFFECT EFFECT=mini12864_idle STOP=1 FADETIME=0
SET_LED_EFFECT EFFECT=mini12864_heating FADETIME=1
SET_LED LED=fysetc_mini12864 RED=1 GREEN=1 BLUE=0 INDEX=3 TRANSMIT=1
SET_LED LED=_mini12864_neopixel RED=1 GREEN=1 BLUE=0 INDEX=3 TRANSMIT=1
#_set_sb_leds_by_name leds="logo" color="heating" transmit=0
_set_sb_leds_by_name leds="nozzle" color="heating" transmit=1

Expand All @@ -256,7 +256,7 @@ gcode:
SET_LED_EFFECT EFFECT=mini12864_printing STOP=1 FADETIME=0
SET_LED_EFFECT EFFECT=mini12864_idle STOP=1 FADETIME=0
SET_LED_EFFECT EFFECT=mini12864_heating FADETIME=1
SET_LED LED=fysetc_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=3 TRANSMIT=1
SET_LED LED=_mini12864_neopixel RED=0 GREEN=1 BLUE=0 INDEX=3 TRANSMIT=1
#_set_sb_leds_by_name leds="logo" color="heating" transmit=0
_set_sb_leds_by_name leds="nozzle" color="heating" transmit=1

Expand All @@ -270,7 +270,7 @@ gcode:
SET_LED_EFFECT EFFECT=mini12864_printing STOP=1 FADETIME=0
SET_LED_EFFECT EFFECT=mini12864_idle STOP=1 FADETIME=0
SET_LED_EFFECT EFFECT=mini12864_heating FADETIME=1
SET_LED LED=fysetc_mini12864 RED=1 GREEN=0 BLUE=0 INDEX=3 TRANSMIT=1
SET_LED LED=_mini12864_neopixel RED=1 GREEN=0 BLUE=0 INDEX=3 TRANSMIT=1
#_set_sb_leds_by_name leds="logo" color="heating" transmit=0
_set_sb_leds_by_name leds="nozzle" color="heating" transmit=1

Expand All @@ -286,7 +286,7 @@ gcode:
gcode:
_STOP_SB_EFFECTS
_SB_HOMING_EFFECTS
SET_LED LED=fysetc_mini12864 RED=0 GREEN=1 BLUE=0 INDEX=3 TRANSMIT=1
SET_LED LED=_mini12864_neopixel RED=0 GREEN=1 BLUE=0 INDEX=3 TRANSMIT=1
#_set_sb_leds_by_name leds="logo" color="homing" transmit=0
set_nozzle_leds_on
WLED_ON PRESET=7
Expand Down Expand Up @@ -333,7 +333,7 @@ gcode:
gcode:
_STOP_SB_EFFECTS
_SB_PRINTING_EFFECTS
SET_LED LED=fysetc_mini12864 RED=1 GREEN=1 BLUE=1 INDEX=3 TRANSMIT=1
SET_LED LED=_mini12864_neopixel RED=1 GREEN=1 BLUE=1 INDEX=3 TRANSMIT=1
#_set_sb_leds_by_name leds="logo" color="printing" transmit=0
set_nozzle_leds_on
WLED_ON PRESET=1
Expand Down
2 changes: 1 addition & 1 deletion extras/old_machine/tool-board.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pin: PA1
heater: extruder
heater_temp: 60.0

[neopixel sb_leds]
[neopixel _sb_leds]
pin: PD3
chain_count: 10
color_order: GRB, GRB, GRB, GRB, GRB, GRB, GRB, GRB, GRBW, GRBW
Expand Down
8 changes: 4 additions & 4 deletions machine/mini12864.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ scale: 1

# name of neopixel should match name referenced in printer.cfg
# if there are other gcode_macros referencing the led display (e.g delayed gcode_macro)
[neopixel fysetc_mini12864]
[neopixel _mini12864_neopixel]
pin: menu: PA13
chain_count: 3
color_order: RGB
Expand All @@ -41,7 +41,7 @@ initial_BLUE: 1.0
autostart: false
frame_rate: 24
leds:
neopixel:fysetc_mini12864 (1-2)
neopixel:_mini12864_neopixel (1-2)
layers:
#breathing 3 1 top (0,0,.25)
linearfade 3 1 top (0,0,.25),(0.15,0.15,0.15),(0.1,0.1,0.1),(0,0,.15)
Expand All @@ -50,7 +50,7 @@ layers:
autostart: false
frame_rate: 24
leds:
neopixel:fysetc_mini12864 (1-2)
neopixel:_mini12864_neopixel (1-2)
layers:
#breathing 3 1 top (0,0,.25)
linearfade 3 1 top (.25,0,0),(0.15,0.10,0.10),(0.1,0.05,0.05),(.15,0,0)
Expand All @@ -59,6 +59,6 @@ layers:
autostart: false
frame_rate: 24
leds:
neopixel:fysetc_mini12864 (1-2)
neopixel:_mini12864_neopixel (1-2)
layers:
static 0 0 top (.10,.10,.10)
36 changes: 18 additions & 18 deletions machine/neopixel.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[neopixel py_neopixel]
[neopixel _py_neopixel]
pin: display_board: gpio12

[neopixel accel_neopixel]
[neopixel _accel_neopixel]
pin: bed_board: gpio12

#[neopixel pican_neopixel]
Expand All @@ -15,8 +15,8 @@ chain_count: 37
autostart: false
frame_rate: 24
leds:
neopixel:py_neopixel
neopixel:accel_neopixel
neopixel:_py_neopixel
neopixel:_accel_neopixel
#neopixel:pican_neopixel
layers:
breathing 5 1 top (0,.25,0)
Expand Down Expand Up @@ -47,10 +47,10 @@ layers:

[led_effect critical_error]
leds:
neopixel:py_neopixel
neopixel:accel_neopixel
neopixel:fysetc_mini12864 (1-2)
neopixel:sb_leds (1,2,3,4,5,6,7,8)
neopixel:_py_neopixel
neopixel:_accel_neopixel
neopixel:_mini12864_neopixel (1-2)
neopixel:_sb_leds (1,2,3,4,5,6,7,8)
#neopixel:pican_neopixel
layers:
strobe 1 1.5 add (1.0, 1.0, 1.0)
Expand All @@ -64,8 +64,8 @@ run_on_error: true
autostart: false
frame_rate: 24
leds:
neopixel:py_neopixel
neopixel:accel_neopixel
neopixel:_py_neopixel
neopixel:_accel_neopixel
#neopixel:pican_neopixel
layers:
breathing 10 1 top (0,0,.5)
Expand Down Expand Up @@ -118,15 +118,15 @@ gcode:
[gcode_macro _NEOPIXEL_LEDS_OFF]
gcode:
STOP_LED_EFFECTS
SET_LED LED=py_neopixel RED=0 GREEN=0 BLUE=0 WHITE=0
SET_LED LED=accel_neopixel RED=0 GREEN=0 BLUE=0 WHITE=0
SET_LED LED=_py_neopixel RED=0 GREEN=0 BLUE=0 WHITE=0
SET_LED LED=_accel_neopixel RED=0 GREEN=0 BLUE=0 WHITE=0
#SET_LED LED=pican_neopixel RED=0 GREEN=0 BLUE=0 WHITE=0
SET_LED LED=bed_lights RED=0 GREEN=0 BLUE=0 WHITE=0
SET_LED LED=enclosure_lights RED=0 GREEN=0 BLUE=0 WHITE=0
SET_PIN PIN=_qt_led VALUE=0
SET_PIN PIN=_accel_led VALUE=0
SET_LED LED=fysetc_mini12864 RED=0 GREEN=0 BLUE=0 INDEX=1 TRANSMIT=0
SET_LED LED=fysetc_mini12864 RED=0 GREEN=0 BLUE=0 INDEX=2 TRANSMIT=1
SET_LED LED=_mini12864_neopixel RED=0 GREEN=0 BLUE=0 INDEX=1 TRANSMIT=0
SET_LED LED=_mini12864_neopixel RED=0 GREEN=0 BLUE=0 INDEX=2 TRANSMIT=1

[gcode_macro _PRINT_LEDS]
gcode:
Expand All @@ -139,7 +139,7 @@ gcode:

[gcode_macro _IDLE_LEDS]
gcode:
STOP_LED_EFFECTS LEDS="neopixel:fysetc_mini12864 (1-2)"
STOP_LED_EFFECTS LEDS="neopixel:_mini12864_neopixel (1-2)"
_STOP_NEOPIXEL_EFFECTS
SET_LED_EFFECT EFFECT=mini12864_idle FADETIME=2.0
SET_LED_EFFECT EFFECT=panel_idle FADETIME=2.0
Expand All @@ -148,8 +148,8 @@ gcode:

[gcode_macro _STOP_NEOPIXEL_EFFECTS]
gcode:
STOP_LED_EFFECTS LEDS="neopixel:fysetc_mini12864 (1-2)"
STOP_LED_EFFECTS LEDS="neopixel:_mini12864_neopixel (1-2)"
STOP_LED_EFFECTS LEDS="neopixel:enclosure_lights"
STOP_LED_EFFECTS LEDS="neopixel:bed_lights"
STOP_LED_EFFECTS LEDS="neopixel:py_neopixel"
STOP_LED_EFFECTS LEDS="neopixel:accel_neopixel"
STOP_LED_EFFECTS LEDS="neopixel:_py_neopixel"
STOP_LED_EFFECTS LEDS="neopixel:_accel_neopixel"
Loading

0 comments on commit a80ec7a

Please sign in to comment.