loading
1Comments
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 ZombieS28 months ago
  • ZombieS2 commented on GraziCNU's instructable Sound Reactive LED Strip8 months ago
    Sound Reactive LED Strip

    I used a RGB strip and needed transistors as well.The code is//hyperhitesh.hol.es#define 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 »