81
13.7.3
Example Script03:
Messages can be configured for practical uses. The following
script
displays a "NO INTERNET" message
that flashes when the Internet (WAN) connection is lost. It has also been written in such a way that we
can use the "blink" function multiple times within the same
script
. In addition, it loads
preset1
, which has
local audio content stored and set to play (PLAY) when loaded, in order to ensure continuity of the music
program.
Figure 72
require "ePLAYER1"
ep = ePLAYER1.new()
function blink(text1, text2, nTimes)
for blink=1,nTimes ,1 do
ep.LCD_print2({line1=text1, line2=text2, center="true"})
sleep(0.5)
ep.LCD_print2({line1=" ", line2=" ", center="true"})
sleep(0.5)
end
end
blink("NO", "Internet", 5)
ep.PLAYER_open({preset=1})
Содержание PLAYER ONE
Страница 1: ...50 0418 0102 PLAYER ONE EN PLAYER ONE AUDIO PLAYER Local and Streaming Audio Player USER MANUAL ...
Страница 28: ...28 PLAYER ONE PLAYER ZERO Web GUI v1 00r0 AUDIO PLAYERS Streaming and local media audio player USER MANUAL ...
Страница 54: ...54 Figure 32 The action of loading and playing the specified stream is configured Figure 33 ...
Страница 59: ...59 Figure 41 Finally the message located on the USB device usb will be announced with priority Figure 42 ...
Страница 85: ...85 Figure 76 accessing the network configuration Figure 77 editing network parameters ...
Страница 90: ...90 Figure 83 editing WiFi password ...
Страница 93: ...93 Enter the password of the WiFi network you want to connect to and press the SUBMIT button Figure 86 ...
Страница 95: ...95 A wireless connection to your WiFi network will be established Figure 88 ...
Страница 112: ...112 In this example su hotels Figura 107 ...
Страница 114: ...114 Figura 109 Copy from here To here ...
Страница 118: ...118 THIRD PARTY CONTROL PROTOCOL PLAYER ONE JSON Commands USUER MANUAL ...
Страница 153: ...HOW TO IDENTIFY INTERNET RADIO URL STREAMS 153 ...