Difference between revisions of "Grove - LED"

From
Jump to: navigation, search
(Support)
(Support)
Line 7: Line 7:
 
=== Support ===
 
=== Support ===
 
sur Digital D2
 
sur Digital D2
 +
 
[[File:Grove-LED conection.jpg|200px]]
 
[[File:Grove-LED conection.jpg|200px]]
  

Revision as of 22:28, 2 March 2018

Grove - LED (Seeed-Studio)

Caractéristiques

Grove greedled.jpg Groveblue led.jpg Red LED.jpg

Support

sur Digital D2

Grove-LED conection.jpg

Voltage

Code Exemple->GroveLEDDemoCode

	#define LED 2 //connect LED to digital pin2
	void setup() {
		// initialize the digital pin2 as an output.
		pinMode(LED, OUTPUT);
	}

	void loop() {
		digitalWrite(LED, HIGH);   // set the LED on
		delay(500);               // for 500ms
		digitalWrite(LED, LOW);   // set the LED off
		delay(500);
	}

Liens internes

Liens externes