// led lillies control // int goodCatRelayPinArray[] = {3, 4, 5, 6, 7}; int badCatRelayPinArray[] = {8, 9, 10, 11, 12}; int analogNoisePin = 0; // wire connected for random int randomNoise = 0; // store the above // int fatPin1 = 9; // pir sensor 1 // boolean initPower = false; void setup(){ // pinMode(fatPin1, OUTPUT); int count; for (count=0;count<5;count++) { // pinMode(goodCatRelayPinArray[count], OUTPUT); pinMode(badCatRelayPinArray[count], OUTPUT); } } void loop() { // if (!initPower) initSlowly(); // if (analogRead(analogNoisePin) % 12 == 3) makeFatShow(); makeShow(); delay(60000); } void makeShow() { int count; for (count=0;count<30;count++) { digitalWrite(badCatRelayPinArray[count % 5], HIGH); delay(120-count); digitalWrite(badCatRelayPinArray[count % 5], LOW); delay(count); } } // void makeFatShow() { // int count; // for (count=0;count<100;count++) { // analogWrite(fatPin1, count); // delay(50); // digitalWrite(fatPin1, LOW); // delay(200); // delay(220 - count / 2); // } // } // void initSlowly(){ // int count; // for (count=0;count<5;count++) { // digitalWrite(goodCatRelayPinArray[count], HIGH); // delay(5000); // } // initPower = true; // }