{"id":129018,"date":"2022-08-24T21:52:37","date_gmt":"2022-08-24T15:52:37","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=129018"},"modified":"2022-09-01T17:58:34","modified_gmt":"2022-09-01T11:58:34","slug":"%d0%b4%d0%b8%d1%81%d0%bf%d0%bb%d0%b5%d0%b9-12864b-v2-0-arduino","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=129018","title":{"rendered":"\u0414\u0438\u0441\u043f\u043b\u0435\u0439 12864b v2.0 (Arduino)"},"content":{"rendered":"<p>\u0413\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0434\u0438\u0441\u043f\u043b\u0435\u0439 12864b v2.0 (ST7920) \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0416\u041a-\u043c\u0430\u0442\u0440\u0438\u0446\u0443 \u0441 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0432 128\u00a0 \u043d\u0430 64 \u0442\u043e\u0447\u0435\u043a, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0438 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438. \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 8\/4-\u0431\u0438\u0442\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u043e\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\/\u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430 ST7290. \u0422\u0430\u043a\u0436\u0435 \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u043e \u0448\u0438\u043d\u0435 PSB (\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 SPI), \u0438\u043c\u0435\u043d\u043d\u043e \u0432 \u044d\u0442\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0434\u0438\u0441\u043f\u043b\u0435\u0439.<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-08-24-21-12-45.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-129019 size-full\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/08\/-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-08-24-21-12-45-e1661354034920.png\" alt=\"\" width=\"411\" height=\"306\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/08\/-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-08-24-21-12-45-e1661354034920.png 411w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/08\/-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-08-24-21-12-45-e1661354034920-200x149.png 200w\" sizes=\"auto, (max-width: 411px) 100vw, 411px\" \/><\/a><\/p>\n<div id=\"marketWidget\"><\/div>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043f\u0438\u0442\u0430\u043d\u0438\u044f +5 \u0412, \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 3,3 \u0412 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u043a\u0438 \u0434\u0438\u0441\u043f\u043b\u0435\u044f. \u0420\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u043c\u044b\u0439 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u043d\u0430 \u043f\u043b\u0430\u0442\u0435 \u0438\u043c\u0435\u0435\u0442 \u0440\u0435\u0433\u0443\u043b\u044f\u0442\u043e\u0440 \u043a\u043e\u043d\u0442\u0440\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438, \u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0438 \u0431\u0435\u0437 \u043d\u0435\u0433\u043e, \u0442\u043e\u0433\u0434\u0430 \u043d\u0430 \u0432\u0445\u043e\u0434 Vo \u043f\u043e\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u0441 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u043e\u043c\u0435\u0442\u0440\u0430 (\u0441\u043c. \u0441\u0445\u0435\u043c\u0443).<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-08-24-21-28-48.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-129020 aligncenter\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-08-24-21-28-48.png\" alt=\"\" width=\"114\" height=\"116\" \/><\/a><\/p>\n<p style=\"text-align: center;\">\u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u043e\u043c\u0435\u0442\u0440<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-08-24-21-57-51.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-129029\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-08-24-21-57-51.png\" alt=\"\" width=\"456\" height=\"336\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-08-24-21-57-51.png 456w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-08-24-21-57-51-200x147.png 200w\" sizes=\"auto, (max-width: 456px) 100vw, 456px\" \/><\/a><\/p>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0434\u0438\u0441\u043f\u043b\u0435\u044f \u043a Arduino Nano:<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr>\n<td style=\"width: 50%; text-align: center;\"><strong>\u0414\u0438\u0441\u043f\u043b\u0435\u0439<\/strong><\/td>\n<td style=\"width: 50%; text-align: center;\"><strong>Arduino<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%; text-align: center;\"><strong style=\"font-family: Arial, sans-serif;\">Vss<\/strong><span style=\"font-family: Arial, sans-serif;\">\u00a0\u0438\u043b\u0438\u00a0<\/span><strong style=\"font-family: Arial, sans-serif;\">GND<\/strong><\/td>\n<td style=\"width: 50%; text-align: center;\">GND<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%; text-align: center;\"><strong style=\"font-family: Arial, sans-serif; text-align: start;\">Vdd<\/strong><span style=\"font-family: Arial, sans-serif; text-align: start;\">\u00a0\u0438\u043b\u0438\u00a0<\/span><strong style=\"font-family: Arial, sans-serif; text-align: start;\">VCC<\/strong><span style=\"font-family: Arial, sans-serif; text-align: start;\">\u00a0<\/span><\/td>\n<td style=\"width: 50%; text-align: center;\">+5V<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%; text-align: center;\"><strong>Vo<\/strong><\/td>\n<td style=\"width: 50%; text-align: center;\">\u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f (\u0441\u043c. \u0432\u044b\u0448\u0435)<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%; text-align: center;\"><strong>RS<\/strong><\/td>\n<td style=\"width: 50%; text-align: center;\">D12<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%; text-align: center;\"><strong>R\/W<\/strong><\/td>\n<td style=\"width: 50%; text-align: center;\">D11<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%; text-align: center;\"><strong>E<\/strong><\/td>\n<td style=\"width: 50%; text-align: center;\">D10<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%; text-align: center;\"><strong style=\"font-family: Arial, sans-serif; text-align: start;\">PSB<\/strong><\/td>\n<td style=\"width: 50%; text-align: center;\">GND<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%; text-align: center;\"><strong style=\"font-family: Arial, sans-serif; text-align: start;\">BLA<\/strong><strong style=\"font-family: Arial, sans-serif; text-align: start;\"><br \/>\n<\/strong><\/td>\n<td style=\"width: 50%; text-align: center;\">+3.3V<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 50%; text-align: center;\"><strong style=\"font-family: Arial, sans-serif; text-align: start;\">BLK<\/strong><strong style=\"font-family: Arial, sans-serif; text-align: start;\"><br \/>\n<\/strong><\/td>\n<td style=\"width: 50%; text-align: center;\">GND<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u041f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0434\u0438\u0441\u043f\u043b\u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443\u00a0<strong>U8glib\u00a0<\/strong>, \u0432 \u043f\u0430\u043f\u043a\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0441\u043a\u0435\u0442\u0447\u0435\u0439. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u043c\u043e\u0436\u043d\u043e \u0447\u0435\u0440\u0435\u0437 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a Arduino IDE.<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-08-24-20-12-30.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-129023\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-08-24-20-12-30.png\" alt=\"\" width=\"1001\" height=\"564\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-08-24-20-12-30.png 1001w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-08-24-20-12-30-500x282.png 500w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-08-24-20-12-30-200x113.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-08-24-20-12-30-768x433.png 768w\" sizes=\"auto, (max-width: 1001px) 100vw, 1001px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">\u041f\u0440\u0438\u043c\u0435\u0440 1<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-08-24-21-13-17-1.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-129024\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-08-24-21-13-17-1.png\" alt=\"\" width=\"469\" height=\"355\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-08-24-21-13-17-1.png 469w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-08-24-21-13-17-1-200x151.png 200w\" sizes=\"auto, (max-width: 469px) 100vw, 469px\" \/><\/a><\/p>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 10px;\"><span style=\"color: #808080; font-style: italic;\">#include &lt;U8glib.h&gt; <\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#include \"rus6x10.h\" \/\/ http:\/\/forum.rcl-radio.ru\/misc.php?action=pan_download&amp;item=717&amp;download=1<\/span>\r\n\u00a0\r\nU8GLIB_ST7920_128X64 u8g<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">10<\/span>, <span style=\"color: #cc66cc;\">11<\/span>, <span style=\"color: #cc66cc;\">12<\/span>, U8G_PIN_NONE<span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0438\u043d\u043e\u0432<\/span>\r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> draw<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n  u8g.<span style=\"color: #006600;\">setRot180<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  u8g.<span style=\"color: #006600;\">setFont<\/span><span style=\"color: #66cc66;\">(<\/span>u8g_font_unifont<span style=\"color: #66cc66;\">)<\/span>;\r\n  u8g.<span style=\"color: #006600;\">drawStr<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">15<\/span>, <span style=\"color: #cc66cc;\">12<\/span>, <span style=\"color: #ff0000;\">\"RCL-RADIO.RU\"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  u8g.<span style=\"color: #006600;\">drawLine<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>, <span style=\"color: #cc66cc;\">15<\/span>, <span style=\"color: #cc66cc;\">128<\/span>, <span style=\"color: #cc66cc;\">15<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  u8g.<span style=\"color: #006600;\">setFont<\/span><span style=\"color: #66cc66;\">(<\/span>u8g_font_6x12<span style=\"color: #66cc66;\">)<\/span>;\r\n  u8g.<span style=\"color: #006600;\">drawStr<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">45<\/span>, <span style=\"color: #cc66cc;\">25<\/span>, <span style=\"color: #ff0000;\">\"ST7920\"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  u8g.<span style=\"color: #006600;\">setColorIndex<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span>;           \r\n  u8g.<span style=\"color: #006600;\">drawBox<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>, <span style=\"color: #cc66cc;\">35<\/span>, <span style=\"color: #cc66cc;\">128<\/span>, <span style=\"color: #cc66cc;\">20<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  u8g.<span style=\"color: #006600;\">setFont<\/span><span style=\"color: #66cc66;\">(<\/span>u8g_font_unifont<span style=\"color: #66cc66;\">)<\/span>;\r\n  u8g.<span style=\"color: #006600;\">setColorIndex<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  u8g.<span style=\"color: #006600;\">drawStr<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">35<\/span>, <span style=\"color: #cc66cc;\">50<\/span>, <span style=\"color: #ff0000;\">\"ARDUINO\"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  u8g.<span style=\"color: #006600;\">setColorIndex<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span>; \r\n  u8g.<span style=\"color: #006600;\">setFont<\/span><span style=\"color: #66cc66;\">(<\/span>rus6x10<span style=\"color: #66cc66;\">)<\/span>;\r\n  u8g.<span style=\"color: #006600;\">drawStr<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">45<\/span>, <span style=\"color: #cc66cc;\">64<\/span>, <span style=\"color: #ff0000;\">\"\u041f\u0420\u0418\u0412\u0415\u0422\"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n<span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> setup<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n<span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> loop<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n  u8g.<span style=\"color: #006600;\">firstPage<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;  \r\n  <span style=\"color: #b1b100;\">do<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n    draw<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #66cc66;\">}<\/span> <span style=\"color: #b1b100;\">while<\/span><span style=\"color: #66cc66;\">(<\/span> u8g.<span style=\"color: #006600;\">nextPage<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">)<\/span>;\r\n<span style=\"color: #66cc66;\">}<\/span><\/pre>\n<p>\u0414\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0440\u0443\u0441\u0441\u043a\u043e\u0433\u043e \u0448\u0440\u0438\u0444\u0442\u0430 \u0441\u043a\u0430\u0447\u0430\u0439\u0442\u0435\u00a0<strong><a href=\"http:\/\/forum.rcl-radio.ru\/misc.php?action=pan_download&amp;item=717&amp;download=1\">\u0430\u0440\u0445\u0438\u0432<\/a><\/strong>\u00a0\u0448\u0440\u0438\u0444\u0442\u0430 \u0438 \u0440\u0430\u0441\u043f\u0430\u043a\u0443\u0439\u0442\u0435 \u0435\u0433\u043e \u0432 \u043f\u0430\u043f\u043a\u0443 \u0441\u043e \u0441\u043a\u0435\u0442\u0447\u0435\u043c.<\/p>\n<p style=\"text-align: center;\">\u041f\u0440\u0438\u043c\u0435\u0440 2<\/p>\n<p>\u041d\u0438\u0436\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d \u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0447\u0430\u0441\u043e\u0432, \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043c\u043e\u0434\u0443\u043b\u044c \u0447\u0430\u0441\u043e\u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 DS3231. \u0412\u0440\u0435\u043c\u044f \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438.<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-08-24-21-50-11.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-129025\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-08-24-21-50-11.png\" alt=\"\" width=\"505\" height=\"327\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-08-24-21-50-11.png 505w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-08-24-21-50-11-500x324.png 500w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/08\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-08-24-21-50-11-200x130.png 200w\" sizes=\"auto, (max-width: 505px) 100vw, 505px\" \/><\/a><\/p>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 10px;\"><span style=\"color: #808080; font-style: italic;\">#include &lt;U8glib.h&gt; <\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#include \"rus6x10.h\" \/\/ http:\/\/forum.rcl-radio.ru\/misc.php?action=pan_download&amp;item=717&amp;download=1<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#include \"digits32.h\" \/\/ http:\/\/forum.rcl-radio.ru\/misc.php?action=pan_download&amp;item=718&amp;download=1<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#include &lt;Wire.h&gt;<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#include &lt;DS3231.h&gt;\/\/ http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/08\/DS3231.zip<\/span>\r\nDS3231 clock;RTCDateTime DateTime;\r\nU8GLIB_ST7920_128X64 u8g<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">10<\/span>, <span style=\"color: #cc66cc;\">11<\/span>, <span style=\"color: #cc66cc;\">12<\/span>, U8G_PIN_NONE<span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0438\u043d\u043e\u0432<\/span>\r\n\u00a0\r\nchar <span style=\"color: #66cc66;\">*<\/span> mes<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">12<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">{<\/span><span style=\"color: #ff0000;\">\"\u042f\u041d\u0412\u0410\u0420\u042f\"<\/span>,<span style=\"color: #ff0000;\">\"\u0424\u0415\u0412\u0420\u0410\u041b\u042f\"<\/span>,<span style=\"color: #ff0000;\">\"\u041c\u0410\u0420\u0422\u0410\"<\/span>,<span style=\"color: #ff0000;\">\"\u0410\u041f\u0420\u0415\u041b\u042f\"<\/span>,<span style=\"color: #ff0000;\">\"\u041c\u0410\u042f\"<\/span>,<span style=\"color: #ff0000;\">\"\u0418\u042e\u041d\u042f\"<\/span>,<span style=\"color: #ff0000;\">\"\u0418\u042e\u041b\u042f\"<\/span>,<span style=\"color: #ff0000;\">\"\u0410\u0412\u0413\u0423\u0421\u0422\u0410\"<\/span>,<span style=\"color: #ff0000;\">\"\u0421\u0415\u041d\u0422\u042f\u0411\u0420\u042f\"<\/span>,<span style=\"color: #ff0000;\">\"\u041e\u041a\u0422\u042f\u0411\u0420\u042f\"<\/span>,<span style=\"color: #ff0000;\">\"\u041d\u041e\u042f\u0411\u0420\u042f\"<\/span>,<span style=\"color: #ff0000;\">\"\u0414\u0415\u041a\u0410\u0411\u0420\u042f\"<\/span><span style=\"color: #66cc66;\">}<\/span>;   \r\n char <span style=\"color: #66cc66;\">*<\/span> den<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">7<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">{<\/span><span style=\"color: #ff0000;\">\"\u0412\u041e\u0421\u041a\u0420\u0415\u0421\u0415\u041d\u042c\u0415\"<\/span>,<span style=\"color: #ff0000;\">\"\u041f\u041e\u041d\u0415\u0414\u0415\u041b\u042c\u041d\u0418\u041a\"<\/span>,<span style=\"color: #ff0000;\">\"\u0412\u0422\u041e\u0420\u041d\u0418\u041a\"<\/span>,<span style=\"color: #ff0000;\">\"\u0421\u0420\u0415\u0414\u0410\"<\/span>,<span style=\"color: #ff0000;\">\"\u0427\u0415\u0422\u0412\u0415\u0420\u0413\"<\/span>,<span style=\"color: #ff0000;\">\"\u041f\u042f\u0422\u041d\u0418\u0426\u0410\"<\/span>,<span style=\"color: #ff0000;\">\"\u0421\u0423\u0411\u0411\u041e\u0422\u0410\"<\/span><span style=\"color: #66cc66;\">}<\/span>;                 \r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> draw<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n  u8g.<span style=\"color: #006600;\">setRot180<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  u8g.<span style=\"color: #006600;\">setFont<\/span><span style=\"color: #66cc66;\">(<\/span>rus6x10<span style=\"color: #66cc66;\">)<\/span>;\r\n  u8g.<span style=\"color: #006600;\">setPrintPos<\/span><span style=\"color: #66cc66;\">(<\/span> <span style=\"color: #cc66cc;\">10<\/span>, <span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span>;  u8g.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>DateTime.<span style=\"color: #006600;\">day<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  u8g.<span style=\"color: #006600;\">drawStr<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">26<\/span>, <span style=\"color: #cc66cc;\">10<\/span>, mes<span style=\"color: #66cc66;\">[<\/span>DateTime.<span style=\"color: #006600;\">month<\/span>-<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  u8g.<span style=\"color: #006600;\">drawStr<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">75<\/span>, <span style=\"color: #cc66cc;\">10<\/span>, den<span style=\"color: #66cc66;\">[<\/span>DateTime.<span style=\"color: #006600;\">dayOfWeek<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  u8g.<span style=\"color: #006600;\">setFont<\/span><span style=\"color: #66cc66;\">(<\/span>digits32<span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>DateTime.<span style=\"color: #006600;\">hour<\/span><span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #cc66cc;\">10<\/span>==<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>u8g.<span style=\"color: #006600;\">setPrintPos<\/span><span style=\"color: #66cc66;\">(<\/span> <span style=\"color: #cc66cc;\">15<\/span>, <span style=\"color: #cc66cc;\">47<\/span><span style=\"color: #66cc66;\">)<\/span>; u8g.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>DateTime.<span style=\"color: #006600;\">hour<\/span> <span style=\"color: #66cc66;\">\/<\/span> <span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #b1b100;\">else<\/span><span style=\"color: #66cc66;\">{<\/span>u8g.<span style=\"color: #006600;\">setPrintPos<\/span><span style=\"color: #66cc66;\">(<\/span> <span style=\"color: #cc66cc;\">1<\/span>, <span style=\"color: #cc66cc;\">47<\/span><span style=\"color: #66cc66;\">)<\/span>;  u8g.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>DateTime.<span style=\"color: #006600;\">hour<\/span> <span style=\"color: #66cc66;\">\/<\/span> <span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>DateTime.<span style=\"color: #006600;\">hour<\/span><span style=\"color: #66cc66;\">%<\/span>10==<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>u8g.<span style=\"color: #006600;\">setPrintPos<\/span><span style=\"color: #66cc66;\">(<\/span> <span style=\"color: #cc66cc;\">34<\/span>, <span style=\"color: #cc66cc;\">47<\/span><span style=\"color: #66cc66;\">)<\/span>; u8g.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>DateTime.<span style=\"color: #006600;\">hour<\/span> <span style=\"color: #66cc66;\">%<\/span> <span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #b1b100;\">else<\/span><span style=\"color: #66cc66;\">{<\/span>u8g.<span style=\"color: #006600;\">setPrintPos<\/span><span style=\"color: #66cc66;\">(<\/span> <span style=\"color: #cc66cc;\">20<\/span>, <span style=\"color: #cc66cc;\">47<\/span><span style=\"color: #66cc66;\">)<\/span>; u8g.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>DateTime.<span style=\"color: #006600;\">hour<\/span> <span style=\"color: #66cc66;\">%<\/span> <span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  u8g.<span style=\"color: #006600;\">setPrintPos<\/span><span style=\"color: #66cc66;\">(<\/span> <span style=\"color: #cc66cc;\">39<\/span>, <span style=\"color: #cc66cc;\">47<\/span><span style=\"color: #66cc66;\">)<\/span>; u8g.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\":\"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>DateTime.<span style=\"color: #006600;\">minute<\/span><span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #cc66cc;\">10<\/span>==<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>u8g.<span style=\"color: #006600;\">setPrintPos<\/span><span style=\"color: #66cc66;\">(<\/span> <span style=\"color: #cc66cc;\">59<\/span>, <span style=\"color: #cc66cc;\">47<\/span><span style=\"color: #66cc66;\">)<\/span>; u8g.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>DateTime.<span style=\"color: #006600;\">minute<\/span> <span style=\"color: #66cc66;\">\/<\/span> <span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #b1b100;\">else<\/span><span style=\"color: #66cc66;\">{<\/span>u8g.<span style=\"color: #006600;\">setPrintPos<\/span><span style=\"color: #66cc66;\">(<\/span> <span style=\"color: #cc66cc;\">45<\/span>, <span style=\"color: #cc66cc;\">47<\/span><span style=\"color: #66cc66;\">)<\/span>; u8g.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>DateTime.<span style=\"color: #006600;\">minute<\/span> <span style=\"color: #66cc66;\">\/<\/span> <span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>DateTime.<span style=\"color: #006600;\">minute<\/span><span style=\"color: #66cc66;\">%<\/span>10==<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>u8g.<span style=\"color: #006600;\">setPrintPos<\/span><span style=\"color: #66cc66;\">(<\/span> <span style=\"color: #cc66cc;\">78<\/span>, <span style=\"color: #cc66cc;\">47<\/span><span style=\"color: #66cc66;\">)<\/span>; u8g.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>DateTime.<span style=\"color: #006600;\">minute<\/span> <span style=\"color: #66cc66;\">%<\/span> <span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #b1b100;\">else<\/span><span style=\"color: #66cc66;\">{<\/span>u8g.<span style=\"color: #006600;\">setPrintPos<\/span><span style=\"color: #66cc66;\">(<\/span> <span style=\"color: #cc66cc;\">64<\/span>, <span style=\"color: #cc66cc;\">47<\/span><span style=\"color: #66cc66;\">)<\/span>; u8g.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>DateTime.<span style=\"color: #006600;\">minute<\/span> <span style=\"color: #66cc66;\">%<\/span> <span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  u8g.<span style=\"color: #006600;\">setPrintPos<\/span><span style=\"color: #66cc66;\">(<\/span> <span style=\"color: #cc66cc;\">83<\/span>, <span style=\"color: #cc66cc;\">47<\/span><span style=\"color: #66cc66;\">)<\/span>; u8g.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\":\"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>DateTime.<span style=\"color: #006600;\">second<\/span><span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #cc66cc;\">10<\/span>==<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>u8g.<span style=\"color: #006600;\">setPrintPos<\/span><span style=\"color: #66cc66;\">(<\/span> <span style=\"color: #cc66cc;\">103<\/span>, <span style=\"color: #cc66cc;\">47<\/span><span style=\"color: #66cc66;\">)<\/span>; u8g.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>DateTime.<span style=\"color: #006600;\">second<\/span> <span style=\"color: #66cc66;\">\/<\/span> <span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #b1b100;\">else<\/span><span style=\"color: #66cc66;\">{<\/span>u8g.<span style=\"color: #006600;\">setPrintPos<\/span><span style=\"color: #66cc66;\">(<\/span> <span style=\"color: #cc66cc;\">89<\/span>, <span style=\"color: #cc66cc;\">47<\/span><span style=\"color: #66cc66;\">)<\/span>; u8g.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>DateTime.<span style=\"color: #006600;\">second<\/span> <span style=\"color: #66cc66;\">\/<\/span> <span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>DateTime.<span style=\"color: #006600;\">second<\/span><span style=\"color: #66cc66;\">%<\/span>10==<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>u8g.<span style=\"color: #006600;\">setPrintPos<\/span><span style=\"color: #66cc66;\">(<\/span> <span style=\"color: #cc66cc;\">122<\/span>, <span style=\"color: #cc66cc;\">47<\/span><span style=\"color: #66cc66;\">)<\/span>; u8g.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>DateTime.<span style=\"color: #006600;\">second<\/span> <span style=\"color: #66cc66;\">%<\/span> <span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #b1b100;\">else<\/span><span style=\"color: #66cc66;\">{<\/span>u8g.<span style=\"color: #006600;\">setPrintPos<\/span><span style=\"color: #66cc66;\">(<\/span> <span style=\"color: #cc66cc;\">108<\/span>, <span style=\"color: #cc66cc;\">47<\/span><span style=\"color: #66cc66;\">)<\/span>; u8g.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>DateTime.<span style=\"color: #006600;\">second<\/span> <span style=\"color: #66cc66;\">%<\/span> <span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n <span style=\"color: #808080; font-style: italic;\">\/\/ u8g.drawLine(0, 15, 128, 15);<\/span>\r\n  u8g.<span style=\"color: #006600;\">setFont<\/span><span style=\"color: #66cc66;\">(<\/span>u8g_font_unifont<span style=\"color: #66cc66;\">)<\/span>;\r\n  u8g.<span style=\"color: #006600;\">drawStr<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">20<\/span>, <span style=\"color: #cc66cc;\">60<\/span>, <span style=\"color: #ff0000;\">\"TEMP\"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  u8g.<span style=\"color: #006600;\">setPrintPos<\/span><span style=\"color: #66cc66;\">(<\/span> <span style=\"color: #cc66cc;\">60<\/span>, <span style=\"color: #cc66cc;\">60<\/span><span style=\"color: #66cc66;\">)<\/span>;  u8g.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>clock.<span style=\"color: #006600;\">readTemperature<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>,<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  u8g.<span style=\"color: #006600;\">drawStr<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">100<\/span>, <span style=\"color: #cc66cc;\">60<\/span>, <span style=\"color: #ff0000;\">\"C\"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n\u00a0\r\n<span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> setup<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n  Wire.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>; \r\n  clock.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n <span style=\"color: #808080; font-style: italic;\">\/\/ clock.setDateTime(__DATE__, __TIME__); \/\/ \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438<\/span>\r\n<span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> loop<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n   DateTime=clock.<span style=\"color: #006600;\">getDateTime<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  u8g.<span style=\"color: #006600;\">firstPage<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;  \r\n  <span style=\"color: #b1b100;\">do<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n    draw<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #66cc66;\">}<\/span> <span style=\"color: #b1b100;\">while<\/span><span style=\"color: #66cc66;\">(<\/span> u8g.<span style=\"color: #006600;\">nextPage<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">)<\/span>;\r\n<span style=\"color: #66cc66;\">}<\/span><\/pre>\n<p>\u0414\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0441\u0435\u043c\u0438\u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043d\u044b\u0445 \u0446\u0438\u0444\u0440 \u0441\u043a\u0430\u0447\u0430\u0439\u0442\u0435 <strong><a href=\"http:\/\/forum.rcl-radio.ru\/misc.php?action=pan_download&amp;item=718&amp;download=1\">\u0430\u0440\u0445\u0438\u0432<\/a><\/strong>\u00a0\u0448\u0440\u0438\u0444\u0442\u0430 \u0438 \u0440\u0430\u0441\u043f\u0430\u043a\u0443\u0439\u0442\u0435 \u0435\u0433\u043e \u0432 \u043f\u0430\u043f\u043a\u0443 \u0441\u043e \u0441\u043a\u0435\u0442\u0447\u0435\u043c.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0413\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0434\u0438\u0441\u043f\u043b\u0435\u0439 12864b v2.0 (ST7920) \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0416\u041a-\u043c\u0430\u0442\u0440\u0438\u0446\u0443 \u0441 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0432 128\u00a0 \u043d\u0430 64 \u0442\u043e\u0447\u0435\u043a, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0438 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438. \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 8\/4-\u0431\u0438\u0442\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u043e\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430\/\u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430 ST7290. \u0422\u0430\u043a\u0436\u0435 \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u043e \u0448\u0438\u043d\u0435 PSB (\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 SPI), \u0438\u043c\u0435\u043d\u043d\u043e \u0432 \u044d\u0442\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":129025,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[239,21],"tags":[],"class_list":["post-129018","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-21"],"views":9384,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/129018","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=129018"}],"version-history":[{"count":5,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/129018\/revisions"}],"predecessor-version":[{"id":129080,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/129018\/revisions\/129080"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/129025"}],"wp:attachment":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=129018"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=129018"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=129018"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}