This commit is contained in:
kong 2022-02-08 22:58:19 +07:00
parent b2d0600a0a
commit 387221ec42
23 changed files with 16 additions and 4 deletions

View file

@ -222,10 +222,21 @@
Var buttonRemoveCup = "Invisible"
LED LedDoorCup 1 255 255 255 255
Var led_new = "0"
READ_FILE "/mnt/sdcard/coffeevending/led_new" led_new
DEBUGVAR led_new
If led_new = "1" Then
LED LedDoorLid Off 255 255 255 255
LEDv2 LedDoorCupV2 7 255 194 166 20 6
LEDv2 LedDoorLidV2 Off 255 255 255 20 6
Else
LED LedDoorCup 1 255 255 255 255
LED LedDoorLid Off 255 255 255 255
EndIf
SPLIT AdvertiseProfile "/" 1 AdvertiseProfile1