{"id":178633,"date":"2013-05-04T21:27:03","date_gmt":"2013-05-04T17:27:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=178633"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=178633","title":{"rendered":"<span class=\"post_title\">6 \u043a\u043d\u043e\u043f\u043e\u043a<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/66c\/af8\/3b6\/66caf83b642bbbdf780d0991d994ec71.jpg\"\/><\/p>\n<h1>\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438<\/h1>\n<p>  \u0421\u0443\u0442\u043a\u0438 \u0434\u043e\u0431\u0440\u044b\u0435, \u0425\u0430\u0431\u0440\u0430\u044e\u0437\u0435\u0440\u044b!<\/p>\n<p>  \u041f\u0430\u0440\u0443 \u043d\u0435\u0434\u0435\u043b\u044c \u043d\u0430\u0437\u0430\u0434 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043b\u044c \u0444\u0435\u0434\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u043e \u043a\u0438\u043a\u0431\u043e\u043a\u0441\u0438\u043d\u0433\u0443 \u043d\u0430\u0448\u0435\u0433\u043e \u0440\u0435\u0433\u0438\u043e\u043d\u0430 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043c\u043d\u0435 \u0437\u0430\u0434\u0430\u0447\u0443, \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u043e, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u0439 \u043d\u0430 30% \u043c\u0435\u0442\u043e\u0434\u043e\u043c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438, \u043a\u0438\u0431\u0435\u0440\u043d\u0438\u0437\u0430\u0446\u0438\u0438, \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u043f\u0440\u043e\u0447\u0435\u0439 \u00ab\u0446\u0438\u0438\u00bb. \u0427\u0435\u043b\u043e\u0432\u0435\u043a \u043e\u043d \u043f\u0440\u043e\u0441\u0442\u043e\u0439, \u043f\u0440\u044f\u043c\u043e\u0439, \u0438 \u0441\u0438\u043b\u044c\u043d\u044b\u0439 \u0442\u0430\u043a, \u0447\u0442\u043e \u043e\u0442\u043a\u0430\u0437\u0430\u0442\u044c \u0443 \u043c\u0435\u043d\u044f \u043d\u0435 \u0431\u044b\u043b\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438. \u0417\u0430\u0434\u0430\u0447\u0430 \u0431\u044b\u043b\u0430 \u043f\u0440\u0438\u043d\u044f\u0442\u0430.<\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u0418\u0437\u0443\u0447\u0438\u0432 \u0440\u0435\u0433\u043b\u0430\u043c\u0435\u043d\u0442 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0431\u043e\u0435\u0432, \u0438 \u0432\u0441\u043f\u043e\u043c\u0438\u043d\u0430\u044f \u043f\u0440\u043e\u0448\u043b\u044b\u0435 \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u044b\u043b\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e, \u0447\u0442\u043e 20-30% \u043e\u0442 \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u0439 \u043e\u0442\u043d\u0438\u043c\u0430\u044e\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0443\u043d\u043a\u0442\u044b:  <\/p>\n<ol>\n<li>\u0441\u0431\u043e\u0440 \u0440\u0435\u0444\u0435\u0440\u0438 \u0441\u0443\u0434\u0435\u0439\u0441\u043a\u0438\u0445 \u0437\u0430\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u0441\u043b\u0435 \u0442\u0440\u0435\u0445 \u0440\u0430\u0443\u043d\u0434\u043e\u0432<\/li>\n<li>\u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0437\u0430\u043f\u0438\u0441\u043e\u043a \u0433\u043b\u0430\u0432\u043d\u043e\u043c\u0443 \u0441\u0443\u0434\u044c\u0435<\/li>\n<li>\u043f\u043e\u0434\u0441\u0447\u0435\u0442 \u043e\u0447\u043a\u043e\u0432<\/li>\n<li>\u043f\u043e\u0434\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0438\u0442\u043e\u0433\u043e\u0432 \u0431\u043e\u044f<\/li>\n<\/ol>\n<p>  \u0412 \u0441\u0440\u0435\u0434\u043d\u0435\u043c \u043e\u043a\u043e\u043b\u043e 3-5 \u043c\u0438\u043d\u0443\u0442<\/p>\n<p>  \u0417\u0430\u0434\u0430\u0447\u0430 \u0432\u0441\u0442\u0430\u043b\u0430 \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c: \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0431 \u043e\u0447\u043a\u0430\u0445 \u0433\u043b\u0430\u0432\u043d\u043e\u043c\u0443 \u0441\u0443\u0434\u044c\u0435, \u0442\u043e \u0435\u0441\u0442\u044c \u00ab\u0437\u0430\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c 6 \u043a\u043d\u043e\u043f\u043e\u043a\u00bb.<\/p>\n<h1>\u0412\u044b\u0431\u043e\u0440 \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/h1>\n<p>  \u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438 \u0431\u044b\u043b\u0438 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b:  <\/p>\n<ol>\n<li>\u041c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0442\u043e\u0440\u044b \u041c\u044b\u0448\u044c \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0441\u0443\u0434\u0435\u0439\u0441\u043a\u043e\u043c \u0441\u0442\u043e\u043b\u0435 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u043e\u0442 \u043d\u0438\u0445 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438<\/li>\n<li>\u041d\u0435\u043a\u0438\u0439 \u0434\u0436\u043e\u0439\u0441\u0442\u0438\u043a \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0441\u0443\u0434\u0435\u0439\u0441\u043a\u043e\u043c \u0441\u0442\u043e\u043b\u0435 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0433\u043b\u0430\u0432\u043d\u043e\u043c\u0443 \u0441\u0443\u0434\u044c\u0435<\/li>\n<\/ol>\n<p>  \u041f\u0435\u0440\u0432\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0437\u0430\u0434\u0430\u0447\u0438 \u0431\u044b\u043b \u043e\u0442\u043c\u0435\u0442\u0435\u043d \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u0442\u0430\u043a \u043a\u0430\u043a \u044f \u0441\u0435\u0431\u0435 \u0441\u043b\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u043b \u043a\u0430\u043a \u043f\u043e\u0432\u0435\u0434\u0435\u0442 \u0441\u0435\u0431\u044f USB \u043c\u044b\u0448\u044c \u043d\u0430 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0438 15-20 \u043c\u0435\u0442\u0440\u043e\u0432 \u043e\u0442 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u0433\u043e \u0441\u0443\u0434\u044c\u0438.<\/p>\n<p>  \u0412\u0442\u043e\u0440\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043c\u043d\u0435 \u0431\u043e\u043b\u0435\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u043c.<br \/>  \u0426\u0435\u043d\u0442\u0440\u043e\u043c \u0441\u0431\u043e\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u044f \u0432\u043e\u0437\u043b\u043e\u0436\u0438\u043b \u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 ARDUINO.<\/p>\n<h1>\u0418\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435<\/h1>\n<p>  <\/p>\n<h2>\u042d\u0442\u0430\u043f 1 \u041e\u0431\u0449\u0430\u044f \u0441\u0445\u0435\u043c\u0430<\/h2>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/eaa\/938\/6cc\/eaa9386cc587c29dca89138c40376a04.jpg\"\/><\/p>\n<p>  \u041d\u0430 \u0441\u0442\u043e\u043b\u0430\u0445 \u0431\u043e\u043a\u043e\u0432\u044b\u0445 \u0441\u0443\u0434\u0435\u0439 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u0441\u0443\u0434\u0435\u0439\u0441\u043a\u0438\u0435 \u043f\u0443\u043b\u044c\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043c\u0435\u044e\u0442 2 \u043a\u043d\u043e\u043f\u043a\u0438: \u043a\u0440\u0430\u0441\u043d\u0430\u044f \u0438 \u0441\u0438\u043d\u044f\u044f. \u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e\u0431 \u043d\u0430\u0436\u0430\u0442\u0438\u044f\u0445 \u044d\u0442\u0438\u0445 \u043a\u043d\u043e\u043f\u043e\u043a \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u043c Arduino \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u043d\u0430 \u043d\u043e\u0443\u0442\u0431\u0443\u043a\u0435.<br \/>  \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043a\u043d\u043e\u043f\u043e\u043a \u0438 \u0432\u044b\u0434\u0430\u0435\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u043e \u0438\u0442\u043e\u0433\u0443 \u0431\u043e\u044f \u0438 \u043d\u0430\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u0431\u0430\u043b\u0430\u0445 \u0431\u043e\u0439\u0446\u043e\u043c.<br \/>  \u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u0441\u0443\u0434\u044c\u044f \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u0431\u043e\u044f \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u0442 \u043f\u043e\u0431\u0435\u0434\u0438\u0442\u0435\u043b\u044f. <\/p>\n<h2>\u042d\u0442\u0430\u043f 2 \u0441\u0445\u0435\u043c\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f<\/h2>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/7d6\/906\/966\/7d690696651de68a016ce753ffcb09b2.jpg\"\/><\/p>\n<p>  \u0421\u043e \u0441\u0445\u0435\u043c\u043e\u0439 \u0432\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e, \u043a\u0430\u0436\u0434\u0443\u044e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443 \u0441\u0442\u0430\u0432\u043b\u044e \u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0432\u0445\u043e\u0434 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430. \u0420\u0435\u0437\u0438\u0441\u0442\u043e\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b 2.4 \u043a\u041e\u043c. \u042f \u043d\u0435 \u0441\u0442\u0430\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0434\u0432\u0438\u0433\u043e\u0432\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0435 \u0443\u043c\u0435\u044e \u0441 \u043d\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u0430 \u043f\u043e\u0434 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443 PIN-\u043e\u0432 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0441 \u043b\u0438\u0445\u0432\u043e\u0439.<\/p>\n<h1>\u0418\u0437\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u0438\u0435<\/h1>\n<p>  <\/p>\n<h2>\u042d\u0442\u0430\u043f 3 \u0418\u0437\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0443\u043b\u044c\u0442\u043e\u0432<\/h2>\n<p>  \u0421\u043e\u0441\u0442\u0430\u0432 \u043f\u0443\u043b\u044c\u0442\u0430:  <\/p>\n<ol>\n<li>\u041a\u043e\u0440\u043e\u0431\u043e\u0447\u043a\u0430<\/li>\n<li>\u041a\u0443\u0441\u043e\u043a \u043c\u043e\u043d\u0442\u0430\u0436\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u044b<\/li>\n<li>\u041a\u043d\u043e\u043f\u043a\u0438<\/li>\n<li>\u041a\u0443\u0441\u043e\u0447\u043a\u0438 \u043f\u0440\u043e\u0432\u043e\u0434\u043e\u0432<\/li>\n<li>\u041a\u0440\u0430\u0441\u043d\u0430\u044f \u0438 \u0441\u0438\u043d\u044f\u044f \u0438\u0437\u043e\u043b\u0435\u043d\u0442\u0430<\/li>\n<li>\u041a\u043e\u043d\u043d\u0435\u043a\u0442\u043e\u0440 RJ45<\/li>\n<\/ol>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/360\/54b\/1f4\/36054b1f4fc97d5373efb89b28bbc8ca.jpg\"\/><br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/a35\/b22\/2b3\/a35b222b31c1d8f4b4aa431a9c21c6a6.jpg\"\/><br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/a0a\/e79\/157\/a0ae79157d946d5598964b28aaeed316.jpg\"\/><br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/32f\/945\/2ac\/32f9452acec65587a3d08f565dc30e40.jpg\"\/><br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/ccd\/c7f\/efc\/ccdc7fefc3c4cda7fb458aeb6a6386a2.jpg\"\/><br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/63d\/2a8\/aba\/63d2a8abaa6ab7eece575d569e45141f.jpg\"\/><\/p>\n<h2>\u042d\u0442\u0430\u043f 4 \u0418\u0437\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430<\/h2>\n<p>  \u0421\u043e\u0441\u0442\u0430\u0432 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430:  <\/p>\n<ol>\n<li>\u041a\u043e\u0440\u043e\u0431\u043e\u0447\u043a\u0430 \u0438\u0437 \u043f\u043e\u0434 \u043e\u0442\u0432\u0435\u0440\u0442\u043e\u043a<\/li>\n<li>Arduino<\/li>\n<li>\u043c\u043e\u043d\u0442\u0430\u0436\u043d\u0430\u044f \u043f\u043b\u0430\u0442\u0430<\/li>\n<li>\u041a\u0443\u0441\u043e\u0447\u043a\u0438 \u043f\u0440\u043e\u0432\u043e\u0434\u043e\u0432<\/li>\n<li>\u0418\u0437\u043e\u043b\u0435\u043d\u0442\u0430<\/li>\n<li>\u041f\u0430\u0447\u043a\u043e\u0440\u0434\u044b RJ-45<\/li>\n<li>USB \u043f\u0440\u043e\u0432\u043e\u0434<\/li>\n<\/ol>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/9ce\/8a0\/cb5\/9ce8a0cb5c4e8e6f2dc60ea9039a23c6.jpg\"\/><br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/d5c\/c7e\/daa\/d5cc7edaa3cce5e7c63975f3f6d3cf7d.jpg\"\/><\/p>\n<h1>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/h1>\n<p>  <\/p>\n<h2>\u042d\u0442\u0430\u043f 5 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430<\/h2>\n<p>  \u0412 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u0432\u0441\u0435 \u0432\u0437\u044f\u0442\u043e \u0438\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432. \u0416\u0434\u0435\u043c \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043a\u043d\u043e\u043f\u043e\u043a, \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u0434\u0440\u0435\u0431\u0435\u0437\u0436\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u0432 \u0438 \u0448\u043b\u0435\u043c \u0432\u0441\u0435 COM-\u043f\u043e\u0440\u0442:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043a\u0435\u0442\u0447 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\">#include &lt;Bounce.h&gt;  #define BUTTON7 7  #define BUTTON6 6   #define BUTTON5 5  #define BUTTON4 4  #define BUTTON3 3  #define BUTTON2 2   #define LED 13  int state7 = 0;  int prevstate7 = 0;  int state6 = 0;  int prevstate6 = 0;   int state5 = 0;  int prevstate5 = 0;  int state4 = 0;  int prevstate4 = 0;   int state3 = 0;  int prevstate3 = 0;  int state2 = 0;  int prevstate2 = 0;   Bounce bouncer7 = Bounce( BUTTON7,5 );   Bounce bouncer6 = Bounce( BUTTON6,5 );    Bounce bouncer5 = Bounce( BUTTON5,5 );   Bounce bouncer4 = Bounce( BUTTON4,5 );    Bounce bouncer3 = Bounce( BUTTON3,5 );   Bounce bouncer2 = Bounce( BUTTON2,5 );     void setup() {    Serial.begin(115200);    pinMode(BUTTON7,INPUT);    pinMode(BUTTON6,INPUT);    pinMode(LED,OUTPUT);  }  void loop() {  \/\/ 7 \u043a\u043d\u043e\u043f\u043a\u0430 \u043d\u0430\u0447\u0430\u043b\u043e   bouncer7.update ( );   int value7 = bouncer7.read();   if ( value7 == HIGH) {     digitalWrite(LED, HIGH );     state7 = 1;   } else {      digitalWrite(LED, LOW );      state7 = 0;     }   if(state7 != prevstate7){     if(state7 == 1){     Serial.println(&quot;7&quot;);     }   }   prevstate7 = state7;  \/\/ 7 \u043a\u043d\u043e\u043f\u043a\u0430 \u043a\u043e\u043d\u0435\u0446   \/\/ 6 \u043a\u043d\u043e\u043f\u043a\u0430 \u043d\u0430\u0447\u0430\u043b\u043e  bouncer6.update ( );   int value6 = bouncer6.read();   if ( value6 == HIGH) {     digitalWrite(LED, HIGH );     state6 = 1;   } else {      digitalWrite(LED, LOW );      state6 = 0;     }   if(state6 != prevstate6){     if(state6 == 1){     Serial.println(&quot;6&quot;);     }   }   prevstate6 = state6;  \/\/ 6 \u043a\u043d\u043e\u043f\u043a\u0430 \u043a\u043e\u043d\u0435\u0446    \/\/ 5 \u043a\u043d\u043e\u043f\u043a\u0430 \u043d\u0430\u0447\u0430\u043b\u043e  bouncer5.update ( );   int value5 = bouncer5.read();   if ( value5 == HIGH) {     digitalWrite(LED, HIGH );     state5 = 1;   } else {      digitalWrite(LED, LOW );      state5 = 0;     }   if(state5 != prevstate5){     if(state5 == 1){     Serial.println(&quot;5&quot;);     }   }   prevstate5 = state5;  \/\/ 5 \u043a\u043d\u043e\u043f\u043a\u0430 \u043a\u043e\u043d\u0435\u0446   \/\/ 4 \u043a\u043d\u043e\u043f\u043a\u0430 \u043d\u0430\u0447\u0430\u043b\u043e  bouncer4.update ( );   int value4 = bouncer4.read();   if ( value4 == HIGH) {     digitalWrite(LED, HIGH );     state4 = 1;   } else {      digitalWrite(LED, LOW );      state4 = 0;     }   if(state4 != prevstate4){     if(state4 == 1){     Serial.println(&quot;4&quot;);     }   }   prevstate4 = state4;  \/\/ 4 \u043a\u043d\u043e\u043f\u043a\u0430 \u043a\u043e\u043d\u0435\u0446     \/\/ 3 \u043a\u043d\u043e\u043f\u043a\u0430 \u043d\u0430\u0447\u0430\u043b\u043e  bouncer3.update ( );   int value3 = bouncer3.read();   if ( value3 == HIGH) {     digitalWrite(LED, HIGH );     state3 = 1;   } else {      digitalWrite(LED, LOW );      state3 = 0;     }   if(state3 != prevstate3){     if(state3 == 1){     Serial.println(&quot;3&quot;);     }   }   prevstate3 = state3;  \/\/ 3 \u043a\u043d\u043e\u043f\u043a\u0430 \u043a\u043e\u043d\u0435\u0446   \/\/ 2 \u043a\u043d\u043e\u043f\u043a\u0430 \u043d\u0430\u0447\u0430\u043b\u043e  bouncer2.update ( );   int value2 = bouncer2.read();   if ( value2 == HIGH) {     digitalWrite(LED, HIGH );     state2 = 1;   } else {      digitalWrite(LED, LOW );      state2 = 0;     }   if(state2 != prevstate2){     if(state2 == 1){     Serial.println(&quot;2&quot;);     }   }   prevstate2 = state2;  \/\/ 2   \u043a\u043d\u043e\u043f\u043a\u0430 \u043a\u043e\u043d\u0435\u0446     } <\/code><\/pre>\n<\/p><\/div>\n<\/div>\n<h2>\u042d\u0442\u0430\u043f 6 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0431\u043e\u044f<\/h2>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/44f\/039\/2ec\/44f0392ecdc6b3177b79e478418969fa.jpg\"\/><br \/>  \u0412\u043e \u043f\u0435\u0440\u0432\u044b\u0445 \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u0434\u0435\u043b\u044e\u0441\u044c \u043a\u043e\u0434\u043e\u043c <a href=\"https:\/\/docs.google.com\/file\/d\/0B6tCFxCR5IdOTlUxbGlRUUZfaTg\/edit?usp=sharing\">\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434<\/a>. <br \/>  \u0412\u0435\u0441\u044c \u043a\u043e\u0434 \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u0434\u0435\u043b\u0444\u0438 XE3 \u0442\u0430\u043a \u043a\u0430\u043a \u0443\u0447\u0438\u043b \u0435\u0433\u043e \u0432 \u0448\u043a\u043e\u043b\u0435. \u0418 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u043e\u043f\u0438\u0441\u0430\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c:  <\/p>\n<ol>\n<li>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0443 ComPort 4.11 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a com-\u043f\u043e\u0440\u0442\u0443 \u0438 \u0441\u043b\u0443\u0448\u0430\u0435\u043c \u0435\u0433\u043e<\/li>\n<li>\u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0431\u043e\u044f \u0441\u043b\u0443\u0448\u0430\u0435\u043c \u043f\u043e\u0440\u0442 \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0432 labelX.caption<\/li>\n<li>\u0432 \u043a\u043e\u043d\u0446\u0435 \u0431\u043e\u044f \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0438\u0442\u043e\u0433<\/li>\n<\/ol>\n<p>  \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u0438\u0441\u0430\u043b\u0430\u0441\u044c \u0437\u0430 \u043e\u0434\u043d\u0443 \u043d\u043e\u0447\u044c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e \u043a\u0440\u0430\u0441\u043e\u0442\u0435 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438 \u0440\u0435\u0447\u0438.<\/p>\n<h1>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043a \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u044f\u043c<\/h1>\n<p>  \u041f\u0440\u043e\u043a\u043b\u0430\u0434\u043a\u0430 \u043a\u0430\u0431\u0435\u043b\u0435\u0439 \u043e\u0442 \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430 \u0434\u043e \u0431\u043e\u043a\u043e\u0432\u044b\u0445 \u0441\u0443\u0434\u0435\u0439<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/735\/c63\/229\/735c63229430f970122b666538fc8bec.jpg\"\/><br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/1bb\/cbb\/37e\/1bbcbb37ec667b9bce5048685d123bb6.jpg\"\/><br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/03e\/8ba\/e39\/03e8bae39ca878a91643944c9aee9e17.jpg\"\/><br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/db0\/b71\/e0c\/db0b71e0c2f9fe1a0167d15ee329cab5.jpg\"\/><br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/992\/322\/54f\/99232254ffd493e20afc0025c3cbf981.jpg\"\/> <\/p>\n<p>  \u0420\u0430\u0431\u043e\u0442\u0430 \u0441\u0443\u0434\u044c\u0438<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/7fa\/b35\/0d6\/7fab350d6d504c1b6e07cd6ffd4104c7.jpg\"\/><\/p>\n<h1>\u041e \u0442\u043e\u043c \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430<\/h1>\n<p>  <iframe loading=\"lazy\" width=\"560\" height=\"349\" src=\"http:\/\/www.youtube.com\/embed\/UjbWwlMTmpk?wmode=opaque\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<h1>\u0418\u0442\u043e\u0433\u0438 \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u0439<\/h1>\n<p>  \u041f\u043e \u0438\u0442\u043e\u0433\u0443 \u0434\u0432\u0443\u0445 \u0434\u043d\u0435\u0432\u043d\u044b\u0445 \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u0439 \u0431\u044b\u043b \u0440\u0430\u0437\u044b\u0433\u0440\u0430\u043d \u043f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442 \u043d\u0430\u0433\u0440\u0430\u0434 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u043e \u0431\u043e\u043b\u0435\u0435 150 \u0431\u043e\u0435\u0432.<br \/>  \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u043b\u0435\u043d\u043d\u043e\u043c\u0443 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u043f\u043e\u0440\u0442\u0441\u043c\u0435\u043d\u044b \u0443\u0435\u0445\u0430\u043b\u0438 \u043f\u043e \u0441\u0432\u043e\u0438\u043c \u0433\u043e\u0440\u043e\u0434\u0430\u043c \u043d\u0430 4 \u0447\u0430\u0441\u0430 \u0440\u0430\u043d\u044c\u0448\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 <br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/32d\/11c\/613\/32d11c613ba9afa9126ddb4c2b0163c2.jpg\"\/><\/p>\n<h1>\u0412\u044b\u0432\u043e\u0434\u044b<\/h1>\n<p>  <\/p>\n<ol>\n<li>\u041e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e \u043d\u0430 \u0443\u0440\u0430, \u0431\u0435\u0437 \u0435\u0434\u0438\u043d\u043e\u0433\u043e \u0441\u0431\u043e\u044f<\/li>\n<li>\u0414\u043b\u0438\u043d\u0430 \u043f\u0440\u043e\u0432\u043e\u0434\u043e\u0432 \u043e\u0442 \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430 \u0434\u043e \u043a\u043d\u043e\u043f\u043e\u043a \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u043b\u0430 20 \u043c\u0435\u0442\u0440\u043e\u0432, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u043a\u043d\u043e\u043f\u043a\u0438 \u043d\u0430 100 \u043c\u0435\u0442\u0440\u043e\u0432\u043e\u043c \u043a\u0430\u0431\u0435\u043b\u0435<\/li>\n<li>\u0412 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u0447\u0435\u043c \u0438 \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0441\u044c \u043a \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0435 \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u0439 \u043f\u043e \u0431\u043e\u043a\u0441\u0443<\/li>\n<li>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u0432\u044b\u0432\u043e\u0434\u043e\u043c \u043d\u0430 \u0442\u0430\u0431\u043b\u043e \u0438 \u0437\u0432\u0443\u043a\u043e\u0432\u044b\u043c\u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u0430\u043c\u0438<\/li>\n<li>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u043a\u0430\u0431\u0435\u043b\u044f \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a\u043d\u043e\u043f\u043e\u043a \u0438 \u0440\u0430\u0437\u044a\u0435\u043c\u044b \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0434\u0435\u0448\u0435\u0432\u0438\u043b\u043e \u0432\u0441\u044e \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u0432 \u0446\u0435\u043b\u043e\u043c<\/li>\n<\/ol>\n<p>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435.    \t \t\t   \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/178633\/\"> http:\/\/habrahabr.ru\/post\/178633\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/66c\/af8\/3b6\/66caf83b642bbbdf780d0991d994ec71.jpg\"\/><\/p>\n<h1>\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438<\/h1>\n<p>  \u0421\u0443\u0442\u043a\u0438 \u0434\u043e\u0431\u0440\u044b\u0435, \u0425\u0430\u0431\u0440\u0430\u044e\u0437\u0435\u0440\u044b!<\/p>\n<p>  \u041f\u0430\u0440\u0443 \u043d\u0435\u0434\u0435\u043b\u044c \u043d\u0430\u0437\u0430\u0434 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043b\u044c \u0444\u0435\u0434\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u043e \u043a\u0438\u043a\u0431\u043e\u043a\u0441\u0438\u043d\u0433\u0443 \u043d\u0430\u0448\u0435\u0433\u043e \u0440\u0435\u0433\u0438\u043e\u043d\u0430 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043c\u043d\u0435 \u0437\u0430\u0434\u0430\u0447\u0443, \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u043e, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u0439 \u043d\u0430 30% \u043c\u0435\u0442\u043e\u0434\u043e\u043c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438, \u043a\u0438\u0431\u0435\u0440\u043d\u0438\u0437\u0430\u0446\u0438\u0438, \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u043f\u0440\u043e\u0447\u0435\u0439 \u00ab\u0446\u0438\u0438\u00bb. \u0427\u0435\u043b\u043e\u0432\u0435\u043a \u043e\u043d \u043f\u0440\u043e\u0441\u0442\u043e\u0439, \u043f\u0440\u044f\u043c\u043e\u0439, \u0438 \u0441\u0438\u043b\u044c\u043d\u044b\u0439 \u0442\u0430\u043a, \u0447\u0442\u043e \u043e\u0442\u043a\u0430\u0437\u0430\u0442\u044c \u0443 \u043c\u0435\u043d\u044f \u043d\u0435 \u0431\u044b\u043b\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438. \u0417\u0430\u0434\u0430\u0447\u0430 \u0431\u044b\u043b\u0430 \u043f\u0440\u0438\u043d\u044f\u0442\u0430.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-178633","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/178633","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=178633"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/178633\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=178633"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=178633"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=178633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}