diff --git a/image/feature/test_color/Blue.png b/image/feature/test_color/Blue.png new file mode 100644 index 00000000..c3c85c73 Binary files /dev/null and b/image/feature/test_color/Blue.png differ diff --git a/image/feature/test_color/BlueP.png b/image/feature/test_color/BlueP.png new file mode 100644 index 00000000..a5120fa8 Binary files /dev/null and b/image/feature/test_color/BlueP.png differ diff --git a/image/feature/test_color/Green.png b/image/feature/test_color/Green.png new file mode 100644 index 00000000..5e2bdf3c Binary files /dev/null and b/image/feature/test_color/Green.png differ diff --git a/image/feature/test_color/GreenP.png b/image/feature/test_color/GreenP.png new file mode 100644 index 00000000..2799b764 Binary files /dev/null and b/image/feature/test_color/GreenP.png differ diff --git a/image/feature/test_color/Indigo.png b/image/feature/test_color/Indigo.png new file mode 100644 index 00000000..4fd9473a Binary files /dev/null and b/image/feature/test_color/Indigo.png differ diff --git a/image/feature/test_color/IndigoP.png b/image/feature/test_color/IndigoP.png new file mode 100644 index 00000000..70ece46d Binary files /dev/null and b/image/feature/test_color/IndigoP.png differ diff --git a/image/feature/test_color/Orange.png b/image/feature/test_color/Orange.png new file mode 100644 index 00000000..036debcb Binary files /dev/null and b/image/feature/test_color/Orange.png differ diff --git a/image/feature/test_color/OrangeP.png b/image/feature/test_color/OrangeP.png new file mode 100644 index 00000000..dc11a623 Binary files /dev/null and b/image/feature/test_color/OrangeP.png differ diff --git a/image/feature/test_color/Red.png b/image/feature/test_color/Red.png new file mode 100644 index 00000000..840472d8 Binary files /dev/null and b/image/feature/test_color/Red.png differ diff --git a/image/feature/test_color/RedP.png b/image/feature/test_color/RedP.png new file mode 100644 index 00000000..ec40a5ff Binary files /dev/null and b/image/feature/test_color/RedP.png differ diff --git a/image/feature/test_color/Violet.png b/image/feature/test_color/Violet.png new file mode 100644 index 00000000..cbddcb67 Binary files /dev/null and b/image/feature/test_color/Violet.png differ diff --git a/image/feature/test_color/VioletP.png b/image/feature/test_color/VioletP.png new file mode 100644 index 00000000..37cde567 Binary files /dev/null and b/image/feature/test_color/VioletP.png differ diff --git a/image/feature/test_color/White.png b/image/feature/test_color/White.png new file mode 100644 index 00000000..d3d0c589 Binary files /dev/null and b/image/feature/test_color/White.png differ diff --git a/image/feature/test_color/WhiteP.png b/image/feature/test_color/WhiteP.png new file mode 100644 index 00000000..54be3aff Binary files /dev/null and b/image/feature/test_color/WhiteP.png differ diff --git a/image/feature/test_color/Yellow.png b/image/feature/test_color/Yellow.png new file mode 100644 index 00000000..0ddbefb9 Binary files /dev/null and b/image/feature/test_color/Yellow.png differ diff --git a/image/feature/test_color/YellowP.png b/image/feature/test_color/YellowP.png new file mode 100644 index 00000000..eca1a30a Binary files /dev/null and b/image/feature/test_color/YellowP.png differ diff --git a/image/feature/test_color/bn_off.png b/image/feature/test_color/bn_off.png new file mode 100644 index 00000000..ee17bbbb Binary files /dev/null and b/image/feature/test_color/bn_off.png differ diff --git a/image/feature/test_color/bn_on.png b/image/feature/test_color/bn_on.png new file mode 100644 index 00000000..2cf435de Binary files /dev/null and b/image/feature/test_color/bn_on.png differ diff --git a/image/feature/test_color/bp_off.png b/image/feature/test_color/bp_off.png new file mode 100644 index 00000000..c3d7e6ab Binary files /dev/null and b/image/feature/test_color/bp_off.png differ diff --git a/image/feature/test_color/bp_on.png b/image/feature/test_color/bp_on.png new file mode 100644 index 00000000..70000f65 Binary files /dev/null and b/image/feature/test_color/bp_on.png differ diff --git a/xml/page_test_color.xml b/xml/page_test_color.xml new file mode 100644 index 00000000..e9983dba --- /dev/null +++ b/xml/page_test_color.xml @@ -0,0 +1,269 @@ + + 1080 + 1312 + SoundVolume + "0xeae6e1" + + + + + Var TestColorImageDir = "ROOT/taobin_project/image/feature/test_color/" + + Var RedImg = TestColorImageDir + "Red.png" + Var OrangeImg = TestColorImageDir + "Orange.png" + Var YellowImg = TestColorImageDir + "Yellow.png" + Var GreenImg = TestColorImageDir + "Green.png" + Var BlueImg = TestColorImageDir + "Blue.png" + Var IndigoImg = TestColorImageDir + "Indigo.png" + Var VioletImg = TestColorImageDir + "Violet.png" + Var WhiteImg = TestColorImageDir + "White.png" + + Var RedPressedImg = TestColorImageDir + "RedP.png" + Var OrangePressedImg = TestColorImageDir + "OrangeP.png" + Var YellowPressedImg = TestColorImageDir + "YellowP.png" + Var GreenPressedImg = TestColorImageDir + "GreenP.png" + Var BluePressedImg = TestColorImageDir + "BlueP.png" + Var IndigoPressedImg = TestColorImageDir + "IndigoP.png" + Var VioletPressedImg = TestColorImageDir + "VioletP.png" + Var WhitePressedImg = TestColorImageDir + "WhiteP.png" + + Var bn_on = TestColorImageDir + "bn_on.png" + Var bp_on = TestColorImageDir + "bp_on.png" + Var bn_off = TestColorImageDir + "bn_off.png" + Var bp_off = TestColorImageDir + "bp_off.png" + + SAVELOG "Test Color RGB" + Var Timeout = 0 + + ; 255 0 0 + Var RedColorValue = "0xFF0000" + ; 255 127 0 + Var OrangeColorValue = "0xFF7F00" + ; 255 255 0 + Var YellowColorValue = "0xFFFF00" + ; 0 255 0 + Var GreenColorValue = "0x00FF00" + ; 0 0 255 + Var BlueColorValue = "0x0000FF" + ; 75 0 130 + Var IndigoColorValue = "0x4B0082" + ; 145 0 211 + Var VioletColorValue = "0x9400D3" + ; 255 255 255 + Var WhiteColorValue = "0xFFFFFF" + + Var CurrentColor = "" + + Var TestColorRow1 = 100 + Var TestColorRow2 = 300 + Var TestColorRow3 = 500 + Var TestColorRow4 = 700 + + + Var TestColorCol1X = 100 + Var TestColorCol2X = 400 + Var TestColorCol3X = 600 + + + + + +1000 + + Var Timeout = Timeout + 1 + + If Timeout > 60 Then + Open "ROOT/taobin_project/xml/vending_info.xml" + EndIf + + Refresh + TimerReset + + + + + + + +; 3-columns +; col-1-4colors +; col-2-4colors +; col-3-btn-on-off + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/xml/vending_info.xml b/xml/vending_info.xml index 601a4d95..8ea99459 100644 --- a/xml/vending_info.xml +++ b/xml/vending_info.xml @@ -1037,7 +1037,24 @@ +;Color + + info2_startX + info_15Y + "ROOT/taobin_project/image/tab_1.png" + + Open "/mnt/sdcard/coffeevending/taobin_project/xml/page_test_color.xml" + + + + info2_text_startX + info_text_15Y + 30 + fontType1 + 0x000000 + "Test RGB" +