Skip to content

Instantly share code, notes, and snippets.

Avatar

Aaron P aaronparsekian

View GitHub Profile
View four color
int y1 = A0;
int x2 = A1;
int y2 = A2;
int x1 = A3;
int ledPin0 = 2;
int ledPin1 = 3;
int ledPin2 = 4;
int ledPin3 = 5;
View pong
var serial;
var speedx = 1;
var speedy = 1;
var x = 10;
var y = 0;
var gravity = 0.1;
var pos = 0;
var len = 40;
var score = 0;
View four touch leds
int y1 = A0;
int x2 = A1;
int y2 = A2;
int x1 = A3;
int ledPin0 = 2;
int ledPin1 = 3;
int ledPin2 = 4;
int ledPin3 = 5;
View sketch.js
function setup() {
createCanvas(800, 800);
background(0);
frameRate(2400);
}
var m = false;
function draw() {
View sketch.js
function setup() {
createCanvas(800,800);
background(0);
frameRate(1800);
}
var x,a,m,on=false,z,q=-200,o=10,b=20,s;
function draw() {
View sketch.js
function setup() {
createCanvas(800,800);
background(0);
frameRate(1800);
}
var x,a,m,on=false,z,q=-200,o=10,b=20,s;
function draw() {