Difference between revisions of "Grove - LED"
(→Support) |
(→Support) |
||
| Line 9: | Line 9: | ||
[[File:Grove-LED conection.jpg|200px]] | [[File:Grove-LED conection.jpg|200px]] | ||
| − | [[File:Base Shield V2 D3.jpg| | + | [[File:Base Shield V2 D3.jpg|300px]] |
=== Voltage === | === Voltage === | ||
Revision as of 22:37, 2 March 2018
Contents
Grove - LED (Seeed-Studio)
Caractéristiques
Support
sur Digital D2
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);
}