[vc_row][vc_column][vc_column_text] [/vc_column_text][vc_tour][vc_tab title=”experimental device” tab_id=”1394778784-1-84″][vc_column_text]6 * Led Lights
6 * 220Ω resistor
Several colorful experimental breadboard jumper[/vc_column_text][/vc_tab][vc_tab title=”Test the Connection”][vc_column_text]Wiring methods in accordance with two tubes, LED lights turn received the six numbers 1 to 6 pin.
Figure:
Advertising lights wiring experiment[/vc_column_text][/vc_tab][vc_tab title=”Experimental Principle” tab_id=”1394779631530-2-0″][vc_column_text]In life we often see some led lights from a variety of colors consisting of billboards, billboards
various locations to Tx led lights constantly changed, then the formation of a variety of effects.
This section is the use of experimental programming analog advertising lights led lights effect[/vc_column_text][/vc_tab][vc_tab title=”Test code” tab_id=”1394779670508-3-3″][vc_column_text]
int BASE = 2; / / the first one LED connected to the I / O pins int NUM = 6; / / LED's total void setup () { for (int i = BASE; i <BASE NUM; i) { pinMode (i, OUTPUT); / / set the digital I / O pin as an output } } void loop () { for (int i = BASE; i <BASE NUM; i) { digitalWrite (i, LOW); / / set the digital I / O pin output is "low", that gradually turn off the lights delay (200); / / delay } for (int i = BASE; i <BASE NUM; i) { digitalWrite (i, HIGH); / / set the digital I / O pin output is "low", that gradually lights delay (200); / / delay } }
[/vc_column_text][/vc_tab][/vc_tour][/vc_column][/vc_row]
Leave a Reply
You must be logged in to post a comment.