{"id":45,"date":"2020-02-02T18:19:52","date_gmt":"2020-02-02T11:19:52","guid":{"rendered":"https:\/\/arnut.com\/home\/?p=45"},"modified":"2022-09-04T18:21:34","modified_gmt":"2022-09-04T11:21:34","slug":"%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%82%e0%b8%b5%e0%b8%a2%e0%b8%99%e0%b9%82%e0%b8%84%e0%b9%89%e0%b8%94%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b8%ab%e0%b8%a5%e0%b8%ad%e0%b8%94%e0%b9%84%e0%b8%9f-led","status":"publish","type":"post","link":"https:\/\/arnut.com\/home\/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%82%e0%b8%b5%e0%b8%a2%e0%b8%99%e0%b9%82%e0%b8%84%e0%b9%89%e0%b8%94%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b8%ab%e0%b8%a5%e0%b8%ad%e0%b8%94%e0%b9%84%e0%b8%9f-led\/","title":{"rendered":"\u0e01\u0e32\u0e23\u0e40\u0e02\u0e35\u0e22\u0e19\u0e42\u0e04\u0e49\u0e14\u0e43\u0e2b\u0e49\u0e2b\u0e25\u0e2d\u0e14\u0e44\u0e1f LED \u0e1a\u0e19\u0e1a\u0e2d\u0e23\u0e4c\u0e14 NodeMCU ESP8266"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"\/b\/sites\/default\/files\/inline-images\/Nodemcu-3.png\" alt=\"NodeMCU ESP8266 \" width=\"622\" height=\"450\" data-entity-type=\"file\" data-entity-uuid=\"4f2475bf-13f4-4930-8bef-032c32792123\" \/><\/p>\n<p><strong>\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19<\/strong><br \/>\n1.\u00a0 \u0e04\u0e25\u0e34\u0e01\u0e17\u0e35\u0e48\u0e40\u0e21\u0e19\u0e39 File &gt; Example &gt; ESP8266 &gt; \u0e04\u0e25\u0e34\u0e01\u0e40\u0e25\u0e37\u0e2d\u0e01<strong> Blink<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/b\/sites\/default\/files\/inline-images\/Blink-01.jpg\" alt=\"blink\" width=\"430\" height=\"386\" data-entity-type=\"file\" data-entity-uuid=\"2ede6fef-ec8c-4799-a7e5-644bcf2f89ac\" \/><\/p>\n<p>2. \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e42\u0e04\u0e49\u0e14<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>\/*<br \/>\nESP8266 Blink by Simon Peter<br \/>\nBlink the blue LED on the ESP-01 module<br \/>\nThis example code is in the public domain<\/p>\n<p>The blue LED on the ESP-01 module is connected to GPIO1<br \/>\n(which is also the TXD pin; so we cannot use Serial.print() at the same time)<\/p>\n<p>Note that this sketch uses LED_BUILTIN to find the pin with the internal LED<br \/>\n*\/<\/p>\n<p><strong>void setup() {<br \/>\npinMode(LED_BUILTIN, OUTPUT); \u00a0 \u00a0 \/\/ Initialize the LED_BUILTIN pin as an output<br \/>\n}<\/strong><\/p>\n<p><strong>\/\/ the loop function runs over and over again forever<br \/>\nvoid loop() {<br \/>\ndigitalWrite(LED_BUILTIN, LOW); \u00a0 \/\/ Turn the LED on (Note that LOW is the voltage level<br \/>\n\/\/ but actually the LED is on; this is because<br \/>\n\/\/ it is active low on the ESP-01)<br \/>\ndelay(1000); \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\/\/ Wait for a second<br \/>\ndigitalWrite(LED_BUILTIN, HIGH); \u00a0\/\/ Turn the LED off by making the voltage HIGH<br \/>\ndelay(2000); \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\/\/ Wait for two seconds (to demonstrate the active low LED)<br \/>\n}<\/strong><\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>3. \u0e04\u0e25\u0e34\u0e01\u0e17\u0e35\u0e48 \/ \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e17\u0e33\u0e01\u0e32\u0e23<strong>\u0e04\u0e2d\u0e21\u0e44\u0e1e\u0e25\u0e4c\u0e42\u0e04\u0e49\u0e14\u00a0<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/b\/sites\/default\/files\/inline-images\/Blink-03.jpg\" alt=\"Blink-03\" width=\"659\" height=\"482\" data-entity-type=\"file\" data-entity-uuid=\"5a9fe741-e42f-41c6-a16d-29a0a744db15\" \/><\/p>\n<p>4.\u00a0\u0e2b\u0e32\u0e01\u0e44\u0e21\u0e48\u0e21\u0e35\u0e02\u0e49\u0e2d\u0e1c\u0e34\u0e14\u0e1e\u0e25\u0e32\u0e14 \u0e08\u0e30\u0e1b\u0e23\u0e32\u0e01\u0e0e\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e27\u0e48\u0e32 <strong>&#8220;Done compiling&#8221;<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/b\/sites\/default\/files\/inline-images\/Blink-04.jpg\" alt=\"Blink-04\" width=\"733\" height=\"536\" data-entity-type=\"file\" data-entity-uuid=\"1e78f8c5-21a1-404e-b497-c00b62c66328\" \/><\/p>\n<p>5.\u00a0\u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e43\u0e2b\u0e49\u0e17\u0e33\u0e01\u0e32\u0e23\u0e04\u0e25\u0e34\u0e01\u0e17\u0e35\u0e48\u0e1b\u0e38\u0e48\u0e21 -&gt;\u00a0\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e17\u0e33\u0e01\u0e32\u0e23<strong>\u0e2d\u0e31\u0e1b\u0e42\u0e2b\u0e25\u0e14\u0e42\u0e04\u0e49\u0e14\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e1a\u0e2d\u0e23\u0e4c\u0e14 NodeMCU ESP8266<\/strong><\/p>\n<p>6. \u0e2b\u0e32\u0e01\u0e44\u0e21\u0e48\u0e21\u0e35\u0e02\u0e49\u0e2d\u0e1c\u0e34\u0e14\u0e1e\u0e25\u0e32\u0e14\u0e08\u0e30\u0e02\u0e36\u0e49\u0e19\u0e04\u0e33\u0e27\u0e48\u0e32 &#8220;Done uploading&#8221;\u00a0 \u0e2d\u0e31\u0e1b\u0e42\u0e2b\u0e25\u0e14\u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08 \u0e08\u0e30\u0e16\u0e36\u0e07 &#8230;..100%<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/b\/sites\/default\/files\/inline-images\/Blink-05.jpg\" alt=\"Blink-05\" width=\"671\" height=\"242\" data-entity-type=\"file\" data-entity-uuid=\"76a8b905-d485-4c8d-8c6e-b94ddf41f67b\" \/><\/p>\n<p>7. \u0e2a\u0e31\u0e07\u0e40\u0e01\u0e15\u0e38\u0e17\u0e35\u0e48\u0e15\u0e31\u0e27 NodeMCU ESP8266 \u0e08\u0e30\u0e21\u0e35\u0e44\u0e1f\u0e01\u0e23\u0e30\u0e1e\u0e23\u0e34\u0e1a<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19 1.\u00a0 \u0e04\u0e25\u0e34\u0e01\u0e17\u0e35\u0e48\u0e40\u0e21\u0e19\u0e39 File &gt; Example &gt; ESP8266 &gt; \u0e04\u0e25\u0e34\u0e01\u0e40\u0e25\u0e37\u0e2d\u0e01 Blink 2. \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e42\u0e04\u0e49\u0e14 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; \/* ESP8266 Blink by Simon Peter Blink the blue LED on the ESP-01 module This example code is in the public domain The blue LED on the ESP-01 module is connected to GPIO1 (which is also the TXD pin; so we [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":46,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[17,22],"class_list":["post-45","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-iot","tag-iot","tag-nodemcu"],"_links":{"self":[{"href":"https:\/\/arnut.com\/home\/wp-json\/wp\/v2\/posts\/45","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arnut.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arnut.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arnut.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arnut.com\/home\/wp-json\/wp\/v2\/comments?post=45"}],"version-history":[{"count":1,"href":"https:\/\/arnut.com\/home\/wp-json\/wp\/v2\/posts\/45\/revisions"}],"predecessor-version":[{"id":47,"href":"https:\/\/arnut.com\/home\/wp-json\/wp\/v2\/posts\/45\/revisions\/47"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/arnut.com\/home\/wp-json\/wp\/v2\/media\/46"}],"wp:attachment":[{"href":"https:\/\/arnut.com\/home\/wp-json\/wp\/v2\/media?parent=45"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arnut.com\/home\/wp-json\/wp\/v2\/categories?post=45"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arnut.com\/home\/wp-json\/wp\/v2\/tags?post=45"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}