Skip to content

Instantly share code, notes, and snippets.

View arvydas's full-sized avatar

Arvydas Juskevicius arvydas

View GitHub Profile
@arvydas
arvydas / gist:7413d77fe40278be0910
Created November 16, 2014 21:22
Test BlinkStick Pro with NeoPixels
using System;
using BlinkStickDotNet;
using System.Threading;
namespace IndexedColors
{
class MainClass
{
public static void Main (string[] args)
{
@arvydas
arvydas / pro_rainbow.py
Created April 19, 2014 08:13
pro_rainbow.py
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):
//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
@arvydas
arvydas / scanner.java
Created July 8, 2013 20:38
Single pixel scanner with BlinkStick and webcam using Processing language
import blinkstick.*;
import processing.video.*;
Capture cam;
int width = 640;
int height = 480;
int rectSize = 20;
@arvydas
arvydas / gist:5425514
Created April 20, 2013 10:24
Sample code to connect to BlinkStick.com and control the BlinkStick remotely using Node.js.
// 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