miblooming / JZ-TS24-2

Get it
https://cxdiy.taobao.com/
91 stars 37 forks source link

Backlight control. #16

Closed DrOnJD closed 5 years ago

DrOnJD commented 5 years ago

Hey. How can I add a button that will control the backlighting of my printer? That is, on the first click, execute the command “M355 S1 P255”, and on the next click execute “M355 S0 P255"?

miblooming commented 5 years ago

Use uieditor, please try it.

JZ-TS35 https://github.com/miblooming/JZ-TS24-2/tree/master/JZHelper_ui_editor/JZ-TS35WIFI___(3.5)/UIEditor

JZ-TS24 https://github.com/miblooming/JZ-TS24-2/tree/master/JZHelper_ui_editor/JZ-TS24-3____(2.4%262.8)

DrOnJD commented 5 years ago

I watched this program before writing. There it is not possible to do this if I’ve done it right. Only one gcode can be assigned to one element, that is, either turning the backlight on or off. Is it possible to do something on one button in turn, either on or off?

miblooming commented 5 years ago

Yes, the editor does not support Switch Button. I'll add it to my develop list.

DrOnJD commented 5 years ago

Thank you very much.

miblooming commented 5 years ago

https://github.com/miblooming/JZ-TS24-2/tree/master/JZHelper_ui_editor/JZ-TS35WIFI___(3.5%264.0)

switch_button