Skip to content

Instantly share code, notes, and snippets.

Avatar

Arvydas Juskevicius arvydas

View GitHub Profile
@arvydas
arvydas / gist:7413d77fe40278be0910
Created Nov 16, 2014
Test BlinkStick Pro with NeoPixels
View gist:7413d77fe40278be0910
using System;
using BlinkStickDotNet;
using System.Threading;
namespace IndexedColors
{
class MainClass
{
public static void Main (string[] args)
{
View 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):
View blinkstick-standalone-server.js
//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 Jul 8, 2013
Single pixel scanner with BlinkStick and webcam using Processing language
View scanner.java
import blinkstick.*;
import processing.video.*;
Capture cam;
int width = 640;
int height = 480;
int rectSize = 20;
@arvydas
arvydas / gist:5425514
Created Apr 20, 2013
Sample code to connect to BlinkStick.com and control the BlinkStick remotely using Node.js.
View gist:5425514
// 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
You can’t perform that action at this time.