This file contains hidden or 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
/** | |
Hacked together from the minim tutorial examples | |
**/ | |
import ddf.minim.analysis.*; | |
import ddf.minim.*; | |
Minim minim; | |
//AudioPlayer jingle; | |
FFT fftLin; |
This file contains hidden or 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
/** | |
Hacked together from the minim tutorial examples | |
runs with simple analogue firmata on arduino | |
**/ | |
import ddf.minim.analysis.*; | |
import ddf.minim.*; | |
import cc.arduino.*; | |
import processing.serial.*; |
This file contains hidden or 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
int xPinOne = 3; | |
int laserPin = 4; | |
int xPinTwo = 5; | |
int yPinOne = 6; | |
int yPinTwo = 9; | |
int zPinOne = 10; | |
int zPinTwo = 11; |
This file contains hidden or 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
int delayone = 2; | |
int delaytwo = 1; | |
int delaythree = 1; | |
int delayfour = 1; | |
int xPinOne = 3; | |
int laserPin = 4; | |
int xPinTwo = 5; |
This file contains hidden or 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
//registers on ADE7753 | |
#define WAVEFORM 0x01 | |
#define AENERGY 0x02 | |
#define RAENERGY 0x03 | |
#define LAENERGY 0x04 | |
#define VAENERGY 0x05 | |
#define LVAENERGY 0x06 | |
#define LVARENERGY 0x07 | |
#define MODE 0x09 | |
#define IRQEN 0x0A |
This file contains hidden or 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 processing.serial.*; | |
import cc.arduino.*; | |
Arduino arduino; | |
int countstart = 0; | |
int servo1Pin = 9; // Control pin for servo motor | |
int servo2Pin = 10; // Control pin for servo motor | |
int servo3Pin = 11; // Control pin for servo motor | |
int armposn;// = 0; | |
int digitposn;// = 0; | |
//int penposn;//= 0; |
This file contains hidden or 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
//Based on an example by Tom Igoe | |
PrintWriter output; | |
import processing.serial.*; | |
import de.bezier.data.sql.*; | |
//import SQLibrary.*; // mysql database library | |
int xrnd = 0; | |
int yrnd = 0; | |
PFont fontA; | |
int xbig = 1000; | |
int ybig = 768; |
This file contains hidden or 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
#now fixed to use the latest twitter API as of Feb 2014. | |
#runs fine on SL4A r6 with Python 2.6.2 and Tweepy 2 for python 2.6 | |
import android | |
import tweepy | |
import time | |
droid=android.Android() | |
#droid.wakeLockAcquirePartial() |
This file contains hidden or 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
#witty things for your android phone to say whilst it's pretending to be a photo booth. | |
#run as a background script to avoid any thread clashes/multitasking issues with the main photo taking script | |
#written for python in SL4A | |
import android, time, random | |
runcontinuous = True | |
droid=android.Android() | |
dialogues = {0 : "Hello, I'm the robot photo booth! Please show me your QR codes and I will take your picture and tweet it back to you. Please put your QR code in front of the camera now", | |
1: "I can't see your QR code properly, is it upside down?", |
OlderNewer