Skip to content

Instantly share code, notes, and snippets.

@riccardolardi
Created January 18, 2018 02:16
Show Gist options
  • Save riccardolardi/26e8fdf1c0b172be8198b3353c031a85 to your computer and use it in GitHub Desktop.
Save riccardolardi/26e8fdf1c0b172be8198b3353c031a85 to your computer and use it in GitHub Desktop.
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