diff --git a/image/sleepmode/bd_press.png b/image/sleepmode/bd_press.png
new file mode 100644
index 00000000..bab57120
Binary files /dev/null and b/image/sleepmode/bd_press.png differ
diff --git a/image/sleepmode/bn_press.png b/image/sleepmode/bn_press.png
new file mode 100644
index 00000000..4b41542f
Binary files /dev/null and b/image/sleepmode/bn_press.png differ
diff --git a/image/sleepmode/bp_press.png b/image/sleepmode/bp_press.png
new file mode 100644
index 00000000..db5161d3
Binary files /dev/null and b/image/sleepmode/bp_press.png differ
diff --git a/image/sleepmode/cancle_bn.png b/image/sleepmode/cancle_bn.png
new file mode 100644
index 00000000..d9254bb5
Binary files /dev/null and b/image/sleepmode/cancle_bn.png differ
diff --git a/image/sleepmode/cancle_bp.png b/image/sleepmode/cancle_bp.png
new file mode 100644
index 00000000..4c5e4c30
Binary files /dev/null and b/image/sleepmode/cancle_bp.png differ
diff --git a/image/sleepmode/close_bn.png b/image/sleepmode/close_bn.png
new file mode 100644
index 00000000..1ac092c6
Binary files /dev/null and b/image/sleepmode/close_bn.png differ
diff --git a/image/sleepmode/close_bp.png b/image/sleepmode/close_bp.png
new file mode 100644
index 00000000..17bee9d6
Binary files /dev/null and b/image/sleepmode/close_bp.png differ
diff --git a/image/sleepmode/ok_bn.png b/image/sleepmode/ok_bn.png
new file mode 100644
index 00000000..6ed5d8c8
Binary files /dev/null and b/image/sleepmode/ok_bn.png differ
diff --git a/image/sleepmode/ok_bp.png b/image/sleepmode/ok_bp.png
new file mode 100644
index 00000000..17bee9d6
Binary files /dev/null and b/image/sleepmode/ok_bp.png differ
diff --git a/image/sleepmode/opacitypopup.png b/image/sleepmode/opacitypopup.png
new file mode 100644
index 00000000..f31f61b9
Binary files /dev/null and b/image/sleepmode/opacitypopup.png differ
diff --git a/image/sleepmode/popup.png b/image/sleepmode/popup.png
new file mode 100644
index 00000000..2f51d647
Binary files /dev/null and b/image/sleepmode/popup.png differ
diff --git a/image/sleepmode/taobinlogo.png b/image/sleepmode/taobinlogo.png
new file mode 100644
index 00000000..79b0028d
Binary files /dev/null and b/image/sleepmode/taobinlogo.png differ
diff --git a/xml/page_board.xml b/xml/page_board.xml
index be39cc7a..544d13b1 100644
--- a/xml/page_board.xml
+++ b/xml/page_board.xml
@@ -2110,6 +2110,12 @@ PRICE "Reset" "-"
EndIf
+ If SleepModeXML = "ON" Then
+ Var BackgroundColor = "0x2C2F4E"
+ OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/sold_cup_count.xml"
+ Open "ROOT/taobin_project/xml/page_sleepmode.xml"
+ EndIf
+
Refresh
TimerReset
diff --git a/xml/page_show_error.lxml b/xml/page_show_error.lxml
index ccf9ebe9..92fcbe64 100644
--- a/xml/page_show_error.lxml
+++ b/xml/page_show_error.lxml
@@ -48,6 +48,8 @@
Var TimeOut = 0
Var textStep = 0
RootLayoutVisible 3 "show"
+
+ TRY "ROOT/taobin_project/xml/default_color_settings.ev"
1000
@@ -55,6 +57,13 @@
Var EmergencyStop = "-"
+ If SleepModeXML = "ON" Then
+ Var BackgroundColor = "0x2C2F4E"
+ OpenInst 1 "/mnt/sdcard/coffeevending/taobin_project/xml/sold_cup_count.xml"
+ Open "ROOT/taobin_project/xml/page_sleepmode.xml"
+ EndIf
+
+
If EmergencyStop = "true" Then
If DoorCupPosition = "bottom" Then
; It normal
diff --git a/xml/page_sleepmode.xml b/xml/page_sleepmode.xml
new file mode 100644
index 00000000..c93d362d
--- /dev/null
+++ b/xml/page_sleepmode.xml
@@ -0,0 +1,290 @@
+
+ 1080
+ 1312
+ SoundVolume
+ "0x2C2F4E"
+
+
+
+
+
+ 1000
+
+
+
+ If SleepModeXML = "OUT" Then
+ RootLayoutVisible 3 "show"
+ Open "ROOT/taobin_project/xml/page_board.xml"
+ Else
+ RootLayoutVisible 3 "show"
+ Open "ROOT/taobin_project/xml/page_sleepmode.xml"
+ EndIf
+
+
+ Refresh
+ TimerReset
+
+
+
+
+
+
+
+
+ 300
+ 180
+ "ROOT/taobin_project/image/sleepmode/taobinlogo.png"
+
+
+
+
+ 420
+ 700
+ 55
+ KanitMediumTTF
+ 0x9597A5
+ "Is sleeping"
+ wakeuptextstate
+
+
+
+
+ 400
+ 700
+ 55
+ KanitMediumTTF
+ 0x9597A5
+ "Out sleeping"
+ waitingstate
+
+
+
+
+
+
+
+
+ 310
+ 940
+ 65
+ KanitMediumTTF
+ 0xFFFFFF
+ 0xFFFFFF
+ "กดเพื่อปลุกเต่าบิน"
+ wakeuptextstate
+
+
+
+
+
+ 400
+ 950
+ 50
+ waitingstate
+ KanitMediumTTF
+ 0xFFFFFF
+ 0xFFFFFF
+ "กรุณารอสักครู่"
+
+
+
+
+ 0
+ 0
+ popupstate
+ "ROOT/taobin_project/image/sleepmode/opacitypopup.png"
+
+
+
+
+
+ 160
+ 250
+ popupstate
+ "ROOT/taobin_project/image/sleepmode/popup.png"
+
+
+
+
+
+
+ 280
+ 300
+ 70
+ popupstate
+ KanitBoldTTF
+ 0x513C2F
+ "ยืนยันการออกจาก"
+
+
+
+ 230
+ 380
+ 70
+ popupstate
+ KanitBoldTTF
+ 0x513C2F
+ "โหมดประหยัดพลังงาน"
+
+
+
+
+ 320
+ 560
+ 40
+ popupstate
+ KanitMediumTTF
+ 0x513C2F
+ "เครื่องดื่มจะพร้อมเสิร์ฟเวลา:"
+
+
+
+ 360
+ 640
+ 50
+ popupstate
+ KanitMediumTTF
+ 0x513C2F
+ "ร้อน:"
+
+
+
+
+ 470
+ 639
+ 50
+ popupstate
+ KanitBoldTTF
+ 0x513C2F
+ hotminsleep
+
+
+
+
+ 610
+ 640
+ 50
+ popupstate
+ KanitMediumTTF
+ 0x513C2F
+ hottimesleep
+
+
+
+
+
+ 360
+ 710
+ 50
+ popupstate
+ KanitMediumTTF
+ 0x513C2F
+ "เย็น:"
+
+
+
+
+
+
+ 470
+ 709
+ 50
+ popupstate
+ KanitBoldTTF
+ 0x513C2F
+ coldblendminsleep
+
+
+
+
+ 650
+ 709
+ 50
+ popupstate
+ KanitMediumTTF
+ 0x513C2F
+ coldblendtimesleep
+
+
+
+
+
+
+
+
+
+
+
+ 670
+ 845
+ 50
+ popupstate
+ KanitMediumTTF
+ 0xFFFFFF
+ "ปลุก"
+
+
+
+
+ 300
+ 845
+ 50
+ popupstate
+ KanitMediumTTF
+ 0xFFFFFF
+ "ยกเลิก"
+
+
+
+
\ No newline at end of file