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
using System; | |
using BlinkStickDotNet; | |
using System.Threading; | |
namespace IndexedColors | |
{ | |
class MainClass | |
{ | |
public static void Main (string[] args) | |
{ |
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
import time | |
import math | |
import colorsys | |
from blinkstick_pro import BlinkStickPro | |
class Main(BlinkStickPro): | |
def init_rainbow(self, intensiveness): | |
for y in range(0, self.rows): |
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
//npm install connect faye | |
var connect = require("connect"); | |
var http = require('http'); | |
var url = require('url'); | |
var faye = require('faye'); | |
var bayeux = new faye.NodeAdapter({mount: '/faye', timeout: 45}); | |
//HTTP server for testing, not necessary for final implementation |
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
import blinkstick.*; | |
import processing.video.*; | |
Capture cam; | |
int width = 640; | |
int height = 480; | |
int rectSize = 20; |
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
// Prerequisites: | |
// | |
// npm install blinkstick | |
// npm install faye | |
// | |
// Run this script: | |
// | |
// node connect.js access_code | |
// | |
// The access_code for the registered device is available in the device details |