[vc_row][vc_column width=”1/1″][vc_column_text]linker LED with a variety of colors, various sizes, and can be used for various circuit indicator or warning lights.
[/vc_column_text][/vc_column][/vc_row][vc_row][vc_column width=”1/1″][vc_tour][vc_tab title=”Hardware preparation” tab_id=”1392717924-1-20″][vc_column_text]The components used in this experiment are shown below:
The components are two Male to Female Dupont Line, one linker led and one pcduino
[/vc_column_text][/vc_tab][vc_tab title=”Hardware connection” tab_id=”1392717924-2-0″][vc_column_text]GND pin is connected to GPIO 8 pin of the pcduino
SIG pin is connected to GPIO 9 pin of the pcduino
[/vc_column_text][/vc_tab][vc_tab title=”Test Running” tab_id=”1392718482119-2-1″][vc_gallery type=”flexslider_fade” interval=”3″ images=”2948,2949″ onclick=”link_image” custom_links_target=”_self”][/vc_tab][vc_tab title=”Test code” tab_id=”1392718593532-3-5″][vc_column_text]void setup() {
// put your setup code here, to run once:
pinMode(8,OUTPUT);
pinMode(9,OUTPUT);
digitalWrite(9,LOW);//Use the GPIO 9 as GND
}
int i=0;
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(8,i++%2);
delay(500);
}[/vc_column_text][/vc_tab][/vc_tour][/vc_column][/vc_row]
Leave a Reply
You must be logged in to post a comment.