-- Wenn die Quelle "HDMI 1" gewählt ist,
-- dann schalte Display an
if source == "HDMI1" then
sendCommand("Display_ON")
else
sendCommand("Display_OFF")
end
-- Steuerung eines Projektors über HTTP
if PowerButton == 1 then
http.post(
"http://192.168.1.100/command",
"Power=On"
)
else
http.post(
"http://192.168.1.100/command",
"Power=Off"
)
end
-- Mikrofonstatus prüfen
if MicMute == true then
gpio.set(LED_RED, 1)
else
gpio.set(LED_RED, 0)
end