Skip to content

Commit e127ab7

Browse files
committed
Added Standby Comands
1 parent bc283bd commit e127ab7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

classes/PCom.h

+15
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,25 @@ class PCom
2626

2727
public:
2828

29+
void turnOn()
30+
{
31+
Logger::debug("Projector - Turn On (Out of Standby)");
32+
this->sendCommandBytes(ModeSetReset, 0x1C);
33+
delay(3000);
34+
}
35+
36+
void turnOff()
37+
{
38+
Logger::debug("Projector - Turn Off (Go in Standby)");
39+
this->sendCommandBytes(ModeSetReset, 0x1E);
40+
delay(2000);
41+
}
42+
2943
void resetSystem()
3044
{
3145
Logger::debug("Projector - Reset System");
3246
this->sendCommandBytes(ModeDirect, 0x2C);
47+
delay(5000);
3348
}
3449

3550
void slideForward()

0 commit comments

Comments
 (0)