|
|
|
@ -61,7 +61,7 @@ refresh_func = { while { true } {
|
|
|
|
|
if(~arduino == 1, {
|
|
|
|
|
// set min and max Brightness between 0 and 1 depending on wattage of light
|
|
|
|
|
// it is best to keep the min slightly higher than 0 to keep the light from turning completely off
|
|
|
|
|
{|i| var minBrightness = 0.15, maxBrightness = 0.85;
|
|
|
|
|
{|i| var minBrightness = 0.15, maxBrightness = 0.65;
|
|
|
|
|
arduino_port.put(i);
|
|
|
|
|
arduino_port.put(253);
|
|
|
|
|
arduino_port.put(((((brightness[i] * (maxBrightness - minBrightness)) + minBrightness) - 1).abs * 256).asInteger);
|
|
|
|
|