Arduino board drives dual-color LED module flashing alternately

By Kumantech | 18 May 2017 | 18 Comments
Led dual-color display is generally composed of 2 colors light-emitting diodes, through different colors of light-emitting diodes can form a different display, double color is composed of red & green or yellow & green, pseudo color is from red, yellow, blue 3 different colors.

Steps:
1. Connect LED dual-color module's S end to the A5 on the arduino board, the middle pin link to A4,  GND


2. Code parsing
Firstly define the red light pin of the dual-color module as A5, blue light as A4 and set the 2 pins as output mode, the main loop inside the red light to achieve a second after the closure, then the blue light up for a second, so repeated.



Turn the switch on the board, you can observe the LED flashing red and blue one second in turn.
adelavodpuqe
July 26,2019 03:22
[url=http://mewkid.net/order-amoxicillin/]Amoxil Children[/url] <a href="http://mewkid.net/order-amoxicillin/">Amoxicillin</a> yyl.legu.kumantech.com.nah.dr http://mewkid.net/order-amoxicillin/
ahdojuib
July 26,2019 02:37
[url=http://mewkid.net/order-amoxicillin/]Amoxicillin 500mg Capsules[/url] <a href="http://mewkid.net/order-amoxicillin/">Brand Amoxil</a> luc.ufoz.kumantech.com.tlu.ns http://mewkid.net/order-amoxicillin/
ohilukuqag
July 20,2019 21:17
[url=http://mewkid.net/order-amoxicillin/]Amoxicillin 500 Mg[/url] <a href="http://mewkid.net/order-amoxicillin/">Amoxicillin 500mg Capsules</a> imi.enet.kumantech.com.ohg.nr http://mewkid.net/order-amoxicillin/
erahizofe
June 28,2019 00:26
[url=http://mewkid.net/buy-amoxicillin/]Amoxicillin 500mg[/url] <a href="http://mewkid.net/buy-amoxicillin/">Amoxicillin 500 Mg</a> fof.lcri.kumantech.com.yqf.km http://mewkid.net/buy-amoxicillin/
emayimhuug
June 27,2019 23:41
[url=http://mewkid.net/buy-amoxicillin/]Amoxicillin 500 Mg[/url] <a href="http://mewkid.net/buy-amoxicillin/">Amoxicillin - Prix.achetercommander.fr</a> fan.pnqu.kumantech.com.ipr.ph http://mewkid.net/buy-amoxicillin/
http://canadianorderpharmacy.c
June 03,2019 12:12
Link exchange is nothing else except it is only placing the other person's webpage link on your page at appropriate place and other person will also do similar for you.
ipbizon
April 05,2019 02:42
http://theprettyguineapig.com/amoxicillin/ - Buy Amoxicillin Online <a href="http://theprettyguineapig.com/amoxicillin/">Amoxicillin</a> cip.lscv.kumantech.com.ypz.ef http://theprettyguineapig.com/amoxicillin/
xfojdujlox
April 05,2019 02:34
http://theprettyguineapig.com/amoxicillin/ - Amoxicillin <a href="http://theprettyguineapig.com/amoxicillin/">Amoxicillin Online</a> ygx.fdhi.kumantech.com.jxw.sp http://theprettyguineapig.com/amoxicillin/
iluzapexesot
October 25,2018 22:36
http://doxycycline-cheapbuy.site/ - doxycycline-cheapbuy.site.ankor <a href="http://onlinebuycytotec.site/">onlinebuycytotec.site.ankor</a>
osogena
October 25,2018 22:28
http://doxycycline-cheapbuy.site/ - doxycycline-cheapbuy.site.ankor <a href="http://onlinebuycytotec.site/">onlinebuycytotec.site.ankor</a>
eobqecatiwo
October 25,2018 22:07
http://doxycycline-cheapbuy.site/ - doxycycline-cheapbuy.site.ankor <a href="http://onlinebuycytotec.site/">onlinebuycytotec.site.ankor</a>
egiidaklopaxu
October 25,2018 21:50
http://doxycycline-cheapbuy.site/ - doxycycline-cheapbuy.site.ankor <a href="http://onlinebuycytotec.site/">onlinebuycytotec.site.ankor</a>
vpzifawo
October 25,2018 21:36
http://doxycycline-cheapbuy.site/ - doxycycline-cheapbuy.site.ankor <a href="http://onlinebuycytotec.site/">onlinebuycytotec.site.ankor</a>
aqodeciyapo
October 25,2018 21:14
http://doxycycline-cheapbuy.site/ - doxycycline-cheapbuy.site.ankor <a href="http://onlinebuycytotec.site/">onlinebuycytotec.site.ankor</a>
kamagra oral jelly 100mg how t
March 30,2018 11:21
kamagra 100mg oral jelly suppliers indiana <a href="http://kamagradxt.com/">kamagra 100 mg</a> kamagra price <a href="http://kamagradxt.com/">kamagra bestellen rotterdam</a> kamagra 100mg oral jelly suppliers indianapolis http://kamagradxt.com/
Laytrikjut
March 09,2018 01:25
vientre de alquiler es muy popular en todas partes del mundo. La razon principal de eso es que una mujer se hace mama para neonato despues su nacimiento. Muchas de mujeres seria una mama, pero cualquiera de ellas no tiene la posibilidad. Por esta r
VikaxVasse
March 01,2018 17:32
Удобные роды в Мексике с компанией Cancun Bebe Организация cancun-bebe.ru предлагает вашей семье необычную для русскоязычного социума возможность: прожить последние пару недель беременности и родить ребенка в теплой солнечной Мексике. Многим наш
Miliansreade
February 09,2018 02:35
Surrogacy is very renowned all over the world. The main cause of it – a female become the arrival child’s mom after childbirth. A lot of woman would be a mom, but some of them haven’t possibility. That is why in last century a new term emerged – surr
Leave a Reply
Your email address will not be published.Required fields are marked. *
Name *
Email *
Content
Popular blog
Categories