#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/DeviceCore/DevLamp.h>
◆ LIGHT_EFFECT
| Enumerator |
|---|
| LIGHT_EFFECT_ON | |
| LIGHT_EFFECT_OFF | |
| LIGHT_EFFECT_FLASHING | |
| LIGHT_EFFECT_UNKOWN | |
16 {
21 };
@ LIGHT_EFFECT_OFF
Definition DevLamp.h:18
@ LIGHT_EFFECT_UNKOWN
Definition DevLamp.h:20
@ LIGHT_EFFECT_ON
Definition DevLamp.h:17
@ LIGHT_EFFECT_FLASHING
Definition DevLamp.h:19
◆ DevLamp()
MachineObject * m_owner
Definition DevLamp.h:39
References m_owner.
◆ command_set_chamber_light()
| int Slic3r::DevLamp::command_set_chamber_light |
( |
LIGHT_EFFECT | effect, |
|
|
int | on_time = 500, |
|
|
int | off_time = 500, |
|
|
int | loops = 1, |
|
|
int | interval = 1000 ) |
|
private |
38{
40 j["system"]["command"] = "ledctrl";
41 j["system"]["led_node"] = "chamber_light";
44 j["system"]["led_on_time"] = on_time;
45 j["system"]["led_off_time"] = off_time;
46 j["system"]["loop_times"] = loops;
47 j["system"]["interval_time"] = interval;
48 return m_owner->publish_json(j);
49}
static int m_sequence_id
Definition DeviceManager.hpp:197
nlohmann::json json
Definition AssembleList.cpp:42
static std::string _light_effect_str(DevLamp::LIGHT_EFFECT effect)
Definition DevLampCtrl.cpp:14
References Slic3r::_light_effect_str(), m_owner, and Slic3r::MachineObject::m_sequence_id.
Referenced by CtrlSetChamberLight().
◆ command_set_chamber_light2()
| int Slic3r::DevLamp::command_set_chamber_light2 |
( |
LIGHT_EFFECT | effect, |
|
|
int | on_time = 500, |
|
|
int | off_time = 500, |
|
|
int | loops = 1, |
|
|
int | interval = 1000 ) |
|
private |
◆ CtrlSetChamberLight()
| void Slic3r::DevLamp::CtrlSetChamberLight |
( |
LIGHT_EFFECT | effect | ) |
|
31{
32
35}
int command_set_chamber_light(LIGHT_EFFECT effect, int on_time=500, int off_time=500, int loops=1, int interval=1000)
Definition DevLampCtrl.cpp:37
int command_set_chamber_light2(LIGHT_EFFECT effect, int on_time=500, int off_time=500, int loops=1, int interval=1000)
Definition DevLampCtrl.cpp:51
References command_set_chamber_light(), and command_set_chamber_light2().
◆ HasLampCloseRecheck()
| bool Slic3r::DevLamp::HasLampCloseRecheck |
( |
| ) |
const |
|
inline |
◆ IsChamberLightOn()
| bool Slic3r::DevLamp::IsChamberLightOn |
( |
| ) |
const |
|
inline |
◆ SetChamberLight() [1/2]
| void Slic3r::DevLamp::SetChamberLight |
( |
const std::string & | status | ) |
|
◆ SetChamberLight() [2/2]
| void Slic3r::DevLamp::SetChamberLight |
( |
LIGHT_EFFECT | effect | ) |
|
|
inline |
◆ SetLampCloseRecheck()
| void Slic3r::DevLamp::SetLampCloseRecheck |
( |
bool | enable | ) |
|
|
inline |
◆ m_chamber_light
◆ m_lamp_close_recheck
| bool Slic3r::DevLamp::m_lamp_close_recheck = false |
|
private |
◆ m_owner
The documentation for this class was generated from the following files:
- /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/DeviceCore/DevLamp.h
- /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/DeviceCore/DevLamp.cpp
- /home/runner/work/OrcaSlicer/OrcaSlicer/src/slic3r/GUI/DeviceCore/DevLampCtrl.cpp