/* Love-o-meter * by Kevin Cox * the cock and boobs specialty */ const int ledPin = 5; const int ledCount = 10; const int leds[ledCount] = { 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 }; //0 1 2 3 const int micPin = 0; const int bendPin = 1; int micValue = 0; int bendValue = 0; int micMean = 0; int bendMean = 0; int ledsOnCount = ledCount; int cnt = 0; int lover = 0; const int meanSize = 8; int meandex = 0; int micValues[meanSize]; int bendValues[meanSize]; const int switchPin = 2; boolean debug = true; boolean shag = false; void setup() { Serial.begin(9600); for(int i=0; i 350) && (bendMean < 490)) { digitalWrite(ledPin, HIGH); lover++; delay(50); } delay(10); if(cnt%85 == 0) { ledsOn(ledsOnCount); ledsOnCount--; } if(ledsOnCount < 0) { shag = false; } cnt++; } else { // not in countdown shagnoise mode ledsOn(lover/5); if((digitalRead(switchPin) == HIGH)) { // || (analogRead(bendPin) < 480) shag = true; reset(); } } } void reset() { ledsOff(); lover = 0; cnt = 0; ledsOnCount = ledCount; for(int i=0; i