{"id":814,"date":"2017-11-07T17:38:45","date_gmt":"2017-11-07T17:38:45","guid":{"rendered":"https:\/\/zhutarduino.wordpress.com\/?page_id=814"},"modified":"2017-11-07T17:38:45","modified_gmt":"2017-11-07T17:38:45","slug":"learning-arduino-for-beginners-ep2-digital-outputs","status":"publish","type":"page","link":"https:\/\/thezhut.com\/?page_id=814","title":{"rendered":"Learning ARDUINO for Beginners EP#2 Digital Outputs"},"content":{"rendered":"<h1>In this episode we will learn how to use digital outputs on the ARDUINO board by controlling the color of a RGB LED.<\/h1>\n<p><iframe loading=\"lazy\" title=\"Learning ARDUINO for Beginners EP#2 Digital Outputs\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/sEgLX8WWz-8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>&nbsp;<\/p>\n<p>#define blue 8<br \/>\n#define green 9<br \/>\n#define red 10<\/p>\n<p>void setup() {<br \/>\npinMode(blue,OUTPUT);<br \/>\npinMode(green,OUTPUT);<br \/>\npinMode(red,OUTPUT);<\/p>\n<p>}<\/p>\n<p>void loop() {<br \/>\ndigitalWrite(blue,HIGH);<br \/>\ndelay(2000);<br \/>\ndigitalWrite(blue,LOW);<br \/>\ndigitalWrite(green,HIGH);<br \/>\ndelay(2000);<br \/>\ndigitalWrite(green,LOW);<br \/>\ndigitalWrite(red,HIGH);<br \/>\ndelay(2000);<br \/>\ndigitalWrite(red,LOW);<\/p>\n<p>}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this episode we will learn how to use digital outputs on the ARDUINO board by controlling the color of a RGB LED. &nbsp; #define blue 8 #define green 9 #define red 10 void setup() { pinMode(blue,OUTPUT); pinMode(green,OUTPUT); pinMode(red,OUTPUT); } &hellip; <a href=\"https:\/\/thezhut.com\/?page_id=814\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":809,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"footnotes":"","_links_to":"","_links_to_target":""},"class_list":["post-814","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/814","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=814"}],"version-history":[{"count":0,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/814\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/809"}],"wp:attachment":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}