Skip to content

Instantly share code, notes, and snippets.

View catatonicTrepidation's full-sized avatar

Andrew Young catatonicTrepidation

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
public void behindPolka(int xRadius, int yRadius, int xPeriod, int yPeriod, int[] color, int gradiant)
{
double i = 1.0;
Pixel[][] pixels = getPixels2D();
//int[][] colors = {{10,0,0},{0,10,0},{0,0,10}};
double xDistance = 0;
double yDistance = 0;
//int finalEdgeRow = 0;
int finalEdgeCol = -1;
boolean paintable = true;
@catatonicTrepidation
catatonicTrepidation / MouseArduino
Created July 23, 2015 21:56 — forked from KaiaKitten/MouseArduino
Arduino Uno Mouse
const int LEFT_BUTTON =2; //Input pin for the left button
const int MIDDLE_BUTTON =3; //Input pin for the middle button
const int RIGHT_BUTTON =4; //Input pin for the right button
const int X_AXIS =0; //Joystick x-axis analog pin
const int Y_AXIS =1; //Joystick y-axis analog pin
int val; //For holding mapped pot value
int readJoystick(int axis)
@catatonicTrepidation
catatonicTrepidation / Arduino Code Combinations
Last active August 29, 2015 14:21
Arduino Code Combinations
const int LED=9;
const int BUTTON1=1;
const int BUTTON2=2;
const String CODE = "ABABA";
String Rec = "";
int Time = millis();
int Delta = 0;
int Time1 = 0;