Skip to content

Instantly share code, notes, and snippets.

@jellyfishcoder
jellyfishcoder / KnightRider.ino
Created July 12, 2016 16:27
Knightrider with arduino, 5 leds, and pot.
// Customisable Vars
int led[6] = {3, 5, 6, 9, 10};
int delaymicro = 75;
int delaymin = 25;
int delaymax = 500;
// Other Vars
int anaRead;
void setup() {
// put your setup code here, to run once:
SOMEONE POPED IN MY SPOT.
@jellyfishcoder
jellyfishcoder / Game of Life
Last active August 29, 2015 14:05
A Simple Game of Life
//Processing Sketch
//Simple Game of Life
// Size of cells
int cellSize = 5;
// How likely for a cell to be alive at start (in percentage)
float probabilityOfAliveAtStart = 15;
// Variables for timer