Skip to content

Instantly share code, notes, and snippets.

@andrewhaskin
andrewhaskin / Globalgram_Processing_Code.pde
Created December 16, 2011 16:20
Here is the code for Globalgram using Processing and Instagram API. It searches Instagram for the latest postings on different search criteria.
import com.francisli.processing.http.*;
import processing.serial.*;
Serial myPort; // The serial port
int value = 0;
float oldValue;
PFont InstagramFont;
@andrewhaskin
andrewhaskin / Globalgram_Arduino_Code.ino
Created December 16, 2011 16:10
Arduino Code for a Rotary Switch and a Button used for Globalgram
// RotarySwitch.pde -- test out a rotary switch (not a rotary encoder)
// Tod E. Kurt, http://todbot.com/blog/
////4-position rotary switch
const int firstRotaryPin = 3;
const int lastRotaryPin = 7;
int button = 9; ////button input
int input1 = LOW;
import com.francisli.processing.http.*;
PFont InstagramFont;
PImage backgroundimg;
PImage userphoto;
PImage profilepicture;
String username;
String tag;
String[] tagStrings;