Crowtail- LED
Description¶
The Crowtail-LED is designed for the beginners of Arduino. It is the best way to step into the Aduino from it’s I/O pins. The LED is the best choice to help you learn I/O pins.
Model: CT0006LD
Features¶
- Crowtail compatible interface
- 3.3V/5V Compatible
- 8mm LED
Specification¶
- Dimensions(mm):20.0(L)x20.0(W)x13.0(H)
Item | Description |
---|---|
LED Control Mode | Digital Pin of Arduino |
Working Voltage | 5V |
Supply Mode | Crowtail Interface |
Usage¶
1. Connect the LED to Base Shield's digital port 5 with 3pin Crowtail Cable.
2. Plug it onto the Arduino/Crowduino. Connect the board to PC using USB cable.
3.Copy the demo code to your sketch, then upload to Arduino or Crowduino board.You will see the LED blink every second.
#define LED 5 //connect LED to digital pin5
void setup() {
// initialize the digital pin5 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);
}
4.Test result: