Created
January 18, 2018 02:16
-
-
Save riccardolardi/26e8fdf1c0b172be8198b3353c031a85 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (let i = 1; i < artnetOptions.channels + 1; i++) { | |
console.log('status: switching on valve ' + i) | |
if (i > 1) artnet.set(i - 1, 0) | |
artnet.set(i, 255, function() { | |
// iterate | |
}) | |
} | |
artnet.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment