{"id":339996,"date":"2022-10-20T09:00:52","date_gmt":"2022-10-20T09:00:52","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=339996"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=339996","title":{"rendered":"<span>\u041a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0435 \u0447\u0430\u0441\u044b<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0421\u0434\u0435\u043b\u0430\u0442\u044c \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0435 \u0447\u0430\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u0446\u0432\u0435\u0442\u043d\u043e\u043c \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u043c TFT-\u0434\u0438\u0441\u043f\u043b\u0435\u0435\u2026 \u041f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u0438 \u0434\u0430? <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/4bd\/54d\/659\/4bd54d659d390d15066ebc2e5fb9a381.jpeg\" alt=\"\u0410\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0435 \u0447\u0430\u0441\u044b \u043d\u0430 \u0431\u0430\u0437\u0435 ATtiny814, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442 \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u0446\u0432\u0435\u0442\u043d\u043e\u043c TFT-\u0434\u0438\u0441\u043f\u043b\u0435\u0435 \u0441 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c 240x240\" title=\"\u0410\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0435 \u0447\u0430\u0441\u044b \u043d\u0430 \u0431\u0430\u0437\u0435 ATtiny814, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442 \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u0446\u0432\u0435\u0442\u043d\u043e\u043c TFT-\u0434\u0438\u0441\u043f\u043b\u0435\u0435 \u0441 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c 240x240\" width=\"1360\" height=\"800\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4bd\/54d\/659\/4bd54d659d390d15066ebc2e5fb9a381.jpeg\" data-blurred=\"true\"\/><figcaption>\u0410\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0435 \u0447\u0430\u0441\u044b \u043d\u0430 \u0431\u0430\u0437\u0435 ATtiny814, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442 \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u0446\u0432\u0435\u0442\u043d\u043e\u043c TFT-\u0434\u0438\u0441\u043f\u043b\u0435\u0435 \u0441 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c 240&#215;240<\/figcaption><\/figure>\n<p>\u0412 \u0447\u0430\u0441\u0430\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u0432\u0430\u0440\u0446\u0435\u0432\u044b\u0439 \u043e\u0441\u0446\u0438\u043b\u043b\u044f\u0442\u043e\u0440 \u0434\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f \u0442\u043e\u0447\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439 \u0441 TFT-\u0434\u0438\u0441\u043f\u043b\u0435\u044f, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 <a href=\"http:\/\/www.technoblogy.com\/show?3UEJ\">\u0447\u0442\u0435\u043d\u0438\u0435 \u0441 TFT-\u0434\u0438\u0441\u043f\u043b\u0435\u044f<\/a>.\u00a0<\/p>\n<p>\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 \u043c\u0430\u043a\u0435\u0442\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u0435. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"http:\/\/www.technoblogy.com\/show?3JCM\">\u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f TFT <\/a>\u0434\u0438\u0441\u043f\u043b\u0435\u044f.<\/p>\n<h3>\u041a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442<\/h3>\n<p>\u0411\u0435\u0437 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439 \u0441 \u0434\u0438\u0441\u043f\u043b\u0435\u044f \u0432\u0430\u043c \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0431\u044b \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0432\u0435\u0441\u044c \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u043b\u044e\u0431\u0430\u044f \u0438\u0437 \u0441\u0442\u0440\u0435\u043b\u043e\u043a \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u0442 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435, \u0430 \u044d\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0435\u043a\u0443\u043d\u0434\u0443 (\u0435\u0441\u043b\u0438 \u0443 \u0447\u0430\u0441\u043e\u0432 \u0435\u0441\u0442\u044c \u0441\u0435\u043a\u0443\u043d\u0434\u043d\u0430\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0430). \u0427\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0435\u043a\u0443\u043d\u0434\u0443, \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440.<\/p>\n<p>\u042d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0446\u0432\u0435\u0442\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u043f\u043e \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0443 \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0435\u0433\u043e \u201c\u0438\u043b\u0438\u201d \u0441 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442\u0430. \u0412 \u0438\u0442\u043e\u0433\u0435 \u0441\u0442\u0440\u0435\u043b\u043a\u0430 \u0443\u0434\u0430\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0444\u043e\u043d \u043f\u043e\u0434 \u043d\u0435\u0439 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c\u0443 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044e, \u0430 \u043f\u043e\u0442\u043e\u043c \u0441\u0442\u0440\u0435\u043b\u043a\u0430 \u0440\u0438\u0441\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u043d\u043e\u0432\u043e\u043c \u043c\u0435\u0441\u0442\u0435. \u0418 \u0442\u043e\u0433\u0434\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043f\u043e\u0434 \u0441\u0442\u0440\u0435\u043b\u043a\u0430\u043c\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0446\u0438\u0444\u0440\u044b \u0447\u0430\u0441\u043e\u0432) \u043d\u0435 \u0441\u0442\u0438\u0440\u0430\u044e\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442 \u043d\u0430\u0434 \u043d\u0438\u043c\u0438.<\/p>\n<h3>\u041f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0434\u0438\u0441\u043f\u043b\u0435\u0438<\/h3>\n<p>\u0427\u0430\u0441\u044b \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u044b \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 TFT-\u0434\u0438\u0441\u043f\u043b\u0435\u0435\u043c RGB \u0441 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c 240&#215;240 \u0438\u043b\u0438 320&#215;240, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c \u043d\u0430 AliExpress. \u0415\u0441\u0442\u044c \u0442\u0430\u043a\u0436\u0435 \u0432\u0435\u0440\u0441\u0438\u044f \u0441 \u0431\u043e\u043b\u0435\u0435 \u043d\u0438\u0437\u043a\u0438\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u0435 128&#215;128 \u0438\u043b\u0438 160&#215;128 (\u0441\u043c. <a href=\"http:\/\/www.technoblogy.com\/show?3ZWB#lower-resolution-version\">\u0432\u0435\u0440\u0441\u0438\u044e \u0441 \u0431\u043e\u043b\u0435\u0435 \u043d\u0438\u0437\u043a\u0438\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c<\/a>). <\/p>\n<p>\u041f\u043e\u0434\u0445\u043e\u0434\u044f\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0438\u0441\u043f\u043b\u0435\u0438:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"148\" width=\"148\">\n<p align=\"left\"><strong>\u0413\u0434\u0435 \u0431\u0440\u0430\u0442\u044c<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"73\" width=\"73\">\n<p align=\"left\"><strong>\u0420\u0430\u0437\u043c\u0435\u0440<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p align=\"left\"><strong>\u0428\u0438\u0440\u0438\u043d\u0430<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"73\" width=\"73\">\n<p align=\"left\"><strong>\u0412\u044b\u0441\u043e\u0442\u0430<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u041d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"83\" width=\"83\">\n<p align=\"left\"><strong>\u0414\u0440\u0430\u0439\u0432\u0435\u0440<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u0421\u0441\u044b\u043b\u043a\u0430<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"148\" width=\"148\">\n<p align=\"left\">AliExpress<\/p>\n<\/td>\n<td data-colwidth=\"73\" width=\"73\">\n<p align=\"left\">1,54 \u0434\u044e\u0439\u043c\u0430<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p align=\"left\">240<\/p>\n<\/td>\n<td data-colwidth=\"73\" width=\"73\">\n<p align=\"left\">240<\/p>\n<\/td>\n<td>\n<p align=\"left\">3,3 \u0412<\/p>\n<\/td>\n<td data-colwidth=\"83\" width=\"83\">\n<p align=\"left\">ST7789<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/www.aliexpress.com\/item\/1005001520083435.html\">1,54-\u0434\u044e\u0439\u043c\u043e\u0432\u044b\u0439 \u0416\u041a-\u0434\u0438\u0441\u043f\u043b\u0435\u0439 TFT 240&#215;240<\/a>\u00a0 *<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"148\" width=\"148\">\n<p align=\"left\">AliExpress<\/p>\n<\/td>\n<td data-colwidth=\"73\" width=\"73\">\n<p align=\"left\">2,0 \u0434\u044e\u0439\u043c\u0430<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p align=\"left\">320<\/p>\n<\/td>\n<td data-colwidth=\"73\" width=\"73\">\n<p align=\"left\">240<\/p>\n<\/td>\n<td>\n<p align=\"left\">3,3 \u0412<\/p>\n<\/td>\n<td data-colwidth=\"83\" width=\"83\">\n<p align=\"left\">ST7789V<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/www.aliexpress.com\/item\/1005002363748586.html\">2,0-\u0434\u044e\u0439\u043c\u043e\u0432\u044b\u0439 \u0416\u041a-\u0434\u0438\u0441\u043f\u043b\u0435\u0439 TFT 240&#215;320<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"148\" width=\"148\">\n<p align=\"left\">AliExpress<\/p>\n<\/td>\n<td data-colwidth=\"73\" width=\"73\">\n<p align=\"left\">1,44 \u0434\u044e\u0439\u043c\u0430<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p align=\"left\">128<\/p>\n<\/td>\n<td data-colwidth=\"73\" width=\"73\">\n<p align=\"left\">128<\/p>\n<\/td>\n<td>\n<p align=\"left\">3,3 \u0412<\/p>\n<\/td>\n<td data-colwidth=\"83\" width=\"83\">\n<p align=\"left\">ST7735S<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/www.aliexpress.com\/item\/1005003782907800.html\">1,44-\u0434\u044e\u0439\u043c\u043e\u0432\u044b\u0439 TFT-\u0434\u0438\u0441\u043f\u043b\u0435\u0439 128&#215;128 SPI<\/a>\u00a0 *<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"148\" width=\"148\">\n<p align=\"left\">AliExpress<\/p>\n<\/td>\n<td data-colwidth=\"73\" width=\"73\">\n<p align=\"left\">1,8 \u0434\u044e\u0439\u043c\u0430<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p align=\"left\">160<\/p>\n<\/td>\n<td data-colwidth=\"73\" width=\"73\">\n<p align=\"left\">128<\/p>\n<\/td>\n<td>\n<p align=\"left\">3,3 \u0412<\/p>\n<\/td>\n<td data-colwidth=\"83\" width=\"83\">\n<p align=\"left\">ST7735<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/www.aliexpress.com\/item\/1005002902607351.html\">1,8-\u0434\u044e\u0439\u043c\u043e\u0432\u044b\u0439 TFT-\u0434\u0438\u0441\u043f\u043b\u0435\u0439 128&#215;160 SPI<\/a>\u00a0 *<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><em>* \u0421\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c \u0441 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0434\u0438\u0441\u043f\u043b\u0435\u0435\u0432<\/em>.<\/p>\n<p>\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0434\u0438\u0441\u043f\u043b\u0435\u0438 Adafruit \u043d\u0435\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b \u0441 \u044d\u0442\u0438\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 \u0447\u0442\u0435\u043d\u0438\u0435 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439 \u0441 \u0434\u0438\u0441\u043f\u043b\u0435\u044f.<\/p>\n<h4>\u0421\u0445\u0435\u043c\u0430<\/h4>\n<p>\u0412\u043e\u0442 \u0441\u0445\u0435\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e \u0441\u0443\u0442\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0445\u0435\u043c\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0434\u0438\u0441\u043f\u043b\u0435\u044f:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/777\/266\/f43\/777266f435e7012a904a09e50bf88908.gif\" alt=\"\u0421\u0445\u0435\u043c\u0430 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0445 \u0447\u0430\u0441\u043e\u0432 \u043d\u0430 \u0431\u0430\u0437\u0435 ATtiny814\" title=\"\u0421\u0445\u0435\u043c\u0430 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0445 \u0447\u0430\u0441\u043e\u0432 \u043d\u0430 \u0431\u0430\u0437\u0435 ATtiny814\" width=\"923\" height=\"584\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/777\/266\/f43\/777266f435e7012a904a09e50bf88908.gif\"\/><figcaption>\u0421\u0445\u0435\u043c\u0430 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0445 \u0447\u0430\u0441\u043e\u0432 \u043d\u0430 \u0431\u0430\u0437\u0435 ATtiny814<\/figcaption><\/figure>\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 5 \u041a\u0431\u0430\u0439\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e ATtiny 1-\u0439 \u0441\u0435\u0440\u0438\u0438 \u043e\u0431\u044a\u0451\u043c\u043e\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 8 \u041a\u0431\u0430\u0439\u0442 (\u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 ATtiny814  \u0438 \u0434\u043e ATtiny3214). \u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0441\u0435\u0440\u0438\u0438 0 \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0442, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0442\u0430\u043a\u0442\u043e\u0432\u044b\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 2-\u0439 \u0441\u0435\u0440\u0438\u0438, \u043d\u043e \u044f \u0438\u0445 \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b.<\/p>\n<p>\u0414\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0447\u0430\u0441\u044b \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 ATtiny814, \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0442\u0430\u043a\u0442\u043e\u0432\u044b\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 32,768 \u043a\u0413\u0446. \u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u043d\u0435\u0434\u043e\u0440\u043e\u0433\u043e\u0439 \u0446\u0438\u043b\u0438\u043d\u0434\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0432\u0430\u0440\u0446\u0435\u0432\u044b\u0439 \u0440\u0435\u0437\u043e\u043d\u0430\u0442\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0431\u044b\u0447\u043d\u043e \u0438\u043c\u0435\u0435\u0442 \u043d\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u0443\u044e \u0451\u043c\u043a\u043e\u0441\u0442\u044c 12,5 \u043f\u0424. \u0414\u043b\u044f \u0440\u0430\u0441\u0447\u0451\u0442\u0430 \u0451\u043c\u043a\u043e\u0441\u0442\u0438 \u043a\u043e\u043d\u0434\u0435\u043d\u0441\u0430\u0442\u043e\u0440\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0444\u043e\u0440\u043c\u0443\u043b\u0443 C = 2(C<sub>L<\/sub>\u00a0&#8212; C<sub>S<\/sub>), \u0433\u0434\u0435 C<sub>L<\/sub> \u2014 \u0451\u043c\u043a\u043e\u0441\u0442\u044c \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438, \u0430 C<sub>S<\/sub> \u2014 \u043f\u0430\u0440\u0430\u0437\u0438\u0442\u043d\u0430\u044f \u0451\u043c\u043a\u043e\u0441\u0442\u044c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0431\u044b\u0447\u043d\u043e \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 2,5 \u043f\u0424 \u043d\u0430 \u043f\u0435\u0447\u0430\u0442\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u0435. \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e C=20 \u043f\u0424.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0441\u0445\u0435\u043c\u0430 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0430 \u043d\u0430 \u043c\u0430\u043a\u0435\u0442\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u0435, \u0432\u044b, \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0434\u0435\u043d\u0441\u0430\u0442\u043e\u0440\u044b, \u0442\u0430\u043a \u043a\u0430\u043a \u0438\u0445 \u0440\u043e\u043b\u044c \u0431\u0443\u0434\u0435\u0442 \u0438\u0433\u0440\u0430\u0442\u044c \u0441\u0430\u043c\u0430 \u043c\u0430\u043a\u0435\u0442\u043d\u0430\u044f \u043f\u043b\u0430\u0442\u0430.<\/p>\n<h3>\u0423\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f TFT-\u0434\u0438\u0441\u043f\u043b\u0435\u044f<\/h3>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430\u00a0 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u043f\u043e\u043c\u043e\u0449\u044c\u044e ATtiny814:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/425\/e77\/3a3\/425e773a3d25ab5965ac10da8335f42a.jpeg\" alt=\"\u0413\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0435 \u0447\u0430\u0441\u044b, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0435 \u043d\u0430 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0434\u0438\u0441\u043f\u043b\u0435\u044f\" title=\"\u0413\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0435 \u0447\u0430\u0441\u044b, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0435 \u043d\u0430 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0434\u0438\u0441\u043f\u043b\u0435\u044f\" width=\"1130\" height=\"560\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/425\/e77\/3a3\/425e773a3d25ab5965ac10da8335f42a.jpeg\" data-blurred=\"true\"\/><figcaption>\u0413\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0435 \u0447\u0430\u0441\u044b, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0435 \u043d\u0430 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0434\u0438\u0441\u043f\u043b\u0435\u044f<\/figcaption><\/figure>\n<h3>\u041a\u043e\u0434<\/h3>\n<p>\u0412 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0438\u0437 <a href=\"http:\/\/www.technoblogy.com\/show?3UEJ\">\u0441\u0442\u0430\u0442\u044c\u0438 \u00ab\u0427\u0442\u0435\u043d\u0438\u0435 \u0441 TFT-\u0434\u0438\u0441\u043f\u043b\u0435\u044f\u00bb<\/a>.<\/p>\n<h4>\u0420\u0438\u0441\u0443\u0435\u043c \u0444\u043e\u043d \u0447\u0430\u0441\u043e\u0432<\/h4>\n<p>\u041f\u043e\u0434\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 <strong>ClockFace()<\/strong> \u0440\u0438\u0441\u0443\u0435\u0442 \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442 \u0438 \u0446\u0438\u0444\u0440\u044b, \u043d\u043e \u0431\u0435\u0437 \u0441\u0442\u0440\u0435\u043b\u043e\u043a:<\/p>\n<pre><code>void ClockFace () {   int x0 = 120, y0 = 120, radius = 120;   MoveTo(x0, y0); fore = BLUE; DrawCircle(radius);   radius = radius - 2; fore = DARKBLUE; FillCircle(radius);   int x = 0, y = 118&lt;&lt;sca;   for (int i=0; i&lt;60; i++) {     \/\/ Hours and hour marks     if (i%5 == 0) {       fore = YELLOW;       MoveTo(x0+(x>>sca), y0+(y>>sca));       DrawTo(x0 + ((x*15)>>(sca+4)), y0 + ((y*15)>>(sca+4)));       scale = 2;       MoveTo(x0 + ((x>>sca)*13\/16) - 3*(1+(i==0))*2, y0 + ((y>>sca)*13\/16) - 8);       fore = GREEN; back = DARKBLUE;       if (i==0) PlotInt(12); else PlotInt(i\/5);       scale = 1;     }     for (int i=2;i--;) { x = x + (y*top)\/bot; y = y - (x*top)\/bot; }   } }<\/code><\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438 \u041c\u0438\u043d\u0441\u043a\u043e\u0433\u043e \u0434\u043b\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f 60 \u0442\u043e\u0447\u0435\u043a \u043f\u043e \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438 \u0431\u0435\u0437 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0441 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0439 \u0437\u0430\u043f\u044f\u0442\u043e\u0439 \u0438\u043b\u0438 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u043e\u0432. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <strong>top<\/strong> \/ <strong>bot<\/strong> \u0438\u043b\u0438 10\/191 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0431\u043b\u0438\u0437\u043a\u0438\u043c \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0435\u043d\u0438\u0435\u043c \u043a (2*\u03c0)\/120, \u0433\u0434\u0435 2*\u03c0 \u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0434\u0438\u0430\u043d \u0432 \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438. 120 \u2014 \u044d\u0442\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0434\u0435\u043b\u0435\u043d\u0438\u0439 \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438, \u0433\u0434\u0435 \u0434\u0432\u0430 \u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u043e\u0434\u043d\u043e\u0439 \u0441\u0435\u043a\u0443\u043d\u0434\u0435. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <strong>sca<\/strong> \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0447\u0442\u043e\u0431\u044b 2<sup>sca<\/sup>*118*top \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0438 \u0446\u0435\u043b\u043e\u043c\u0443 \u0447\u0438\u0441\u043b\u0443.<\/p>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0447\u0430\u0441\u043e\u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438<\/h3>\n<p>\u0414\u043b\u044f \u0430\u043a\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0439\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e RTC \u0432 ATtiny814, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0442\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043e\u0442 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0442\u0430\u043a\u0442\u043e\u0432\u043e\u0433\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 32,768 \u043a\u0413\u0446 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u043b\u043e \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435.<\/p>\n<p>\u041f\u043e\u0434\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u00a0 <strong>RTCSetup()<\/strong>\u00a0 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 \u043a\u0432\u0430\u0440\u0446\u0435\u0432\u044b\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440, \u0430 \u0437\u0430\u0442\u0435\u043c \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0435\u0433\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u0442\u0430\u043a\u0442\u043e\u0432\u043e\u0433\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u0434\u043b\u044f \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0439\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0447\u0430\u0441\u043e\u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438:<\/p>\n<pre><code>void RTCSetup () {   uint8_t temp;   \/\/ Initialize 32.768kHz Oscillator:    \/\/ Disable oscillator:   temp = CLKCTRL.XOSC32KCTRLA &amp; ~CLKCTRL_ENABLE_bm;    \/\/ Enable writing to protected register   CPU_CCP = CCP_IOREG_gc;   CLKCTRL.XOSC32KCTRLA = temp;    while (CLKCTRL.MCLKSTATUS &amp; CLKCTRL_XOSC32KS_bm);   \/\/ Wait until XOSC32KS is 0   temp = CLKCTRL.XOSC32KCTRLA &amp; ~CLKCTRL_SEL_bm;      \/\/ Use External Crystal      \/\/ Enable writing to protected register   CPU_CCP = CCP_IOREG_gc;   CLKCTRL.XOSC32KCTRLA = temp;   temp = CLKCTRL.XOSC32KCTRLA | CLKCTRL_ENABLE_bm;    \/\/ Enable oscillator      \/\/ Enable writing to protected register   CPU_CCP = CCP_IOREG_gc;   CLKCTRL.XOSC32KCTRLA = temp;      \/\/ Initialize RTC   while (RTC.STATUS > 0);                             \/\/ Wait until synchronized    \/\/ 32.768kHz External Crystal Oscillator (XOSC32K)   RTC.CLKSEL = RTC_CLKSEL_TOSC32K_gc;      \/\/ RTC Clock Cycles 32768, enabled ie 1Hz interrupt   RTC.PITCTRLA = RTC_PERIOD_CYC32768_gc;    RTC.PITINTCTRL = RTC_PI_bm;                         \/\/ Periodic Interrupt: enabled }  \/\/ Interrupt Service Routine called every second ISR(RTC_PIT_vect) {   RTC.PITINTFLAGS = RTC_PI_bm;                        \/\/ Clear interrupt flag   NextSecond(BOTH); }<\/code><\/pre>\n<p>\u041f\u043e \u0441\u0443\u0442\u0438, \u044d\u0442\u043e \u0442\u0430 \u0436\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0432 \u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u043d\u043d\u0438\u0445 \u0447\u0430\u0441\u0430\u0445 \u043d\u0430 \u0431\u0430\u0437\u0435 \u0447\u0438\u043f\u043e\u0432 ATtiny 1-\u0439 \u0441\u0435\u0440\u0438\u0438, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a\u00a0 <a href=\"http:\/\/www.technoblogy.com\/show?2OKF\">Mega Tiny Time Watch<\/a>.<\/p>\n<h3>\u0414\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u0435\u043b\u043e\u043a<\/h3>\n<p>\u041f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0435\u043a\u0443\u043d\u0434\u0443:<\/p>\n<pre><code>ISR(RTC_PIT_vect) {   RTC.PITINTFLAGS = RTC_PI_bm;                        \/\/ Clear interrupt flag   NextSecond(BOTH); }<\/code><\/pre>\n<p>\u041a\u043e\u0434 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 <strong>NextSecond()<\/strong> \u0434\u043b\u044f \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u0441\u0442\u0440\u0435\u043b\u043e\u043a, \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e:<\/p>\n<pre><code>void NextSecond (int draw) {   int x0 = 120, y0 = 120;   \/\/ Positions of hands   static int secx = 0, secy = 118&lt;&lt;sca;   static int minx = 0, miny = 118&lt;&lt;sca;   static int hrx = 0, hry = 86&lt;&lt;sca;   \/\/ Seconds and minutes   static uint8_t secs = 0, mins = 0;      \/\/ Advance second hand   fore = White;   if (draw &amp; UNDRAW) { MoveTo(x0, y0); DrawTo(x0+(secx>>sca), y0+(secy>>sca)); }   for (int i=2;i--;) { secx = secx + (secy*top)\/bot; secy = secy - (secx*top)\/bot; }   if (secs == 59) { secx = 0, secy = 118&lt;&lt;sca; }  \/\/ Realign   if (draw &amp; DRAW) { MoveTo(x0, y0); DrawTo(x0+(secx>>sca), y0+(secy>>sca)); }      \/\/ Advance hour hand every 12 mins   if (secs == 59 &amp;&amp; mins%12 == 0) {     fore = RED;     DrawHand(x0, y0, hrx>>sca, hry>>sca);     for (int i=2;i--;) { hrx = hrx + (hry*top)\/bot; hry = hry - (hrx*top)\/bot; }   } else if (secs == 0 &amp;&amp; mins%12 == 0) {     fore = RED;     DrawHand(x0, y0, hrx>>sca, hry>>sca);   }       \/\/ Advance minute hand every 60 secs   if (secs == 59) {     fore = PINK;     if (draw &amp; UNDRAW) DrawHand(x0, y0, minx>>sca, miny>>sca);     for (int i=2;i--;) {minx = minx + (miny*top)\/bot; miny = miny - (minx*top)\/bot; }   } else if (secs == 0) {     fore = PINK;     if (mins == 0) minx = 0, miny = 118&lt;&lt;sca;  \/\/ Realign     if (draw &amp; DRAW) DrawHand(x0, y0, minx>>sca, miny>>sca);     mins = (mins + 1)%60;   }   secs = (secs + 1)%60; }<\/code><\/pre>\n<p>\u0412 \u043a\u0430\u0436\u0434\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u0442\u0440\u0435\u043b\u043a\u0430 \u0440\u0438\u0441\u0443\u0435\u0442\u0441\u044f \u0434\u0432\u0430\u0436\u0434\u044b \u043f\u043e \u0441\u0445\u0435\u043c\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0435\u0433\u043e \u201c\u0438\u043b\u0438\u201d: \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u043f\u043e\u0437\u0438\u0446\u0438\u0438, \u0447\u0442\u043e\u0431\u044b \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u0430\u0440\u043e\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435, \u0438 \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0432 \u043d\u043e\u0432\u043e\u0439 \u043f\u043e\u0437\u0438\u0446\u0438\u0438, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u043e\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435.<\/p>\n<p>\u0421\u0435\u043a\u0443\u043d\u0434\u043d\u0430\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0430 \u0440\u0438\u0441\u0443\u0435\u0442\u0441\u044f \u0432 \u0432\u0438\u0434\u0435 \u043b\u0438\u043d\u0438\u0438 \u0438 \u043f\u0440\u043e\u0434\u0432\u0438\u0433\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0435\u043a\u0443\u043d\u0434\u0443.<\/p>\n<p>\u041c\u0438\u043d\u0443\u0442\u043d\u0430\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0430 \u043f\u0440\u043e\u0434\u0432\u0438\u0433\u0430\u0435\u0442\u0441\u044f \u0432\u043f\u0435\u0440\u0435\u0434 \u043d\u0430 \u043e\u0434\u043d\u043e \u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u044b\u0435 60 \u0441\u0435\u043a\u0443\u043d\u0434. \u0418\u0437-\u0437\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0437\u0430\u0442\u0440\u0430\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u043d\u0430 \u0435\u0433\u043e \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0443, \u044f \u0441\u0442\u0438\u0440\u0430\u044e \u0441\u0442\u0430\u0440\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0438 \u0440\u0438\u0441\u0443\u044e \u043d\u043e\u0432\u0443\u044e \u043f\u0440\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0432\u044b\u0437\u043e\u0432\u0430\u0445 <strong>NextSecond()<\/strong> .<\/p>\n<p>\u0427\u0430\u0441\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0430 \u043f\u0440\u043e\u0434\u0432\u0438\u0433\u0430\u0435\u0442\u0441\u044f \u0432\u043f\u0435\u0440\u0435\u0434 \u043d\u0430 \u043e\u0434\u043d\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u043a\u0430\u0436\u0434\u044b\u0435 12 \u043c\u0438\u043d\u0443\u0442.<\/p>\n<h3>\u0420\u0438\u0441\u0443\u0435\u043c \u0447\u0430\u0441\u043e\u0432\u0443\u044e \u0438 \u043c\u0438\u043d\u0443\u0442\u043d\u0443\u044e \u0441\u0442\u0440\u0435\u043b\u043a\u0438<\/h3>\n<p>\u041a\u0430\u043a \u0447\u0430\u0441\u043e\u0432\u0430\u044f, \u0442\u0430\u043a \u0438 \u043c\u0438\u043d\u0443\u0442\u043d\u0430\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u0440\u0438\u0441\u0443\u044e\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e\u00a0 <strong>DrawHand()<\/strong>\u00a0 \u043a\u0430\u043a \u0437\u0430\u043a\u0440\u0430\u0448\u0435\u043d\u043d\u044b\u0435 \u0440\u043e\u043c\u0431\u043e\u0432\u0438\u0434\u043d\u044b\u0435 \u0447\u0435\u0442\u044b\u0440\u0435\u0445\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0438 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440 \u0438\u0437\u00a0\u0440\u0430\u0437\u0434\u0435\u043b\u0430 <a href=\"http:\/\/www.technoblogy.com\/show?3ZYQ\">\u0420\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u0435 \u0437\u0430\u043a\u0440\u0430\u0448\u0435\u043d\u043d\u044b\u0445 \u0447\u0435\u0442\u044b\u0440\u0435\u0445\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u043e\u0432 \u0438 \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u043e\u0432<\/a> :<\/p>\n<pre><code>void DrawHand(int x0, int y0, int x, int y) {    int v = x\/2, u = y\/2, w = v\/5, t = u\/5;    FillQuad(x0, y0, x0+v-t, x0+u+w, x0+x, x0+y, x0+v+t, x0+u-w); }<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0439 \u0447\u0435\u0442\u044b\u0440\u0451\u0445\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a, \u044f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u043b \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0443, \u0447\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0451 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435.<\/p>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438<\/h3>\n<p>\u0427\u0442\u043e\u0431\u044b \u0437\u0430\u0434\u0430\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u0447\u0430\u0441\u0430\u0445, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u044b\u0437\u0432\u0430\u0442\u044c <strong>SetTime()<\/strong> \u0441 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0447\u0430\u0441\u043e\u0432 \u0438 \u043c\u0438\u043d\u0443\u0442:<\/p>\n<pre><code>void SetTime (int hour, int minute) {   uint32_t secs = (uint32_t)(hour * 60 + minute) * 60;   for (uint32_t i=0; i&lt;secs; i++) NextSecond(NONE); }<\/code><\/pre>\n<p>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <strong>draw<\/strong> \u0434\u043b\u044f <strong>NextSecond()<\/strong> \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043b\u0438 \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0438\u043b\u0438 \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0432\u044b\u0437\u043e\u0432\u0435, \u0430 <strong>SetTime()<\/strong> \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 <strong>NextSecond(NONE)<\/strong> \u0434\u043b\u044f \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0441\u0442\u0440\u0435\u043b\u043e\u043a \u0431\u0435\u0437 \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0438\u0445 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f, \u0447\u0442\u043e \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435.<\/p>\n<p>\u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e, <strong>\u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f EnableClock()<\/strong> , \u0447\u0442\u043e\u0431\u044b \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043e\u0434\u043d\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u043d\u043e\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435:<\/p>\n<pre><code>void EnableClock () {   RTC.PITCTRLA = RTC.PITCTRLA | RTC_PITEN_bm;  }<\/code><\/pre>\n<p>\u0412\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443:<\/p>\n<p><code>const int Hour = 12, Minute = 34;\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \/\/ E.g. 12:34<\/code><\/p>\n<h3>\u0412\u0435\u0440\u0441\u0438\u044f \u0441 \u0431\u043e\u043b\u0435\u0435 \u043d\u0438\u0437\u043a\u0438\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c<\/h3>\n<p>\u042f \u0442\u0430\u043a\u0436\u0435 \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0432\u0435\u0440\u0441\u0438\u0435\u0439 \u0447\u0430\u0441\u043e\u0432 \u0441 \u0431\u043e\u043b\u0435\u0435 \u043d\u0438\u0437\u043a\u0438\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438, \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 \u0434\u043b\u044f \u0446\u0432\u0435\u0442\u043d\u043e\u0433\u043e TFT-\u0434\u0438\u0441\u043f\u043b\u0435\u044f 128&#215;128:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/12b\/be3\/f7a\/12bbe3f7aed1b5532d36a97e2876623b.jpeg\" width=\"1170\" height=\"560\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/12b\/be3\/f7a\/12bbe3f7aed1b5532d36a97e2876623b.jpeg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<h3>\u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/h3>\n<p>\u0421\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0439\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u044f\u0434\u0440\u0430 Spence <a href=\"https:\/\/github.com\/SpenceKonde\/megaTinyCore\">Konde megaTiny<\/a> \u043d\u0430 GitHub. \u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u00a0 <strong>ATtiny3224\/1624\/1614\/1604\/824\/814\/804\/424\/414\/404\/241\/204<\/strong> \u043f\u043e\u0434\u00a0 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u043c\u00a0 <strong>megaTinyCore<\/strong> \u0432 \u043c\u0435\u043d\u044e <strong>Board. <\/strong>\u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c (\u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0439\u0442\u0435 \u043b\u044e\u0431\u044b\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b):<\/p>\n<p><strong>Chip: &#171;ATtiny814&#187; (\u0438\u043b\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439)<\/strong><\/p>\n<p><strong>Clock: &#171;20 MHz internal&#187;<\/strong><\/p>\n<p>\u0417\u0430\u0442\u0435\u043c \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u043e\u0440\u0430 UPDI. \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043b\u0430\u0442\u0443 USB to Serial 3,3 \u0412, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0431\u0430\u0437\u043e\u0432\u0443\u044e \u043f\u043b\u0430\u0442\u0443 SparkFun FTDI, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0451\u043d\u043d\u0443\u044e \u043a \u0440\u0435\u0437\u0438\u0441\u0442\u043e\u0440\u0443 4,7 \u043a\u041e\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4e3\/cb2\/24a\/4e3cb224ac877e352a9c82ba3512d699.gif\" width=\"795\" height=\"294\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4e3\/cb2\/24a\/4e3cb224ac877e352a9c82ba3512d699.gif\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0434\u043b\u044f\u00a0 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 <strong>Programmer<\/strong>\u00a0 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u00a0 <strong>\u00abSerialUPDI with 4.7k resistor or diode (230400 baud)\u00bb.<\/strong><\/p>\n<h3>\u0420\u0435\u0441\u0443\u0440\u0441\u044b<\/h3>\n<p><a href=\"http:\/\/www.technoblogy.com\/list?265D\"><u>\u041f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434<\/u><\/a><\/p>\n<p>\u0410 \u0432\u043e\u0442 \u0432\u0435\u0440\u0441\u0438\u044f \u0434\u043b\u044f \u0434\u0438\u0441\u043f\u043b\u0435\u044f 128&#215;128 (\u0438\u043b\u0438 160&#215;128):\u00a0 <a href=\"http:\/\/www.technoblogy.com\/list?44KF\">\u0413\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0435 \u0447\u0430\u0441\u044b 128&#215;128<\/a> .<\/p>\n<hr\/>\n<p><strong>\u0427\u0442\u043e \u0435\u0449\u0451 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e \u0435\u0441\u0442\u044c \u0432 \u0431\u043b\u043e\u0433\u0435\u00a0Cloud4Y<\/strong><\/p>\n<p>\u2192\u00a0<a href=\"https:\/\/habr.com\/ru\/company\/cloud4y\/blog\/670048\/\">\u041a\u0430\u043a \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0441\u0435\u0439\u0444 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0440\u0443\u0447\u043a\u0438<\/a><\/p>\n<p>\u2192\u00a0<a href=\"https:\/\/habr.com\/ru\/company\/cloud4y\/blog\/684696\/\">OpenCat \u2014 \u0441\u043e\u0437\u0434\u0430\u0439 \u0441\u0432\u043e\u0435\u0433\u043e \u0440\u043e\u0431\u043e\u043a\u043e\u0442\u0438\u043a\u0430<\/a><\/p>\n<p>\u2192\u00a0<a href=\"https:\/\/habr.com\/ru\/company\/cloud4y\/blog\/668962\/\">\u041a\u0430\u043a \u0440\u0430\u0441\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c \u0446\u0432\u0435\u0442\u043d\u043e\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0442\u0435\u043b\u0435\u0432\u0438\u0437\u043e\u0440 \u043d\u0430 3D-\u043f\u0440\u0438\u043d\u0442\u0435\u0440\u0435<\/a><\/p>\n<p>\u2192\u00a0<a href=\"https:\/\/habr.com\/ru\/company\/cloud4y\/blog\/595493\/\">WD-40: \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0451<\/a><\/p>\n<p>\u2192\u00a0<a href=\"https:\/\/habr.com\/ru\/company\/cloud4y\/blog\/692038\/\">\u041f\u043e\u0434\u0435\u0440\u0436\u0438\u0442\u0435 \u043c\u043e\u0451 \u043f\u0438\u0432\u043e, \u0438\u043b\u0438 \u043a\u0430\u043a \u044f \u0441\u0434\u0435\u043b\u0430\u043b RGBeeb, \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u044f BBC Micro \u0432 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0440\u043f\u0443\u0441<\/a><\/p>\n<p>\u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u043d\u0430 \u043d\u0430\u0448\u00a0<a href=\"https:\/\/t.me\/cloud4y\">Telegram<\/a>-\u043a\u0430\u043d\u0430\u043b, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e. \u041f\u0438\u0448\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0434\u0435\u043b\u0443. \u0410 \u0435\u0449\u0451 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c \u043f\u0440\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u0435\u0437\u043e\u043d \u043d\u0430\u0448\u0435\u0433\u043e \u0441\u0435\u0440\u0438\u0430\u043b\u0430 IT\u0438\u0442\u044c-\u043a\u043e\u043b\u043e\u0442\u0438\u0442\u044c. \u0415\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430\u00a0<a href=\"https:\/\/youtu.be\/8arneYYzsJw\">YouTube\u00a0<\/a>\u0438\u00a0<a href=\"https:\/\/vk.com\/video\/playlist\/-114833493_1\">\u0412\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u0435<\/a>.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/cloud4y\/blog\/694332\/\"> https:\/\/habr.com\/ru\/company\/cloud4y\/blog\/694332\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0421\u0434\u0435\u043b\u0430\u0442\u044c \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0435 \u0447\u0430\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u0446\u0432\u0435\u0442\u043d\u043e\u043c \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u043c TFT-\u0434\u0438\u0441\u043f\u043b\u0435\u0435\u2026 \u041f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u0438 \u0434\u0430? <\/p>\n<figure class=\"full-width\"><figcaption>\u0410\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0435 \u0447\u0430\u0441\u044b \u043d\u0430 \u0431\u0430\u0437\u0435 ATtiny814, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442 \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u0446\u0432\u0435\u0442\u043d\u043e\u043c TFT-\u0434\u0438\u0441\u043f\u043b\u0435\u0435 \u0441 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c 240&#215;240<\/figcaption><\/figure>\n<p>\u0412 \u0447\u0430\u0441\u0430\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u0432\u0430\u0440\u0446\u0435\u0432\u044b\u0439 \u043e\u0441\u0446\u0438\u043b\u043b\u044f\u0442\u043e\u0440 \u0434\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f \u0442\u043e\u0447\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439 \u0441 TFT-\u0434\u0438\u0441\u043f\u043b\u0435\u044f, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 <a href=\"http:\/\/www.technoblogy.com\/show?3UEJ\">\u0447\u0442\u0435\u043d\u0438\u0435 \u0441 TFT-\u0434\u0438\u0441\u043f\u043b\u0435\u044f<\/a>.\u00a0<\/p>\n<p>\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 \u043c\u0430\u043a\u0435\u0442\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u0435. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"http:\/\/www.technoblogy.com\/show?3JCM\">\u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f TFT <\/a>\u0434\u0438\u0441\u043f\u043b\u0435\u044f.<\/p>\n<h3>\u041a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442<\/h3>\n<p>\u0411\u0435\u0437 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439 \u0441 \u0434\u0438\u0441\u043f\u043b\u0435\u044f \u0432\u0430\u043c \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0431\u044b \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0432\u0435\u0441\u044c \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437, \u043a\u043e\u0433\u0434\u0430 \u043b\u044e\u0431\u0430\u044f \u0438\u0437 \u0441\u0442\u0440\u0435\u043b\u043e\u043a \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u0442 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435, \u0430 \u044d\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0435\u043a\u0443\u043d\u0434\u0443 (\u0435\u0441\u043b\u0438 \u0443 \u0447\u0430\u0441\u043e\u0432 \u0435\u0441\u0442\u044c \u0441\u0435\u043a\u0443\u043d\u0434\u043d\u0430\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0430). \u0427\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0435\u043a\u0443\u043d\u0434\u0443, \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440.<\/p>\n<p>\u042d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0446\u0432\u0435\u0442\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u043f\u043e \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0443 \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0435\u0433\u043e \u201c\u0438\u043b\u0438\u201d \u0441 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442\u0430. \u0412 \u0438\u0442\u043e\u0433\u0435 \u0441\u0442\u0440\u0435\u043b\u043a\u0430 \u0443\u0434\u0430\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0444\u043e\u043d \u043f\u043e\u0434 \u043d\u0435\u0439 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c\u0443 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044e, \u0430 \u043f\u043e\u0442\u043e\u043c \u0441\u0442\u0440\u0435\u043b\u043a\u0430 \u0440\u0438\u0441\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u043d\u043e\u0432\u043e\u043c \u043c\u0435\u0441\u0442\u0435. \u0418 \u0442\u043e\u0433\u0434\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043f\u043e\u0434 \u0441\u0442\u0440\u0435\u043b\u043a\u0430\u043c\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0446\u0438\u0444\u0440\u044b \u0447\u0430\u0441\u043e\u0432) \u043d\u0435 \u0441\u0442\u0438\u0440\u0430\u044e\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442 \u043d\u0430\u0434 \u043d\u0438\u043c\u0438.<\/p>\n<h3>\u041f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0434\u0438\u0441\u043f\u043b\u0435\u0438<\/h3>\n<p>\u0427\u0430\u0441\u044b \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u044b \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 TFT-\u0434\u0438\u0441\u043f\u043b\u0435\u0435\u043c RGB \u0441 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c 240&#215;240 \u0438\u043b\u0438 320&#215;240, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c \u043d\u0430 AliExpress. \u0415\u0441\u0442\u044c \u0442\u0430\u043a\u0436\u0435 \u0432\u0435\u0440\u0441\u0438\u044f \u0441 \u0431\u043e\u043b\u0435\u0435 \u043d\u0438\u0437\u043a\u0438\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u0435 128&#215;128 \u0438\u043b\u0438 160&#215;128 (\u0441\u043c. <a href=\"http:\/\/www.technoblogy.com\/show?3ZWB#lower-resolution-version\">\u0432\u0435\u0440\u0441\u0438\u044e \u0441 \u0431\u043e\u043b\u0435\u0435 \u043d\u0438\u0437\u043a\u0438\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c<\/a>). <\/p>\n<p>\u041f\u043e\u0434\u0445\u043e\u0434\u044f\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0438\u0441\u043f\u043b\u0435\u0438:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"148\" width=\"148\">\n<p align=\"left\"><strong>\u0413\u0434\u0435 \u0431\u0440\u0430\u0442\u044c<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"73\" width=\"73\">\n<p align=\"left\"><strong>\u0420\u0430\u0437\u043c\u0435\u0440<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p align=\"left\"><strong>\u0428\u0438\u0440\u0438\u043d\u0430<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"73\" width=\"73\">\n<p align=\"left\"><strong>\u0412\u044b\u0441\u043e\u0442\u0430<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u041d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"83\" width=\"83\">\n<p align=\"left\"><strong>\u0414\u0440\u0430\u0439\u0432\u0435\u0440<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u0421\u0441\u044b\u043b\u043a\u0430<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"148\" width=\"148\">\n<p align=\"left\">AliExpress<\/p>\n<\/td>\n<td data-colwidth=\"73\" width=\"73\">\n<p align=\"left\">1,54 \u0434\u044e\u0439\u043c\u0430<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p align=\"left\">240<\/p>\n<\/td>\n<td data-colwidth=\"73\" width=\"73\">\n<p align=\"left\">240<\/p>\n<\/td>\n<td>\n<p align=\"left\">3,3 \u0412<\/p>\n<\/td>\n<td data-colwidth=\"83\" width=\"83\">\n<p align=\"left\">ST7789<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/www.aliexpress.com\/item\/1005001520083435.html\">1,54-\u0434\u044e\u0439\u043c\u043e\u0432\u044b\u0439 \u0416\u041a-\u0434\u0438\u0441\u043f\u043b\u0435\u0439 TFT 240&#215;240<\/a>\u00a0 *<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"148\" width=\"148\">\n<p align=\"left\">AliExpress<\/p>\n<\/td>\n<td data-colwidth=\"73\" width=\"73\">\n<p align=\"left\">2,0 \u0434\u044e\u0439\u043c\u0430<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p align=\"left\">320<\/p>\n<\/td>\n<td data-colwidth=\"73\" width=\"73\">\n<p align=\"left\">240<\/p>\n<\/td>\n<td>\n<p align=\"left\">3,3 \u0412<\/p>\n<\/td>\n<td data-colwidth=\"83\" width=\"83\">\n<p align=\"left\">ST7789V<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/www.aliexpress.com\/item\/1005002363748586.html\">2,0-\u0434\u044e\u0439\u043c\u043e\u0432\u044b\u0439 \u0416\u041a-\u0434\u0438\u0441\u043f\u043b\u0435\u0439 TFT 240&#215;320<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"148\" width=\"148\">\n<p align=\"left\">AliExpress<\/p>\n<\/td>\n<td data-colwidth=\"73\" width=\"73\">\n<p align=\"left\">1,44 \u0434\u044e\u0439\u043c\u0430<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p align=\"left\">128<\/p>\n<\/td>\n<td data-colwidth=\"73\" width=\"73\">\n<p align=\"left\">128<\/p>\n<\/td>\n<td>\n<p align=\"left\">3,3 \u0412<\/p>\n<\/td>\n<td data-colwidth=\"83\" width=\"83\">\n<p align=\"left\">ST7735S<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/www.aliexpress.com\/item\/1005003782907800.html\">1,44-\u0434\u044e\u0439\u043c\u043e\u0432\u044b\u0439 TFT-\u0434\u0438\u0441\u043f\u043b\u0435\u0439 128&#215;128 SPI<\/a>\u00a0 *<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"148\" width=\"148\">\n<p align=\"left\">AliExpress<\/p>\n<\/td>\n<td data-colwidth=\"73\" width=\"73\">\n<p align=\"left\">1,8 \u0434\u044e\u0439\u043c\u0430<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p align=\"left\">160<\/p>\n<\/td>\n<td data-colwidth=\"73\" width=\"73\">\n<p align=\"left\">128<\/p>\n<\/td>\n<td>\n<p align=\"left\">3,3 \u0412<\/p>\n<\/td>\n<td data-colwidth=\"83\" width=\"83\">\n<p align=\"left\">ST7735<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"https:\/\/www.aliexpress.com\/item\/1005002902607351.html\">1,8-\u0434\u044e\u0439\u043c\u043e\u0432\u044b\u0439 TFT-\u0434\u0438\u0441\u043f\u043b\u0435\u0439 128&#215;160 SPI<\/a>\u00a0 *<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><em>* \u0421\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c \u0441 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0434\u0438\u0441\u043f\u043b\u0435\u0435\u0432<\/em>.<\/p>\n<p>\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0434\u0438\u0441\u043f\u043b\u0435\u0438 Adafruit \u043d\u0435\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u044b \u0441 \u044d\u0442\u0438\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 \u0447\u0442\u0435\u043d\u0438\u0435 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439 \u0441 \u0434\u0438\u0441\u043f\u043b\u0435\u044f.<\/p>\n<h4>\u0421\u0445\u0435\u043c\u0430<\/h4>\n<p>\u0412\u043e\u0442 \u0441\u0445\u0435\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e \u0441\u0443\u0442\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0445\u0435\u043c\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0434\u0438\u0441\u043f\u043b\u0435\u044f:<\/p>\n<figure class=\"full-width\"><figcaption>\u0421\u0445\u0435\u043c\u0430 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0445 \u0447\u0430\u0441\u043e\u0432 \u043d\u0430 \u0431\u0430\u0437\u0435 ATtiny814<\/figcaption><\/figure>\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 5 \u041a\u0431\u0430\u0439\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e ATtiny 1-\u0439 \u0441\u0435\u0440\u0438\u0438 \u043e\u0431\u044a\u0451\u043c\u043e\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 8 \u041a\u0431\u0430\u0439\u0442 (\u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 ATtiny814  \u0438 \u0434\u043e ATtiny3214). \u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0441\u0435\u0440\u0438\u0438 0 \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0442, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0442\u0430\u043a\u0442\u043e\u0432\u044b\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 2-\u0439 \u0441\u0435\u0440\u0438\u0438, \u043d\u043e \u044f \u0438\u0445 \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b.<\/p>\n<p>\u0414\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0447\u0430\u0441\u044b \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 ATtiny814, \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0435\u0439 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0442\u0430\u043a\u0442\u043e\u0432\u044b\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 32,768 \u043a\u0413\u0446. \u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u043d\u0435\u0434\u043e\u0440\u043e\u0433\u043e\u0439 \u0446\u0438\u043b\u0438\u043d\u0434\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0432\u0430\u0440\u0446\u0435\u0432\u044b\u0439 \u0440\u0435\u0437\u043e\u043d\u0430\u0442\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0431\u044b\u0447\u043d\u043e \u0438\u043c\u0435\u0435\u0442 \u043d\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u0443\u044e \u0451\u043c\u043a\u043e\u0441\u0442\u044c 12,5 \u043f\u0424. \u0414\u043b\u044f \u0440\u0430\u0441\u0447\u0451\u0442\u0430 \u0451\u043c\u043a\u043e\u0441\u0442\u0438 \u043a\u043e\u043d\u0434\u0435\u043d\u0441\u0430\u0442\u043e\u0440\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0444\u043e\u0440\u043c\u0443\u043b\u0443 C = 2(C<sub>L<\/sub>\u00a0&#8212; C<sub>S<\/sub>), \u0433\u0434\u0435 C<sub>L<\/sub> \u2014 \u0451\u043c\u043a\u043e\u0441\u0442\u044c \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438, \u0430 C<sub>S<\/sub> \u2014 \u043f\u0430\u0440\u0430\u0437\u0438\u0442\u043d\u0430\u044f \u0451\u043c\u043a\u043e\u0441\u0442\u044c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0431\u044b\u0447\u043d\u043e \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 2,5 \u043f\u0424 \u043d\u0430 \u043f\u0435\u0447\u0430\u0442\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u0435. \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e C=20 \u043f\u0424.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0441\u0445\u0435\u043c\u0430 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0430 \u043d\u0430 \u043c\u0430\u043a\u0435\u0442\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u0435, \u0432\u044b, \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0434\u0435\u043d\u0441\u0430\u0442\u043e\u0440\u044b, \u0442\u0430\u043a \u043a\u0430\u043a \u0438\u0445 \u0440\u043e\u043b\u044c \u0431\u0443\u0434\u0435\u0442 \u0438\u0433\u0440\u0430\u0442\u044c \u0441\u0430\u043c\u0430 \u043c\u0430\u043a\u0435\u0442\u043d\u0430\u044f \u043f\u043b\u0430\u0442\u0430.<\/p>\n<h3>\u0423\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f TFT-\u0434\u0438\u0441\u043f\u043b\u0435\u044f<\/h3>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430\u00a0 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u043f\u043e\u043c\u043e\u0449\u044c\u044e ATtiny814:<\/p>\n<figure class=\"full-width\"><figcaption>\u0413\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0435 \u0447\u0430\u0441\u044b, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0435 \u043d\u0430 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u043e\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0434\u0438\u0441\u043f\u043b\u0435\u044f<\/figcaption><\/figure>\n<h3>\u041a\u043e\u0434<\/h3>\n<p>\u0412 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0438\u0437 <a href=\"http:\/\/www.technoblogy.com\/show?3UEJ\">\u0441\u0442\u0430\u0442\u044c\u0438 \u00ab\u0427\u0442\u0435\u043d\u0438\u0435 \u0441 TFT-\u0434\u0438\u0441\u043f\u043b\u0435\u044f\u00bb<\/a>.<\/p>\n<h4>\u0420\u0438\u0441\u0443\u0435\u043c \u0444\u043e\u043d \u0447\u0430\u0441\u043e\u0432<\/h4>\n<p>\u041f\u043e\u0434\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 <strong>ClockFace()<\/strong> \u0440\u0438\u0441\u0443\u0435\u0442 \u0446\u0438\u0444\u0435\u0440\u0431\u043b\u0430\u0442 \u0438 \u0446\u0438\u0444\u0440\u044b, \u043d\u043e \u0431\u0435\u0437 \u0441\u0442\u0440\u0435\u043b\u043e\u043a:<\/p>\n<pre><code>void ClockFace () {   int x0 = 120, y0 = 120, radius = 120;   MoveTo(x0, y0); fore = BLUE; DrawCircle(radius);   radius = radius - 2; fore = DARKBLUE; FillCircle(radius);   int x = 0, y = 118&lt;&lt;sca;   for (int i=0; i&lt;60; i++) {     \/\/ Hours and hour marks     if (i%5 == 0) {       fore = YELLOW;       MoveTo(x0+(x>>sca), y0+(y>>sca));       DrawTo(x0 + ((x*15)>>(sca+4)), y0 + ((y*15)>>(sca+4)));       scale = 2;       MoveTo(x0 + ((x>>sca)*13\/16) - 3*(1+(i==0))*2, y0 + ((y>>sca)*13\/16) - 8);       fore = GREEN; back = DARKBLUE;       if (i==0) PlotInt(12); else PlotInt(i\/5);       scale = 1;     }     for (int i=2;i--;) { x = x + (y*top)\/bot; y = y - (x*top)\/bot; }   } }<\/code><\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438 \u041c\u0438\u043d\u0441\u043a\u043e\u0433\u043e \u0434\u043b\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f 60 \u0442\u043e\u0447\u0435\u043a \u043f\u043e \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438 \u0431\u0435\u0437 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0441 \u043f\u043b\u0430\u0432\u0430\u044e\u0449\u0435\u0439 \u0437\u0430\u043f\u044f\u0442\u043e\u0439 \u0438\u043b\u0438 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u043e\u0432. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <strong>top<\/strong> \/ <strong>bot<\/strong> \u0438\u043b\u0438 10\/191 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0431\u043b\u0438\u0437\u043a\u0438\u043c \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0435\u043d\u0438\u0435\u043c \u043a (2*\u03c0)\/120, \u0433\u0434\u0435 2*\u03c0 \u2014 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0434\u0438\u0430\u043d \u0432 \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438. 120 \u2014 \u044d\u0442\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0434\u0435\u043b\u0435\u043d\u0438\u0439 \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438, \u0433\u0434\u0435 \u0434\u0432\u0430 \u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u043e\u0434\u043d\u043e\u0439 \u0441\u0435\u043a\u0443\u043d\u0434\u0435. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <strong>sca<\/strong> \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0447\u0442\u043e\u0431\u044b 2<sup>sca<\/sup>*118*top \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0438 \u0446\u0435\u043b\u043e\u043c\u0443 \u0447\u0438\u0441\u043b\u0443.<\/p>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0447\u0430\u0441\u043e\u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438<\/h3>\n<p>\u0414\u043b\u044f \u0430\u043a\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0439\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e RTC \u0432 ATtiny814, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0442\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043e\u0442 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0442\u0430\u043a\u0442\u043e\u0432\u043e\u0433\u043e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 32,768 \u043a\u0413\u0446 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u043b\u043e \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435.<\/p>\n<p>\u041f\u043e\u0434\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u00a0 <strong>RTCSetup()<\/strong>\u00a0 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 \u043a\u0432\u0430\u0440\u0446\u0435\u0432\u044b\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440, \u0430 \u0437\u0430\u0442\u0435\u043c \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0435\u0433\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u0442\u0430\u043a\u0442\u043e\u0432\u043e\u0433\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u0434\u043b\u044f \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0439\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0447\u0430\u0441\u043e\u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438:<\/p>\n<pre><code>void RTCSetup () {   uint8_t temp;   \/\/ Initialize 32.768kHz Oscillator:    \/\/ Disable oscillator:   temp = CLKCTRL.XOSC32KCTRLA &amp; ~CLKCTRL_ENABLE_bm;    \/\/ Enable writing to protected register   CPU_CCP = CCP_IOREG_gc;   CLKCTRL.XOSC32KCTRLA = temp;    while (CLKCTRL.MCLKSTATUS &amp; CLKCTRL_XOSC32KS_bm);   \/\/ Wait until XOSC32KS is 0   temp = CLKCTRL.XOSC32KCTRLA &amp; ~CLKCTRL_SEL_bm;      \/\/ Use External Crystal      \/\/ Enable writing to protected register   CPU_CCP = CCP_IOREG_gc;   CLKCTRL.XOSC32KCTRLA = temp;   temp = CLKCTRL.XOSC32KCTRLA | CLKCTRL_ENABLE_bm;    \/\/ Enable oscillator      \/\/ Enable writing to protected register   CPU_CCP = CCP_IOREG_gc;   CLKCTRL.XOSC32KCTRLA = temp;      \/\/ Initialize RTC   while (RTC.STATUS > 0);                             \/\/ Wait until synchronized    \/\/ 32.768kHz External Crystal Oscillator (XOSC32K)   RTC.CLKSEL = RTC_CLKSEL_TOSC32K_gc;      \/\/ RTC Clock Cycles 32768, enabled ie 1Hz interrupt   RTC.PITCTRLA = RTC_PERIOD_CYC32768_gc;    RTC.PITINTCTRL = RTC_PI_bm;                         \/\/ Periodic Interrupt: enabled }  \/\/ Interrupt Service Routine called every second ISR(RTC_PIT_vect) {   RTC.PITINTFLAGS = RTC_PI_bm;                        \/\/ Clear interrupt flag   NextSecond(BOTH); }<\/code><\/pre>\n<p>\u041f\u043e \u0441\u0443\u0442\u0438, \u044d\u0442\u043e \u0442\u0430 \u0436\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0432 \u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u043d\u043d\u0438\u0445 \u0447\u0430\u0441\u0430\u0445 \u043d\u0430 \u0431\u0430\u0437\u0435 \u0447\u0438\u043f\u043e\u0432 ATtiny 1-\u0439 \u0441\u0435\u0440\u0438\u0438, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a\u00a0 <a href=\"http:\/\/www.technoblogy.com\/show?2OKF\">Mega Tiny Time Watch<\/a>.<\/p>\n<h3>\u0414\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u0435\u043b\u043e\u043a<\/h3>\n<p>\u041f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0435\u043a\u0443\u043d\u0434\u0443:<\/p>\n<pre><code>ISR(RTC_PIT_vect) {   RTC.PITINTFLAGS = RTC_PI_bm;                        \/\/ Clear interrupt flag   NextSecond(BOTH); }<\/code><\/pre>\n<p>\u041a\u043e\u0434 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 <strong>NextSecond()<\/strong> \u0434\u043b\u044f \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u0441\u0442\u0440\u0435\u043b\u043e\u043a, \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e:<\/p>\n<pre><code>void NextSecond (int draw) {   int x0 = 120, y0 = 120;   \/\/ Positions of hands   static int secx = 0, secy = 118&lt;&lt;sca;   static int minx = 0, miny = 118&lt;&lt;sca;   static int hrx = 0, hry = 86&lt;&lt;sca;   \/\/ Seconds and minutes   static uint8_t secs = 0, mins = 0;      \/\/ Advance second hand   fore = White;   if (draw &amp; UNDRAW) { MoveTo(x0, y0); DrawTo(x0+(secx>>sca), y0+(secy>>sca)); }   for (int i=2;i--;) { secx = secx + (secy*top)\/bot; secy = secy - (secx*top)\/bot; }   if (secs == 59) { secx = 0, secy = 118&lt;&lt;sca; }  \/\/ Realign   if (draw &amp; DRAW) { MoveTo(x0, y0); DrawTo(x0+(secx>>sca), y0+(secy>>sca)); }      \/\/ Advance hour hand every 12 mins   if (secs == 59 &amp;&amp; mins%12 == 0) {     fore = RED;     DrawHand(x0, y0, hrx>>sca, hry>>sca);     for (int i=2;i--;) { hrx = hrx + (hry*top)\/bot; hry = hry - (hrx*top)\/bot; }   } else if (secs == 0 &amp;&amp; mins%12 == 0) {     fore = RED;     DrawHand(x0, y0, hrx>>sca, hry>>sca);   }       \/\/ Advance minute hand every 60 secs   if (secs == 59) {     fore = PINK;     if (draw &amp; UNDRAW) DrawHand(x0, y0, minx>>sca, miny>>sca);     for (int i=2;i--;) {minx = minx + (miny*top)\/bot; miny = miny - (minx*top)\/bot; }   } else if (secs == 0) {     fore = PINK;     if (mins == 0) minx = 0, miny = 118&lt;&lt;sca;  \/\/ Realign     if (draw &amp; DRAW) DrawHand(x0, y0, minx>>sca, miny>>sca);     mins = (mins + 1)%60;   }   secs = (secs + 1)%60; }<\/code><\/pre>\n<p>\u0412 \u043a\u0430\u0436\u0434\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u0442\u0440\u0435\u043b\u043a\u0430 \u0440\u0438\u0441\u0443\u0435\u0442\u0441\u044f \u0434\u0432\u0430\u0436\u0434\u044b \u043f\u043e \u0441\u0445\u0435\u043c\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0435\u0433\u043e \u201c\u0438\u043b\u0438\u201d: \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u043f\u043e\u0437\u0438\u0446\u0438\u0438, \u0447\u0442\u043e\u0431\u044b \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u0430\u0440\u043e\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435, \u0438 \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0432 \u043d\u043e\u0432\u043e\u0439 \u043f\u043e\u0437\u0438\u0446\u0438\u0438, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u043e\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435.<\/p>\n<p>\u0421\u0435\u043a\u0443\u043d\u0434\u043d\u0430\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0430 \u0440\u0438\u0441\u0443\u0435\u0442\u0441\u044f \u0432 \u0432\u0438\u0434\u0435 \u043b\u0438\u043d\u0438\u0438 \u0438 \u043f\u0440\u043e\u0434\u0432\u0438\u0433\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0435\u043a\u0443\u043d\u0434\u0443.<\/p>\n<p>\u041c\u0438\u043d\u0443\u0442\u043d\u0430\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0430 \u043f\u0440\u043e\u0434\u0432\u0438\u0433\u0430\u0435\u0442\u0441\u044f \u0432\u043f\u0435\u0440\u0435\u0434 \u043d\u0430 \u043e\u0434\u043d\u043e \u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u044b\u0435 60 \u0441\u0435\u043a\u0443\u043d\u0434. \u0418\u0437-\u0437\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0437\u0430\u0442\u0440\u0430\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u043d\u0430 \u0435\u0433\u043e \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0443, \u044f \u0441\u0442\u0438\u0440\u0430\u044e \u0441\u0442\u0430\u0440\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0438 \u0440\u0438\u0441\u0443\u044e \u043d\u043e\u0432\u0443\u044e \u043f\u0440\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0432\u044b\u0437\u043e\u0432\u0430\u0445 <strong>NextSecond()<\/strong> .<\/p>\n<p>\u0427\u0430\u0441\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0430 \u043f\u0440\u043e\u0434\u0432\u0438\u0433\u0430\u0435\u0442\u0441\u044f \u0432\u043f\u0435\u0440\u0435\u0434 \u043d\u0430 \u043e\u0434\u043d\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u043a\u0430\u0436\u0434\u044b\u0435 12 \u043c\u0438\u043d\u0443\u0442.<\/p>\n<h3>\u0420\u0438\u0441\u0443\u0435\u043c \u0447\u0430\u0441\u043e\u0432\u0443\u044e \u0438 \u043c\u0438\u043d\u0443\u0442\u043d\u0443\u044e \u0441\u0442\u0440\u0435\u043b\u043a\u0438<\/h3>\n<p>\u041a\u0430\u043a \u0447\u0430\u0441\u043e\u0432\u0430\u044f, \u0442\u0430\u043a \u0438 \u043c\u0438\u043d\u0443\u0442\u043d\u0430\u044f \u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u0440\u0438\u0441\u0443\u044e\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e\u00a0 <strong>DrawHand()<\/strong>\u00a0 \u043a\u0430\u043a \u0437\u0430\u043a\u0440\u0430\u0448\u0435\u043d\u043d\u044b\u0435 \u0440\u043e\u043c\u0431\u043e\u0432\u0438\u0434\u043d\u044b\u0435 \u0447\u0435\u0442\u044b\u0440\u0435\u0445\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0438 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440 \u0438\u0437\u00a0\u0440\u0430\u0437\u0434\u0435\u043b\u0430 <a href=\"http:\/\/www.technoblogy.com\/show?3ZYQ\">\u0420\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u0435 \u0437\u0430\u043a\u0440\u0430\u0448\u0435\u043d\u043d\u044b\u0445 \u0447\u0435\u0442\u044b\u0440\u0435\u0445\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u043e\u0432 \u0438 \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u043e\u0432<\/a> :<\/p>\n<pre><code>void DrawHand(int x0, int y0, int x, int y) {    int v = x\/2, u = y\/2, w = v\/5, t = u\/5;    FillQuad(x0, y0, x0+v-t, x0+u+w, x0+x, x0+y, x0+v+t, x0+u-w); }<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0439 \u0447\u0435\u0442\u044b\u0440\u0451\u0445\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a, \u044f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u043b \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0443, \u0447\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0451 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435.<\/p>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0438<\/h3>\n<p>\u0427\u0442\u043e\u0431\u044b \u0437\u0430\u0434\u0430\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u0447\u0430\u0441\u0430\u0445, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u044b\u0437\u0432\u0430\u0442\u044c <strong>SetTime()<\/strong> \u0441 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0447\u0430\u0441\u043e\u0432 \u0438 \u043c\u0438\u043d\u0443\u0442:<\/p>\n<pre><code>void SetTime (int hour, int minute) {   uint32_t secs = (uint32_t)(hour * 60 + minute) * 60;   for (uint32_t i=0; i&lt;secs; i++) NextSecond(NONE); }<\/code><\/pre>\n<p>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <strong>draw<\/strong> \u0434\u043b\u044f <strong>NextSecond()<\/strong> \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043b\u0438 \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0438\u043b\u0438 \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u0441\u0442\u0440\u0435\u043b\u043a\u0438 \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0432\u044b\u0437\u043e\u0432\u0435, \u0430 <strong>SetTime()<\/strong> \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 <strong>NextSecond(NONE)<\/strong> \u0434\u043b\u044f \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0441\u0442\u0440\u0435\u043b\u043e\u043a \u0431\u0435\u0437 \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0438\u0445 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f, \u0447\u0442\u043e \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435.<\/p>\n<p>\u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e, <strong>\u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f EnableClock()<\/strong> , \u0447\u0442\u043e\u0431\u044b \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043e\u0434\u043d\u043e\u0441\u0435\u043a\u0443\u043d\u0434\u043d\u043e\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435:<\/p>\n<pre><code>void EnableClock () {   RTC.PITCTRLA = RTC.PITCTRLA | RTC_PITEN_bm;  }<\/code><\/pre>\n<p>\u0412\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443:<\/p>\n<p><code>const int Hour = 12, Minute = 34;\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \/\/ E.g. 12:34<\/code><\/p>\n<h3>\u0412\u0435\u0440\u0441\u0438\u044f \u0441 \u0431\u043e\u043b\u0435\u0435 \u043d\u0438\u0437\u043a\u0438\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c<\/h3>\n<p>\u042f \u0442\u0430\u043a\u0436\u0435 \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0432\u0435\u0440\u0441\u0438\u0435\u0439 \u0447\u0430\u0441\u043e\u0432 \u0441 \u0431\u043e\u043b\u0435\u0435 \u043d\u0438\u0437\u043a\u0438\u043c<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\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-339996","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/339996","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=339996"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/339996\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=339996"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=339996"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=339996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}