fix ledv4 not activate

This commit is contained in:
Pakin 2025-07-15 15:51:20 +07:00
parent 21dbd367e6
commit 9be94753d3
7 changed files with 65 additions and 6 deletions

View file

@ -853,6 +853,7 @@
If FrontDoorVersionInt > 19999 Then
TRY "ROOT/taobin_project/xml/process/ledv4_process.ev"
LEDv2 GEN4_POS On 100 20 0 LED_TIMES LED_DIM_TIMES
EndIf
If BREW_CNT = 0 Then

View file

@ -310,6 +310,7 @@
Var ShowCountDownBrewing = CountDownBrewing
If FrontDoorVersionInt > 19999 Then
TRY "ROOT/taobin_project/xml/process/ledv4_process.ev"
LEDv2 GEN4_POS On 100 20 0 LED_TIMES LED_DIM_TIMES
EndIf
If CountDownBrewing = 0 Then

View file

@ -932,7 +932,7 @@
Var ShowCountDownBrewing = CountDownBrewing
If FrontDoorVersionInt > 19999 Then
LEDv2 LED_POS On 100 20 0 LED_TIMES LED_DIM_TIMES
LEDv2 GEN4_POS On 100 20 0 LED_TIMES LED_DIM_TIMES
EndIf
DEBUGVAR EnableDoubleCupNoError

View file

@ -398,7 +398,7 @@
If FrontDoorVersionInt > 19999 Then
TRY "ROOT/taobin_project/xml/process/ledv4_process.ev"
LEDv2 LED_POS On 100 20 0 LED_TIMES LED_DIM_TIMES
LEDv2 GEN4_POS On 100 20 0 LED_TIMES LED_DIM_TIMES
EndIf

View file

@ -35,6 +35,13 @@
Var bn_off = TestColorImageDir + "bn_off.png"
Var bp_off = TestColorImageDir + "bp_off.png"
Var bn_10s = TestColorImageDir + "bn_10s.png"
Var bp_10s = TestColorImageDir + "bp_10s.png"
Var bn_20s = TestColorImageDir + "bn_20s.png"
Var bp_20s = TestColorImageDir + "bp_20s.png"
Var bn_60s = TestColorImageDir + "bn_60s.png"
Var bp_60s = TestColorImageDir + "bp_60s.png"
Var bn_toggle_off = TestColorImageDir + "btn_toggle_off.png"
Var bn_toggle_on = TestColorImageDir + "btn_toggle_on.png"
@ -181,7 +188,7 @@
Var LEDv4Toggle[41] = "Enable"
Var LEDv4Toggle[42] = "Enable"
Var PlayTestLEDv4 = "false"
</EventOpen>
@ -189,7 +196,36 @@
<EventTimeout>
Var Timeout = Timeout + 1
If Timeout > 60 Then
DEBUGVAR CountDownBrewing
DEBUGVAR LEDv4PlaylistStatus
DEBUGVAR PlayTestLEDv4
DEBUGVAR LEDv4CountDownValue
DEBUGVAR GEN4_POS
If CountDownBrewing > 0 Then
Var CountDownBrewing = CountDownBrewing - 1
Else
If PlayTestLEDv4 = "true" Then
LEDv4Playlist "reset" "-" "-"
EndIf
Var PlayTestLEDv4 = "false"
EndIf
If PlayTestLEDv4 = "true" Then
; check-playlist-state
If LEDv4PlaylistStatus = "Ready" Then
LEDv4Playlist "play" "-" "-"
EndIf
If LEDv4PlaylistStatus = "Running" Then
LEDv2 GEN4_POS On 100 20 0 LED_TIMES LED_DIM_TIMES
EndIf
EndIf
If Timeout > 120 Then
Open "ROOT/taobin_project/xml/vending_info.xml"
EndIf
@ -2241,4 +2277,26 @@ Var Timeout = 0
</EventClick>
</Button>
<Button>
<X> LEDv4HorizontalX1 </X>
<Y> 700 </Y>
<Filename> bn_10s </Filename>
<FilenamePress> bp_10s </FilenamePress>
<EventClick>
LEDv2 LedV4Top Off 0 0 0 1 0
LEDv2 LedV4Mid Off 0 0 0 1 0
Var CountDownBrewing = 10
Var Timeout = 0
LEDv4Playlist "new" "XX-XX-XX-TEST" CountDownBrewing
Var PlayTestLEDv4 = "true"
SAVELOG "TestLEDAnime60s"
</EventClick>
</Button>
</Page>

View file

@ -17,7 +17,7 @@ If FrontDoorVersionInt > 19999 Then
Else
;
If LEDv4PlaylistStatus = "Running" Then
LEDv2 GEN4_POS On 100 20 0 LED_TIMES LED_DIM_TIMES
Else
LEDv4Playlist "pause" "processEv" "_notReady"
EndIf

View file

@ -9,5 +9,4 @@ If FrontDoorVersionInt > 19999 Then
SAVELOG "LEDv4.PageThankYou"
Var
EndIf