Dim background to same level as foreground
This commit is contained in:
parent
9eabc733f4
commit
4e9d78c86a
2
mqtt.lua
2
mqtt.lua
@ -17,7 +17,7 @@ function handleSingleCommand(client, topic, data)
|
|||||||
else
|
else
|
||||||
red, green, blue = string.match(data, "(%d+),(%d+),(%d+)")
|
red, green, blue = string.match(data, "(%d+),(%d+),(%d+)")
|
||||||
end
|
end
|
||||||
colorBg=string.char(green, red, blue)
|
colorBg=string.char(green* briPercent / 100, red * briPercent / 100, blue * briPercent / 100)
|
||||||
print("Updated BG: " .. tostring(red) .. "," .. tostring(green) .. "," .. tostring(blue) )
|
print("Updated BG: " .. tostring(red) .. "," .. tostring(green) .. "," .. tostring(blue) )
|
||||||
if (displayTime~= nil) then
|
if (displayTime~= nil) then
|
||||||
displayTime()
|
displayTime()
|
||||||
|
Loading…
Reference in New Issue
Block a user