Skip to content

Instantly share code, notes, and snippets.

int count = 0;
int position = 1;
PImage sky;
void setup() {
fullScreen();
//size(800,600);
frameRate(20);
}
void draw() {
#include <CapacitiveSensor.h>
CapacitiveSensor cs_4_2 = CapacitiveSensor(A4, A2); // 10M resistor between pins 4 & 2, pin 2 is sensor pin, add a wire and or foil if desired
int threshold;
void setup()
{