1CommentsJoined April 3rd, 2016
I'm your dope-ass divinity, trollin' with My trinity, droppin' top tweets in your immediate vicinity, flingin' fly phrases from the fringes of infinity.
  • ZombieS2 followed ZombieS22 years ago
  • ZombieS2 commented on GraziCNU's instructable Sound Reactive LED Strip2 years ago
    Sound Reactive LED Strip

    I used a RGB strip and needed transistors as well.The code is// LEDstrip 6#define LED2 5void setup(){ pinMode(8,INPUT); pinMode(LEDstrip, OUTPUT); pinMode(LED2, OUTPUT);}//this function will make the LED dim once the Parallax Sound Impact Sensor sends a 1 signal, and then return to it’s original brightness.void loop(){ boolean soundstate = digitalRead(8); if (soundstate == 1) { digitalWrite(LEDstrip, HIGH); digitalWrite(LED2, LOW); delay(100); } else{ digitalWrite(LEDstrip, LOW); digitalWrite(LED2, HIGH); delay(100); }}LEDstrip is greenLED2 is blue. Just used 2 colours.

    View Instructable »