{"id":47068,"date":"2018-08-06T23:11:01","date_gmt":"2018-08-06T17:11:01","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=47068"},"modified":"2018-08-06T23:11:01","modified_gmt":"2018-08-06T17:11:01","slug":"%d0%bf%d1%80%d0%be%d0%b2%d0%b5%d1%80%d0%ba%d0%b0-%d1%87%d0%b8%d1%81%d0%bb%d0%b0-%d0%bd%d0%b0-%d1%87%d0%b5%d1%82%d0%bd%d0%be%d1%81%d1%82%d1%8c-arduino","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=47068","title":{"rendered":"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0447\u0438\u0441\u043b\u0430 \u043d\u0430 \u0447\u0435\u0442\u043d\u043e\u0441\u0442\u044c (Arduino)"},"content":{"rendered":"<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0447\u0438\u0441\u043b\u043e \u043d\u0430 \u0447\u0435\u0442\u043d\u043e\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e, \u043d\u0438\u0436\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0441\u043a\u0435\u0442\u0447 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043d\u0430 \u0447\u0438\u0441\u043b\u0430 \u043d\u0430 \u0447\u0435\u0442\u043d\u043e\u0441\u0442\u044c, \u0435\u0441\u043b\u0438 \u0447\u0438\u0441\u043b\u043e \u0447\u0435\u0442\u043d\u043e\u0435 \u0442\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 %2 \u0432\u0435\u0440\u043d\u0435\u0442 0, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0447\u0435\u0442\u043d\u043e\u0435 \u0442\u043e 1.<\/p>\n<pre class=\"cpp\" style=\"font-family: monospace; font-size: 11px;\"><span style=\"color: #0000ff;\">void<\/span> setup<span style=\"color: #008000;\">(<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008000;\">{<\/span>\r\n  Serial.<span style=\"color: #007788;\">begin<\/span><span style=\"color: #008000;\">(<\/span><span style=\"color: #0000dd;\">9600<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span>\r\n<span style=\"color: #008000;\">}<\/span>\r\n\u00a0\r\n<span style=\"color: #0000ff;\">int<\/span> a<span style=\"color: #008000;\">[<\/span><span style=\"color: #008000;\">]<\/span><span style=\"color: #008000;\">{<\/span><span style=\"color: #0000dd;\">12<\/span>,<span style=\"color: #0000dd;\">24<\/span>,<span style=\"color: #0000dd;\">5<\/span>,<span style=\"color: #0000dd;\">125<\/span>,<span style=\"color: #0000dd;\">236<\/span>,<span style=\"color: #0000dd;\">7895<\/span>,<span style=\"color: #0000dd;\">12<\/span>,<span style=\"color: #0000dd;\">45<\/span>,<span style=\"color: #0000dd;\">50<\/span>,<span style=\"color: #0000dd;\">22<\/span>,<span style=\"color: #0000dd;\">324<\/span>,<span style=\"color: #0000dd;\">8<\/span><span style=\"color: #008000;\">}<\/span><span style=\"color: #008080;\">;<\/span>\r\n\u00a0\r\n<span style=\"color: #0000ff;\">void<\/span> loop<span style=\"color: #008000;\">(<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008000;\">{<\/span>\r\n  <span style=\"color: #0000ff;\">for<\/span><span style=\"color: #008000;\">(<\/span><span style=\"color: #0000ff;\">int<\/span> i<span style=\"color: #000080;\">=<\/span><span style=\"color: #0000dd;\">0<\/span><span style=\"color: #008080;\">;<\/span>i<span style=\"color: #000080;\">&lt;<\/span><span style=\"color: #0000dd;\">sizeof<\/span><span style=\"color: #008000;\">(<\/span>a<span style=\"color: #008000;\">)<\/span><span style=\"color: #000040;\">\/<\/span><span style=\"color: #0000dd;\">sizeof<\/span><span style=\"color: #008000;\">(<\/span><span style=\"color: #0000ff;\">int<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span>i<span style=\"color: #000040;\">++<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008000;\">{<\/span>\r\n\u00a0\r\n    Serial.<span style=\"color: #007788;\">print<\/span><span style=\"color: #008000;\">(<\/span>a<span style=\"color: #008000;\">[<\/span>i<span style=\"color: #008000;\">]<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span>\r\n    Serial.<span style=\"color: #007788;\">print<\/span><span style=\"color: #008000;\">(<\/span><span style=\"color: #ff0000;\">\" \"<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span>\r\n    Serial.<span style=\"color: #007788;\">println<\/span><span style=\"color: #008000;\">(<\/span>a<span style=\"color: #008000;\">[<\/span>i<span style=\"color: #008000;\">]<\/span><span style=\"color: #000040;\">%<\/span><span style=\"color: #800080;\">2<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span>\r\n\u00a0\r\n    delay<span style=\"color: #008000;\">(<\/span><span style=\"color: #0000dd;\">1000<\/span><span style=\"color: #008000;\">)<\/span><span style=\"color: #008080;\">;<\/span>\r\n  <span style=\"color: #008000;\">}<\/span>\r\n<span style=\"color: #008000;\">}<\/span>\r\n<\/pre>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/08\/673856832749.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-47069\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/08\/673856832749.png\" alt=\"\" width=\"613\" height=\"375\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/08\/673856832749.png 613w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/08\/673856832749-200x122.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/08\/673856832749-500x306.png 500w\" sizes=\"auto, (max-width: 613px) 100vw, 613px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0447\u0438\u0441\u043b\u043e \u043d\u0430 \u0447\u0435\u0442\u043d\u043e\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e, \u043d\u0438\u0436\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0441\u043a\u0435\u0442\u0447 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043d\u0430 \u0447\u0438\u0441\u043b\u0430 \u043d\u0430 \u0447\u0435\u0442\u043d\u043e\u0441\u0442\u044c, \u0435\u0441\u043b\u0438 \u0447\u0438\u0441\u043b\u043e \u0447\u0435\u0442\u043d\u043e\u0435 \u0442\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 %2 \u0432\u0435\u0440\u043d\u0435\u0442 0, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0447\u0435\u0442\u043d\u043e\u0435 \u0442\u043e 1. void setup(){ Serial.begin(9600); } \u00a0 int a[]{12,24,5,125,236,7895,12,45,50,22,324,8}; \u00a0 void loop(){ for(int i=0;i&lt;sizeof(a)\/sizeof(int);i++){ \u00a0 Serial.print(a[i]); Serial.print(&#187; &#171;); Serial.println(a[i]%2); \u00a0 delay(1000); } }<\/p>\n","protected":false},"author":1,"featured_media":47070,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[239],"tags":[],"class_list":["post-47068","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino"],"views":9397,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/47068","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=47068"}],"version-history":[{"count":1,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/47068\/revisions"}],"predecessor-version":[{"id":47071,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/47068\/revisions\/47071"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/47070"}],"wp:attachment":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=47068"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=47068"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=47068"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}