{"id":343840,"date":"2023-01-12T09:03:25","date_gmt":"2023-01-12T09:03:25","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=343840"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=343840","title":{"rendered":"<span>\u041c\u0435\u043d\u044c\u0448\u0435 \u0442\u043e\u0447\u043d\u043e \u043d\u0435 \u0431\u044b\u0432\u0430\u0435\u0442! \u0414\u0435\u043b\u0430\u0435\u043c \u0432\u043e\u043b\u044c\u0442\u043c\u0435\u0442\u0440 \u043d\u0430 ATTINY10<\/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>\u0412 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u043a <a href=\"https:\/\/habr.com\/ru\/post\/709344\/\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a> \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0449\u0443\u043f\u0430\u0442\u044c \u0438 Attiny10. \u041d\u0443 \u043c\u0435\u043d\u044c\u0448\u0435 \u0443\u0436\u0435 \u0442\u043e\u0447\u043d\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435\u0442. \u0415\u0441\u043b\u0438 \u0438 \u0435\u0441\u0442\u044c \u0442\u0430\u043a\u043e\u0435 \u0438\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u0441 \u043c\u0435\u043d\u0435\u0435 \u0447\u0435\u043c 6 \u043d\u043e\u0433\u0430\u043c\u0438, \u044f \u043e \u043d\u0435\u043c \u043d\u0435 \u0437\u043d\u0430\u044e, \u0442\u043e\u0447\u043d\u0435\u0435 \u043d\u0435 \u043d\u0430\u0448\u0435\u043b.<\/p>\n<p>\u0422\u0443\u0442 \u0443 \u043d\u0430\u0441 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 \u041c\u041a, \u0432 \u043a\u043e\u0440\u043f\u0443\u0441\u0435 SOT-23-6! \u0418 \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0430 \u043d\u0435\u043c \u0440\u0435\u0448\u0430\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u044b\u0435. \u0421\u043e\u0431\u0440\u0430\u0432 \u0441\u0445\u0435\u043c\u0443 \u043d\u0430 \u043c\u0430\u043a\u0435\u0442\u043a\u0435 \u0441 \u041c\u041a \u043d\u0430 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0435 \u0438 \u043c\u043e\u0434\u0443\u043b\u0435\u043c \u0434\u0438\u0441\u043f\u043b\u0435\u044f \u044f \u0431\u044b\u043b\u043e \u043e\u0431\u0440\u0430\u0434\u043e\u0432\u0430\u043b\u0441\u044f, \u043d\u043e \u0433\u043e\u0442\u043e\u0432\u0430\u044f \u043f\u043b\u0430\u0442\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043e\u0442\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c&#8230;<\/p>\n<h2>\u0410 \u043a\u0430\u043a, \u0430 \u0447\u0442\u043e&#8230; <\/h2>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/64c\/1db\/5c4\/64c1db5c408c9cc969faf4e6e18e4bd2.jpg\" alt=\"\u041c\u0430\u0430\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439!\" title=\"\u041c\u0430\u0430\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439!\" width=\"800\" height=\"658\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/64c\/1db\/5c4\/64c1db5c408c9cc969faf4e6e18e4bd2.jpg\" data-blurred=\"true\"\/><figcaption>\u041c\u0430\u0430\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439!<\/figcaption><\/figure>\n<p>Attiny10 \u0441\u0430\u043c\u044b\u0439 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u041c\u041a, \u0438\u0437 AVR \u0442\u043e\u0447\u043d\u043e (\u043d\u0435 \u043f\u0443\u0433\u0430\u0439\u0442\u0435\u0441\u044c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435, Microchip \u043a\u0443\u043f\u0438\u043b\u0430 Atmel). \u041d\u043e \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0438 \u0443 \u043d\u0435\u0433\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u044b\u0435. \u0427\u0430\u0441\u0442\u043e\u0442\u0430 \u0434\u043e 12\u041c\u0413\u0446, 1\u043a\u0411 \u0444\u043b\u044d\u0448 \u0438 32 \u0431\u0430\u0439\u0442\u0430 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438. \u0414\u043b\u044f \u043a\u043e\u0440\u043f\u0443\u0441\u0430 SOT-23-6 \u044d\u0442\u043e, \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u0442\u0435\u0441\u044c, \u043d\u0435 \u043c\u0430\u043b\u043e. \u041d\u043e \u0441\u0430\u043c\u044b\u043c \u0433\u043b\u0430\u0432\u043d\u044b\u043c \u043f\u043b\u044e\u0441\u043e\u043c \u043d\u0430\u0440\u044f\u0434\u0443 \u0441 \u0440\u0430\u0437\u043c\u0435\u0440\u0430\u043c\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u044d\u043d\u0435\u0440\u0433\u043e\u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0432\u0441\u0435\u0433\u043e 2.7-4\u043c\u0410 \u043f\u0440\u0438 8\u041c\u0413\u0446 \u0438 5\u0412 \u043f\u0438\u0442\u0430\u043d\u0438\u044f, \u0438\u043b\u0438 \u0432\u0441\u0435\u0433\u043e 0.2-0.4\u043c\u0410 \u043f\u0440\u0438 1\u041c\u0413\u0446 \u0438 \u043f\u0438\u0442\u0430\u043d\u0438\u0438 1.8\u0412. <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/488\/611\/154\/4886111543511214ca2e7c56f7c56f4c.png\" width=\"568\" height=\"208\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/488\/611\/154\/4886111543511214ca2e7c56f7c56f4c.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0415\u0441\u0442\u044c \u0434\u0430\u0436\u0435 \u0410\u0426\u041f \u0438 \u0428\u0418\u041c. \u0412\u0441\u0435 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0438 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 <a href=\"http:\/\/ww1.microchip.com\/downloads\/en\/DeviceDoc\/atmel-8127-avr-8-bit-microcontroller-attiny4-attiny5-attiny9-attiny10_datasheet.pdf\" rel=\"noopener noreferrer nofollow\">\u0434\u0430\u0442\u0430\u0448\u0438\u0442\u0435<\/a>. \u0415\u0441\u0442\u044c \u0443 \u0442\u0438\u043d\u043810 \u0438 \u043c\u043b\u0430\u0434\u0448\u0438\u0435 \u0431\u0440\u0430\u0442\u044c\u044f ATTINY4, 5 \u0438 9. \u0423 4 \u0438 9 \u043d\u0435\u0442 \u0410\u0426\u041f, \u0443 4 \u0438 5 \u043a \u0442\u043e\u043c\u0443 \u0436\u0435 \u0432\u0441\u0435\u0433\u043e 512 \u0431\u0430\u0439\u0442 \u0444\u043b\u044d\u0448.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b15\/80e\/fe8\/b1580efe8cc293fc952acc7993b7d14f.png\" width=\"790\" height=\"172\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b15\/80e\/fe8\/b1580efe8cc293fc952acc7993b7d14f.png\"\/><figcaption><\/figcaption><\/figure>\n<h4>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/h4>\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u044d\u0442\u0438 \u043c\u0430\u043b\u044b\u0448\u0438 \u043f\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0443 TPI-  Tiny Programming Interface. \u041d\u043e \u043a\u0430\u043a \u0431\u044b \u0441\u0442\u0440\u0430\u0448\u043d\u043e \u044d\u0442\u043e \u043d\u0435 \u0437\u0432\u0443\u0447\u0430\u043b\u043e, \u044d\u0442\u043e\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u043e\u0440\u043e\u043c <a href=\"https:\/\/www.fischl.de\/usbasp\/\" rel=\"noopener noreferrer nofollow\">USBasp<\/a>, \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0448\u0438\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 \u0432\u044b\u0448\u0435. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/808\/067\/4eb\/8080674ebf125ee69ea678e85b95660b.gif\" width=\"406\" height=\"314\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/808\/067\/4eb\/8080674ebf125ee69ea678e85b95660b.gif\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043f\u0438\u0442\u0430\u043d\u0438\u0438 5\u0412, \u0442\u0430\u043a \u0447\u0442\u043e \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u043e\u0440 \u0432 \u044d\u0442\u043e\u0442 \u0440\u0435\u0436\u0438\u043c. <\/p>\n<p>\u041f\u041e \u044f \u043f\u0438\u0441\u0430\u043b \u0438 \u0437\u0430\u043b\u0438\u0432\u0430\u043b \u0432 \u0441\u0440\u0435\u0434\u0435 Ardiono IDE. \u0414\u043b\u044f \u0441\u0430\u043c\u044b\u0445 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0445 \u0430\u0442\u0442\u0438\u043d\u0438 \u0435\u0441\u0442\u044c <a href=\"https:\/\/github.com\/technoblogy\/attiny10core\" rel=\"noopener noreferrer nofollow\">\u044f\u0434\u0440\u043e<\/a>. \u041f\u0440\u0430\u0432\u0434\u0430 \u043f\u0440\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0434\u0443\u043c\u0430\u044e \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0431\u044b\u0442\u044c, \u0442\u0443\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0445\u0430\u0440\u0434\u043a\u043e\u0440 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u0441\u044f. <\/p>\n<h2>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0442\u0440\u0430\u0431\u043b\u044b<\/h2>\n<figure class=\"float full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/986\/81e\/e35\/98681ee35bf660cbf06eb9e592290c07.jpeg\" width=\"960\" height=\"1280\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/986\/81e\/e35\/98681ee35bf660cbf06eb9e592290c07.jpeg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u0441\u043e\u0431\u0440\u0430\u043b \u0441\u0445\u0435\u043c\u0443 \u043d\u0430 \u043c\u0430\u043a\u0435\u0442\u043a\u0435, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043b\u0430\u0434\u0438\u0442\u044c \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443. \u0420\u0430\u0437\u044a\u0435\u043c\u0430 \u0434\u043b\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u043f\u043b\u0430\u0442\u0435 \u044f \u043d\u0435 \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043b, \u0434\u0430 \u0438 \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u043d\u0435 \u043f\u0435\u0440\u0435\u0436\u0438\u043b \u0431\u044b \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u0432 5\u0412. \u0422\u0443\u0442 \u0438\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e \u0447\u0442\u043e \u0433\u0434\u0435-\u0442\u043e \u043f\u043e\u0441\u043b\u0435 20\u0439 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u043d\u0430\u0447\u0430\u043b\u0438\u0441\u044c \u0441 \u044d\u0442\u043e\u0439 \u0441\u0430\u043c\u043e\u0439 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u0448\u0438\u0432\u0430\u043b\u0430\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 2-3-4 \u0440\u0430\u0437. \u0412\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u044d\u0442\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 \u043c\u043e\u0438\u043c \u0436\u0435\u043b\u0435\u0437\u043e\u043c. <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u043b\u0430\u0442\u044b \u0432\u0440\u043e\u0434\u0435 \u0432\u0441\u0435 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e, \u043d\u043e \u043f\u0440\u0438 \u0432\u0442\u043e\u0440\u043e\u043c \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u044f \u0443\u0436\u0435 \u0443\u0432\u0438\u0434\u0435\u043b \u0448\u0443\u043c \u043d\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u0435 \u0432\u043c\u0435\u0441\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0445. \u0412 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u044f \u0437\u0430\u043c\u0435\u043d\u0438\u043b \u0432\u0441\u044e \u043e\u0431\u0432\u044f\u0437\u043a\u0443 \u0434\u0438\u0441\u043f\u043b\u0435\u044f, \u043d\u043e \u044d\u0442\u043e \u043d\u0435 \u043f\u043e\u043c\u043e\u0433\u043b\u043e. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0435 \u0443\u0445\u0438\u0449\u0440\u0435\u043d\u0438\u044f \u0442\u043e\u0436\u0435. \u0415\u0449\u0435 \u0440\u0430\u0437 \u043f\u0440\u043e\u0433\u0443\u0433\u043b\u0438\u0432 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u043e\u0431\u0432\u044f\u0437\u043a\u0438- \u0437\u0430\u043c\u0435\u0442\u0438\u043b \u0447\u0442\u043e \u0447\u0430\u0441\u0442\u043e \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u0430\u044f \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u043d\u0430 RESET \u0434\u0438\u0441\u043f\u043b\u0435\u044f. \u0415\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438 \u0440\u0435\u0448\u0438\u043b\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443.<\/p>\n<h2>\u0421\u0445\u0435\u043c\u0430<\/h2>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/370\/0b5\/e2d\/3700b5e2d9e97b8d2201d100e986e26a.png\" width=\"1449\" height=\"838\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/370\/0b5\/e2d\/3700b5e2d9e97b8d2201d100e986e26a.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0430\u0441\u0442\u0438 \u0441\u0445\u0435\u043c\u0430 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0442 \u043f\u0440\u043e\u0448\u043b\u0443\u044e. \u0422\u0443\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u04212 \u0438 \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 \u043f\u0440\u0435\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0439. \u0422\u0430\u043a \u0435\u0441\u043b\u0438 \u043f\u043e \u043f\u0438\u0442\u0430\u043d\u0438\u044e \u043f\u0440\u0438\u0434\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 12\u0412, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d MCP1703- \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0430\u0442\u043e\u0440 R3 D3, \u0430 \u043f\u0440\u0438 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u043f\u0440\u0435\u0432\u044b\u0448\u0435\u043d\u0438\u0438 R3 \u0441\u0433\u043e\u0440\u0438\u0442 \u043a\u0430\u043a \u043f\u0440\u0435\u0434\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435\u043b\u044c. \u0422\u0430\u043a-\u0436\u0435 \u0432 \u043b\u0438\u043d\u0438\u044e \u0410\u0426\u041f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0442\u0440\u043e\u043d D1.<\/p>\n<p>\u0414\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0441 \u043f\u043b\u0435\u0447\u0435\u043c 3.5 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0437\u043c\u0435\u0440\u0438\u0442\u044c \u0434\u043e 3.5*3.3=11.55\u0412. \u041f\u0440\u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043f\u0438\u0442\u0430\u043d\u0438\u0438 \u0438 \u0438\u0437\u043c\u0435\u0440\u044f\u0435\u043c\u043e\u043c \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0438 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f 0-11.55\u0412. \u0415\u0441\u043b\u0438 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u043f\u0438\u0442\u0430\u043d\u0438\u0435 \u0438 \u0432\u0445\u043e\u0434 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d 4-12\u0412. \u042d\u0442\u043e \u043e\u0431\u0443\u0441\u043b\u043e\u0432\u043b\u0435\u043d\u043e \u0442\u0435\u043c \u0447\u0442\u043e \u043e\u043f\u043e\u0440\u043d\u043e\u0435 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 ATTINY10 \u0431\u0435\u0440\u0435\u0442 \u0440\u0430\u0432\u043d\u044b\u043c \u043b\u0438\u043d\u0438\u0438 \u043f\u0438\u0442\u0430\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u0434\u0435\u0441\u044c 3.3\u0412 \u043f\u043b\u044e\u0441 \u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u043d\u0430 \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0435. \u0418\u0442\u043e\u0433\u043e \u0448\u0430\u0433 \u043d\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0410\u0426\u041f  11.55\/255=0.045\u0412.<\/p>\n<h2>\u041f\u043b\u0430\u0442\u0430<\/h2>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/16d\/35a\/ff6\/16d35aff6ee7ab5b34053b214acd4c99.png\" width=\"1130\" height=\"426\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/16d\/35a\/ff6\/16d35aff6ee7ab5b34053b214acd4c99.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043b\u0430\u0442\u0430 \u0442\u0430\u043a-\u0436\u0435 \u0441\u0434\u0435\u043b\u0430\u043d\u0430 \u043f\u043e\u0434 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u041b\u0423\u0422, \u0438 \u043f\u043e \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0442 \u043f\u0440\u043e\u0448\u043b\u0443\u044e. \u0422\u0443\u0442 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u044b \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u043e\u0434\u043e\u0432 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u043f\u043e\u0434 \u0434\u0438\u0441\u043f\u043b\u0435\u0435\u043c, \u0430 \u0434\u043b\u044f \u0442\u043e\u0440\u0447\u0430\u0449\u0435\u0433\u043e \u0448\u043b\u0435\u0439\u0444\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u043f\u0430\u0440\u0430 \u043c\u0438\u043b\u043b\u0438\u043c\u0435\u0442\u0440\u043e\u0432 \u0441\u043f\u0440\u0430\u0432\u0430.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/25f\/45c\/453\/25f45c4535bf9616af5ac1da68ef20f9.jpeg\" alt=\"\u0421\u043e\u0431\u0440\u0430\u043d\u043d\u0430\u044f \u043f\u043b\u0430\u0442\u0430\" title=\"\u0421\u043e\u0431\u0440\u0430\u043d\u043d\u0430\u044f \u043f\u043b\u0430\u0442\u0430\" width=\"1280\" height=\"960\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/25f\/45c\/453\/25f45c4535bf9616af5ac1da68ef20f9.jpeg\" data-blurred=\"true\"\/><figcaption>\u0421\u043e\u0431\u0440\u0430\u043d\u043d\u0430\u044f \u043f\u043b\u0430\u0442\u0430<\/figcaption><\/figure>\n<p>\u0414\u0438\u0441\u043f\u043b\u0435\u0439 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438\u043a\u043b\u0435\u0438\u043b \u043d\u0430 \u0434\u0432\u0443\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0439 \u0441\u043a\u043e\u0442\u0447.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/e3d\/84b\/9bc\/e3d84b9bc3cb8de789e0c149bae68bb9.jpeg\" width=\"1280\" height=\"960\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e3d\/84b\/9bc\/e3d84b9bc3cb8de789e0c149bae68bb9.jpeg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<h2>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430<\/h2>\n<p>\u041f\u041e \u043f\u043e \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u043f\u043e\u0437\u0430\u0438\u043c\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u043e <a href=\"https:\/\/www.hackster.io\/bitbanging\/oled-display-driven-by-attiny10-986571\" rel=\"noopener noreferrer nofollow\">\u0437\u0434\u0435\u0441\u044c<\/a> \u0438 <a href=\"https:\/\/github.com\/wagiminator\/ATtiny13-TinyOLEDdemo\" rel=\"noopener noreferrer nofollow\">\u0437\u0434\u0435\u0441\u044c<\/a>. \u0418\u0442\u043e\u0433\u043e \u041f\u041e \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0432\u0441\u0435\u0433\u043e 912 \u0431\u0430\u0439\u0442. <\/p>\n<details class=\"spoiler\">\n<summary>\u041a\u043e\u0434<\/summary>\n<div class=\"spoiler__content\">\n<pre><code> uint8_t AD; uint16_t VOLT;  const uint8_t Init[24] = {   0xAE,         \/\/ Display OFF   0xA8, 0x1F,   \/\/ set multiplex (HEIGHT-1): 0x1F for 128x32, 0x3F for 128x64   0x22, 0x00, 0x03, \/\/ Page min to max   0x20, 0x01,   \/\/ Memory addressing mode 0x00 Horizontal 0x01 Vertical   0xDA, 0x02,   \/\/ Set COM Pins hardware configuration to sequential   0x8D, 0x14,   \/\/ Charge pump enabled   0xD3, 0x00,   \/\/ Display offset to 0   0x81, 0xFF,   \/\/ Set contrast   0xD9, 0xF1,   \/\/ Set pre-charge period   0xDB, 0x40,   \/\/ Set vcom detect   0x21, 0x00, 0x7F, \/\/ Column min to max   0xAF,  \/\/ Display on  };  #define PI2C_SDA    PB0 #define PI2C_SCL    PB1  #define OUT_REG PORTB   #define SDA_ON (OUT_REG |= (1&lt;&lt; PI2C_SDA)) #define SDA_OFF (OUT_REG &amp;= ~(1&lt;&lt; PI2C_SDA)) #define SCL_ON (OUT_REG |= (1&lt;&lt; PI2C_SCL)) #define SCL_OFF (OUT_REG &amp;= ~(1&lt;&lt; PI2C_SCL))  #define SDA_READ (PINB &amp; (1&lt;&lt;PI2C_SDA))    #define ADDR 0b01111000 \/\/OLED Address plus write bit    inline void dly() { \/\/\u043f\u0443\u0441\u0442\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430   __asm__(\"NOP\"); };     void setup () {   ADMUX = 2 &lt;&lt; MUX0;              \/\/ ADC1 (PB1)   ADCSRA = 1 &lt;&lt; ADEN | 3 &lt;&lt; ADPS0; \/\/ Enable ADC, 125kHz clock    DDRB = 3;   for (uint8_t i = 0; i &lt; 100; i++) dly();      start();   Tx(ADDR);   Tx(0x00);   for (uint8_t i = 0; i &lt; 24; i++)   {     Tx(Init[i]);   }    stop();  }      void loop(void) {   uint8_t buffer[8] = {0, 0, 10, 0, 0, 11, 12, 12}; \/\/\u0437\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u0431\u0443\u0444\u0444\u0435\u0440 \u043d\u0430 8 \u044f\u0447\u0435\u0435\u043a.   ADCSRA = ADCSRA | 1 &lt;&lt; ADSC;    \/\/ Start   while (ADCSRA &amp; 1 &lt;&lt; ADSC);     \/\/ Wait while conversion in progress   AD = ADCL;                    \/\/\u0427\u0438\u0442\u0430\u0435\u043c \u0410\u0426\u041f    VOLT = (AD *47)\/10;  \/\/\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0410\u0426\u041f \u0432 \u0432\u043e\u043b\u044c\u0442\u044b        buffer[0] = VOLT \/ 1000;  \/\/\u043f\u0435\u0440\u0432\u044b\u0439 \u0437\u043d\u0430\u043a     buffer[1] = (VOLT % 1000) \/ 100; \/\/\u0432\u0442\u043e\u0440\u043e\u0439 \u0437\u043d\u0430\u043a     buffer[3] = (VOLT % 100) \/ 10; \/\/\u0442\u0440\u0435\u0442\u0438\u0439 \u0437\u043d\u0430\u043a     buffer[4] = VOLT % 10;  \/\/\u0447\u0435\u0442\u0432\u0435\u0440\u0442\u044b\u0439 \u0437\u043d\u0430\u043a        OLED_printB(buffer);  \/\/\u0412\u044b\u0432\u043e\u0434\u0438\u043c \u0431\u0443\u0444\u0444\u0435\u0440   }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>\u0428\u0440\u0438\u0444\u0442 \u0438 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430<\/summary>\n<div class=\"spoiler__content\">\n<pre><code>const uint8_t OLED_FONT[] PROGMEM = {   0x7F, 0x41, 0x7F, \/\/ 0  0   0x00, 0x00, 0x7F, \/\/ 1  1   0x79, 0x49, 0x4F, \/\/ 2  2   0x41, 0x49, 0x7F, \/\/ 3  3   0x0F, 0x08, 0x7E, \/\/ 4  4   0x4F, 0x49, 0x79, \/\/ 5  5   0x7F, 0x49, 0x79, \/\/ 6  6   0x03, 0x01, 0x7F, \/\/ 7  7   0x7F, 0x49, 0x7F, \/\/ 8  8   0x4F, 0x49, 0x7F, \/\/ 9  9   0x00, 0x60, 0x00, \/\/ .  10   0x1F, 0x78, 0x1F, \/\/ V  11   0x00, 0x00, 0x00, \/\/ -  12    };    void OLED_printB(uint8_t *buffer) {   start();   Tx(ADDR);   Tx(0x40);   for (uint8_t i = 0; i &lt; 8; i++) OLED_printD(buffer[i]); \/\/ print buffer   stop();                          \/\/ stop transmission    }    uint8_t OLED_stretch(uint8_t b) {   b  = ((b &amp; 2) &lt;&lt; 3) | (b &amp; 1);          \/\/ split 2 LSB into the nibbles   b |= b &lt;&lt; 1;                            \/\/ double the bits   b |= b &lt;&lt; 2;                            \/\/ double them again = 4 times   return b;                               \/\/ return the value }   void OLED_printD(uint8_t ch) {   uint8_t i, j, k, b;                     \/\/ loop variables   uint8_t sb[4];                          \/\/ stretched character bytes   ch += ch &lt;&lt; 1;                          \/\/ calculate position of character in font array   for (i = 8; i; i--) Tx(0x00);    \/\/ print spacing between characters   for (i = 3; i; i--) {                   \/\/ font has 3 bytes per character     b = OLED_FONT[ch++]; \/\/ read character byte     for (j = 0; j &lt; 4; j++, b >>= 2) sb[j] = OLED_stretch(b); \/\/ stretch 4 times     j = 4; if (i == 2) j = 6;             \/\/ calculate x-stretch value     while (j--) {                      \/\/ write several times (x-direction)       for (k = 0; k &lt; 4; k++) Tx(sb[k]); \/\/ the 4 stretched bytes (y-direction)     }   } }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 I2C<\/summary>\n<div class=\"spoiler__content\">\n<pre><code> \/*  i2c start sequence *\/ void start() {   SDA_ON;   dly();   SCL_ON;   dly();   SDA_OFF;   dly();   SCL_OFF;   dly(); }   \/*  i2c stop sequence *\/ void stop() {   SDA_OFF;   dly();   SCL_ON;   dly();   SDA_ON;   dly(); }  \/* Transmit 8 bit data to slave *\/ bool Tx(uint8_t dat) {   for (uint8_t i = 0; i &lt; 8; i++) {     (dat &amp; 0x80) ? SDA_ON : SDA_OFF;     dat &lt;&lt;= 1;     dly();     SCL_ON;     dly();     SCL_OFF;        }    SDA_ON;   SCL_ON;   dly();   bool ack = !SDA_READ;    \/\/ Acknowledge bit   SCL_OFF;   return ack; }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<h2>\u0424\u0430\u0439\u043b\u044b<\/h2>\n<p>\u0424\u0430\u0439\u043b\u044b \u043d\u0430 \u0433\u0438\u0442\u0445\u0430\u0431 <a href=\"https:\/\/github.com\/ENGIN33RRR\/Attiny10_VoltMeter\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/ENGIN33RRR\/Attiny10_VoltMeter<\/a><\/p>\n<p>\u0421\u0445\u0435\u043c\u0430 \u0438 \u041f\u041f \u0432 \u0434\u0438\u043f\u0442\u0440\u0435\u0439\u0441, \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0430 \u0432 Arduino IDE.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/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\/post\/710132\/\"> https:\/\/habr.com\/ru\/post\/710132\/<\/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>\u0412 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u043a <a href=\"https:\/\/habr.com\/ru\/post\/709344\/\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a> \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0449\u0443\u043f\u0430\u0442\u044c \u0438 Attiny10. \u041d\u0443 \u043c\u0435\u043d\u044c\u0448\u0435 \u0443\u0436\u0435 \u0442\u043e\u0447\u043d\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435\u0442. \u0415\u0441\u043b\u0438 \u0438 \u0435\u0441\u0442\u044c \u0442\u0430\u043a\u043e\u0435 \u0438\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u0441 \u043c\u0435\u043d\u0435\u0435 \u0447\u0435\u043c 6 \u043d\u043e\u0433\u0430\u043c\u0438, \u044f \u043e \u043d\u0435\u043c \u043d\u0435 \u0437\u043d\u0430\u044e, \u0442\u043e\u0447\u043d\u0435\u0435 \u043d\u0435 \u043d\u0430\u0448\u0435\u043b.<\/p>\n<p>\u0422\u0443\u0442 \u0443 \u043d\u0430\u0441 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 \u041c\u041a, \u0432 \u043a\u043e\u0440\u043f\u0443\u0441\u0435 SOT-23-6! \u0418 \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0430 \u043d\u0435\u043c \u0440\u0435\u0448\u0430\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u044b\u0435. \u0421\u043e\u0431\u0440\u0430\u0432 \u0441\u0445\u0435\u043c\u0443 \u043d\u0430 \u043c\u0430\u043a\u0435\u0442\u043a\u0435 \u0441 \u041c\u041a \u043d\u0430 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0435 \u0438 \u043c\u043e\u0434\u0443\u043b\u0435\u043c \u0434\u0438\u0441\u043f\u043b\u0435\u044f \u044f \u0431\u044b\u043b\u043e \u043e\u0431\u0440\u0430\u0434\u043e\u0432\u0430\u043b\u0441\u044f, \u043d\u043e \u0433\u043e\u0442\u043e\u0432\u0430\u044f \u043f\u043b\u0430\u0442\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043e\u0442\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c&#8230;<\/p>\n<h2>\u0410 \u043a\u0430\u043a, \u0430 \u0447\u0442\u043e&#8230; <\/h2>\n<figure class=\"full-width\"><figcaption>\u041c\u0430\u0430\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439!<\/figcaption><\/figure>\n<p>Attiny10 \u0441\u0430\u043c\u044b\u0439 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u041c\u041a, \u0438\u0437 AVR \u0442\u043e\u0447\u043d\u043e (\u043d\u0435 \u043f\u0443\u0433\u0430\u0439\u0442\u0435\u0441\u044c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435, Microchip \u043a\u0443\u043f\u0438\u043b\u0430 Atmel). \u041d\u043e \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0438 \u0443 \u043d\u0435\u0433\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u044b\u0435. \u0427\u0430\u0441\u0442\u043e\u0442\u0430 \u0434\u043e 12\u041c\u0413\u0446, 1\u043a\u0411 \u0444\u043b\u044d\u0448 \u0438 32 \u0431\u0430\u0439\u0442\u0430 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438. \u0414\u043b\u044f \u043a\u043e\u0440\u043f\u0443\u0441\u0430 SOT-23-6 \u044d\u0442\u043e, \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u0442\u0435\u0441\u044c, \u043d\u0435 \u043c\u0430\u043b\u043e. \u041d\u043e \u0441\u0430\u043c\u044b\u043c \u0433\u043b\u0430\u0432\u043d\u044b\u043c \u043f\u043b\u044e\u0441\u043e\u043c \u043d\u0430\u0440\u044f\u0434\u0443 \u0441 \u0440\u0430\u0437\u043c\u0435\u0440\u0430\u043c\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u044d\u043d\u0435\u0440\u0433\u043e\u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0432\u0441\u0435\u0433\u043e 2.7-4\u043c\u0410 \u043f\u0440\u0438 8\u041c\u0413\u0446 \u0438 5\u0412 \u043f\u0438\u0442\u0430\u043d\u0438\u044f, \u0438\u043b\u0438 \u0432\u0441\u0435\u0433\u043e 0.2-0.4\u043c\u0410 \u043f\u0440\u0438 1\u041c\u0413\u0446 \u0438 \u043f\u0438\u0442\u0430\u043d\u0438\u0438 1.8\u0412. <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0415\u0441\u0442\u044c \u0434\u0430\u0436\u0435 \u0410\u0426\u041f \u0438 \u0428\u0418\u041c. \u0412\u0441\u0435 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0438 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 <a href=\"http:\/\/ww1.microchip.com\/downloads\/en\/DeviceDoc\/atmel-8127-avr-8-bit-microcontroller-attiny4-attiny5-attiny9-attiny10_datasheet.pdf\" rel=\"noopener noreferrer nofollow\">\u0434\u0430\u0442\u0430\u0448\u0438\u0442\u0435<\/a>. \u0415\u0441\u0442\u044c \u0443 \u0442\u0438\u043d\u043810 \u0438 \u043c\u043b\u0430\u0434\u0448\u0438\u0435 \u0431\u0440\u0430\u0442\u044c\u044f ATTINY4, 5 \u0438 9. \u0423 4 \u0438 9 \u043d\u0435\u0442 \u0410\u0426\u041f, \u0443 4 \u0438 5 \u043a \u0442\u043e\u043c\u0443 \u0436\u0435 \u0432\u0441\u0435\u0433\u043e 512 \u0431\u0430\u0439\u0442 \u0444\u043b\u044d\u0448.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h4>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/h4>\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u044d\u0442\u0438 \u043c\u0430\u043b\u044b\u0448\u0438 \u043f\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0443 TPI-  Tiny Programming Interface. \u041d\u043e \u043a\u0430\u043a \u0431\u044b \u0441\u0442\u0440\u0430\u0448\u043d\u043e \u044d\u0442\u043e \u043d\u0435 \u0437\u0432\u0443\u0447\u0430\u043b\u043e, \u044d\u0442\u043e\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u043e\u0440\u043e\u043c <a href=\"https:\/\/www.fischl.de\/usbasp\/\" rel=\"noopener noreferrer nofollow\">USBasp<\/a>, \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0448\u0438\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 \u0432\u044b\u0448\u0435. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435:<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043f\u0438\u0442\u0430\u043d\u0438\u0438 5\u0412, \u0442\u0430\u043a \u0447\u0442\u043e \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u043e\u0440 \u0432 \u044d\u0442\u043e\u0442 \u0440\u0435\u0436\u0438\u043c. <\/p>\n<p>\u041f\u041e \u044f \u043f\u0438\u0441\u0430\u043b \u0438 \u0437\u0430\u043b\u0438\u0432\u0430\u043b \u0432 \u0441\u0440\u0435\u0434\u0435 Ardiono IDE. \u0414\u043b\u044f \u0441\u0430\u043c\u044b\u0445 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0445 \u0430\u0442\u0442\u0438\u043d\u0438 \u0435\u0441\u0442\u044c <a href=\"https:\/\/github.com\/technoblogy\/attiny10core\" rel=\"noopener noreferrer nofollow\">\u044f\u0434\u0440\u043e<\/a>. \u041f\u0440\u0430\u0432\u0434\u0430 \u043f\u0440\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0434\u0443\u043c\u0430\u044e \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0431\u044b\u0442\u044c, \u0442\u0443\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0445\u0430\u0440\u0434\u043a\u043e\u0440 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u0441\u044f. <\/p>\n<h2>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0442\u0440\u0430\u0431\u043b\u044b<\/h2>\n<figure class=\"float full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u0441\u043e\u0431\u0440\u0430\u043b \u0441\u0445\u0435\u043c\u0443 \u043d\u0430 \u043c\u0430\u043a\u0435\u0442\u043a\u0435, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043b\u0430\u0434\u0438\u0442\u044c \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443. \u0420\u0430\u0437\u044a\u0435\u043c\u0430 \u0434\u043b\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u043f\u043b\u0430\u0442\u0435 \u044f \u043d\u0435 \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043b, \u0434\u0430 \u0438 \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u043d\u0435 \u043f\u0435\u0440\u0435\u0436\u0438\u043b \u0431\u044b \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u0432 5\u0412. \u0422\u0443\u0442 \u0438\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e \u0447\u0442\u043e \u0433\u0434\u0435-\u0442\u043e \u043f\u043e\u0441\u043b\u0435 20\u0439 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u043d\u0430\u0447\u0430\u043b\u0438\u0441\u044c \u0441 \u044d\u0442\u043e\u0439 \u0441\u0430\u043c\u043e\u0439 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u0448\u0438\u0432\u0430\u043b\u0430\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 2-3-4 \u0440\u0430\u0437. \u0412\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u044d\u0442\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 \u043c\u043e\u0438\u043c \u0436\u0435\u043b\u0435\u0437\u043e\u043c. <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u043b\u0430\u0442\u044b \u0432\u0440\u043e\u0434\u0435 \u0432\u0441\u0435 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e, \u043d\u043e \u043f\u0440\u0438 \u0432\u0442\u043e\u0440\u043e\u043c \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u044f \u0443\u0436\u0435 \u0443\u0432\u0438\u0434\u0435\u043b \u0448\u0443\u043c \u043d\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u0435 \u0432\u043c\u0435\u0441\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0445. \u0412 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u044f \u0437\u0430\u043c\u0435\u043d\u0438\u043b \u0432\u0441\u044e \u043e\u0431\u0432\u044f\u0437\u043a\u0443 \u0434\u0438\u0441\u043f\u043b\u0435\u044f, \u043d\u043e \u044d\u0442\u043e \u043d\u0435 \u043f\u043e\u043c\u043e\u0433\u043b\u043e. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0435 \u0443\u0445\u0438\u0449\u0440\u0435\u043d\u0438\u044f \u0442\u043e\u0436\u0435. \u0415\u0449\u0435 \u0440\u0430\u0437 \u043f\u0440\u043e\u0433\u0443\u0433\u043b\u0438\u0432 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u043e\u0431\u0432\u044f\u0437\u043a\u0438- \u0437\u0430\u043c\u0435\u0442\u0438\u043b \u0447\u0442\u043e \u0447\u0430\u0441\u0442\u043e \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u0430\u044f \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u043d\u0430 RESET \u0434\u0438\u0441\u043f\u043b\u0435\u044f. \u0415\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438 \u0440\u0435\u0448\u0438\u043b\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443.<\/p>\n<h2>\u0421\u0445\u0435\u043c\u0430<\/h2>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0430\u0441\u0442\u0438 \u0441\u0445\u0435\u043c\u0430 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0442 \u043f\u0440\u043e\u0448\u043b\u0443\u044e. \u0422\u0443\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u04212 \u0438 \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 \u043f\u0440\u0435\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0439. \u0422\u0430\u043a \u0435\u0441\u043b\u0438 \u043f\u043e \u043f\u0438\u0442\u0430\u043d\u0438\u044e \u043f\u0440\u0438\u0434\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 12\u0412, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d MCP1703- \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0430\u0442\u043e\u0440 R3 D3, \u0430 \u043f\u0440\u0438 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u043f\u0440\u0435\u0432\u044b\u0448\u0435\u043d\u0438\u0438 R3 \u0441\u0433\u043e\u0440\u0438\u0442 \u043a\u0430\u043a \u043f\u0440\u0435\u0434\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435\u043b\u044c. \u0422\u0430\u043a-\u0436\u0435 \u0432 \u043b\u0438\u043d\u0438\u044e \u0410\u0426\u041f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0442\u0440\u043e\u043d D1.<\/p>\n<p>\u0414\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0441 \u043f\u043b\u0435\u0447\u0435\u043c 3.5 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0437\u043c\u0435\u0440\u0438\u0442\u044c \u0434\u043e 3.5*3.3=11.55\u0412. \u041f\u0440\u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043f\u0438\u0442\u0430\u043d\u0438\u0438 \u0438 \u0438\u0437\u043c\u0435\u0440\u044f\u0435\u043c\u043e\u043c \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0438 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f 0-11.55\u0412. \u0415\u0441\u043b\u0438 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u043f\u0438\u0442\u0430\u043d\u0438\u0435 \u0438 \u0432\u0445\u043e\u0434 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d 4-12\u0412. \u042d\u0442\u043e \u043e\u0431\u0443\u0441\u043b\u043e\u0432\u043b\u0435\u043d\u043e \u0442\u0435\u043c \u0447\u0442\u043e \u043e\u043f\u043e\u0440\u043d\u043e\u0435 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 ATTINY10 \u0431\u0435\u0440\u0435\u0442 \u0440\u0430\u0432\u043d\u044b\u043c \u043b\u0438\u043d\u0438\u0438 \u043f\u0438\u0442\u0430\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u0434\u0435\u0441\u044c 3.3\u0412 \u043f\u043b\u044e\u0441 \u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u043d\u0430 \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0435. \u0418\u0442\u043e\u0433\u043e \u0448\u0430\u0433 \u043d\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0410\u0426\u041f  11.55\/255=0.045\u0412.<\/p>\n<h2>\u041f\u043b\u0430\u0442\u0430<\/h2>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043b\u0430\u0442\u0430 \u0442\u0430\u043a-\u0436\u0435 \u0441\u0434\u0435\u043b\u0430\u043d\u0430 \u043f\u043e\u0434 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u041b\u0423\u0422, \u0438 \u043f\u043e \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0442 \u043f\u0440\u043e\u0448\u043b\u0443\u044e. \u0422\u0443\u0442 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u044b \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u043e\u0434\u043e\u0432 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u043f\u043e\u0434 \u0434\u0438\u0441\u043f\u043b\u0435\u0435\u043c, \u0430 \u0434\u043b\u044f \u0442\u043e\u0440\u0447\u0430\u0449\u0435\u0433\u043e \u0448\u043b\u0435\u0439\u0444\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u043f\u0430\u0440\u0430 \u043c\u0438\u043b\u043b\u0438\u043c\u0435\u0442\u0440\u043e\u0432 \u0441\u043f\u0440\u0430\u0432\u0430.<\/p>\n<figure class=\"full-width\"><figcaption>\u0421\u043e\u0431\u0440\u0430\u043d\u043d\u0430\u044f \u043f\u043b\u0430\u0442\u0430<\/figcaption><\/figure>\n<p>\u0414\u0438\u0441\u043f\u043b\u0435\u0439 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u0438\u043a\u043b\u0435\u0438\u043b \u043d\u0430 \u0434\u0432\u0443\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0439 \u0441\u043a\u043e\u0442\u0447.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h2>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430<\/h2>\n<p>\u041f\u041e \u043f\u043e \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u043f\u043e\u0437\u0430\u0438\u043c\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u043e <a href=\"https:\/\/www.hackster.io\/bitbanging\/oled-display-driven-by-attiny10-986571\" rel=\"noopener noreferrer nofollow\">\u0437\u0434\u0435\u0441\u044c<\/a> \u0438 <a href=\"https:\/\/github.com\/wagiminator\/ATtiny13-TinyOLEDdemo\" rel=\"noopener noreferrer nofollow\">\u0437\u0434\u0435\u0441\u044c<\/a>. \u0418\u0442\u043e\u0433\u043e \u041f\u041e \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0432\u0441\u0435\u0433\u043e 912 \u0431\u0430\u0439\u0442. <\/p>\n<details class=\"spoiler\">\n<summary>\u041a\u043e\u0434<\/summary>\n<div class=\"spoiler__content\">\n<pre><code> uint8_t AD; uint16_t VOLT;  const uint8_t Init[24] = {   0xAE,         \/\/ Display OFF   0xA8, 0x1F,   \/\/ set multiplex (HEIGHT-1): 0x1F for 128x32, 0x3F for 128x64   0x22, 0x00, 0x03, \/\/ Page min to max   0x20, 0x01,   \/\/ Memory addressing mode 0x00 Horizontal 0x01 Vertical   0xDA, 0x02,   \/\/ Set COM Pins hardware configuration to sequential   0x8D, 0x14,   \/\/ Charge pump enabled   0xD3, 0x00,   \/\/ Display offset to 0   0x81, 0xFF,   \/\/ Set contrast   0xD9, 0xF1,   \/\/ Set pre-charge period   0xDB, 0x40,   \/\/ Set vcom detect   0x21, 0x00, 0x7F, \/\/ Column min to max   0xAF,  \/\/ Display on  };  #define PI2C_SDA    PB0 #define PI2C_SCL    PB1  #define OUT_REG PORTB   #define SDA_ON (OUT_REG |= (1&lt;&lt; PI2C_SDA)) #define SDA_OFF (OUT_REG &amp;= ~(1&lt;&lt; PI2C_SDA)) #define SCL_ON (OUT_REG |= (1&lt;&lt; PI2C_SCL)) #define SCL_OFF (OUT_REG &amp;= ~(1&lt;&lt; PI2C_SCL))  #define SDA_READ (PINB &amp; (1&lt;&lt;PI2C_SDA))    #define ADDR 0b01111000 \/\/OLED Address plus write bit    inline void dly() { \/\/\u043f\u0443\u0441\u0442\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430   __asm__(\"NOP\"); };     void setup () {   ADMUX = 2 &lt;&lt; MUX0;              \/\/ ADC1 (PB1)   ADCSRA = 1 &lt;&lt; ADEN | 3 &lt;&lt; ADPS0; \/\/ Enable ADC, 125kHz clock    DDRB = 3;   for (uint8_t i = 0; i &lt; 100; i++) dly();      start();   Tx(ADDR);   Tx(0x00);   for (uint8_t i = 0; i &lt; 24; i++)   {     Tx(Init[i]);   }    stop();  }      void loop(void) {   uint8_t buffer[8] = {0, 0, 10, 0, 0, 11, 12, 12}; \/\/\u0437\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u0431\u0443\u0444\u0444\u0435\u0440 \u043d\u0430 8 \u044f\u0447\u0435\u0435\u043a.   ADCSRA = ADCSRA | 1 &lt;&lt; ADSC;    \/\/ Start   while (ADCSRA &amp; 1 &lt;&lt; ADSC);     \/\/ Wait while conversion in progress   AD = ADCL;                    \/\/\u0427\u0438\u0442\u0430\u0435\u043c \u0410\u0426\u041f    VOLT = (AD *47)\/10;  \/\/\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0410\u0426\u041f \u0432 \u0432\u043e\u043b\u044c\u0442\u044b        buffer[0] = VOLT \/ 1000;  \/\/\u043f\u0435\u0440\u0432\u044b\u0439 \u0437\u043d\u0430\u043a     buffer[1] = (VOLT % 1000) \/ 100; \/\/\u0432\u0442\u043e\u0440\u043e\u0439 \u0437\u043d\u0430\u043a     buffer[3] = (VOLT % 100) \/ 10; \/\/\u0442\u0440\u0435\u0442\u0438\u0439 \u0437\u043d\u0430\u043a     buffer[4] = VOLT % 10;  \/\/\u0447\u0435\u0442\u0432\u0435\u0440\u0442\u044b\u0439 \u0437\u043d\u0430\u043a        OLED_printB(buffer);  \/\/\u0412\u044b\u0432\u043e\u0434\u0438\u043c \u0431\u0443\u0444\u0444\u0435\u0440   }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>\u0428\u0440\u0438\u0444\u0442 \u0438 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430<\/summary>\n<div class=\"spoiler__content\">\n<pre><code>const uint8_t OLED_FONT[] PROGMEM = {   0x7F, 0x41, 0x7F, \/\/ 0  0   0x00, 0x00, 0x7F, \/\/ 1  1   0x79, 0x49, 0x4F, \/\/ 2  2   0x41, 0x49, 0x7F, \/\/ 3  3   0x0F, 0x08, 0x7E, \/\/ 4  4   0x4F, 0x49, 0x79, \/\/ 5  5   0x7F, 0x49, 0x79, \/\/ 6  6   0x03, 0x01, 0x7F, \/\/ 7  7   0x7F, 0x49, 0x7F, \/\/ 8  8   0x4F, 0x49, 0x7F, \/\/ 9  9   0x00, 0x60, 0x00, \/\/ .  10   0x1F, 0x78, 0x1F, \/\/ V  11   0x00, 0x00, 0x00, \/\/ -  12    };    void OLED_printB(uint8_t *buffer) {   start();   Tx(ADDR);   Tx(0x40);   for (uint8_t i = 0; i &lt; 8; i++) OLED_printD(buffer[i]); \/\/ print buffer   stop();                          \/\/ stop transmission    }    uint8_t OLED_stretch(uint8_t b) {   b  = ((b &amp; 2) &lt;&lt; 3) | (b &amp; 1);          \/\/ split 2 LSB into the nibbles   b |= b &lt;&lt; 1;                            \/\/ double the bits   b |= b &lt;&lt; 2;                            \/\/ double them again = 4 times   return b;                               \/\/ return the value }   void OLED_printD(uint8_t ch) {   uint8_t i, j, k, b;                     \/\/ loop variables   uint8_t sb[4];                          \/\/ stretched character bytes   ch += ch &lt;&lt; 1;                          \/\/ calculate position of character in font array   for (i = 8; i; i--) Tx(0x00);    \/\/ print spacing between characters   for (i = 3; i; i--) {                   \/\/ font has 3 bytes per character     b = OLED_FONT[ch++]; \/\/ read character byte     for (j = 0; j &lt; 4; j++, b >>= 2) sb[j] = OLED_stretch(b); \/\/ stretch 4 times     j = 4; if (i == 2) j = 6;             \/\/ calculate x-stretch value     while (j--) {                      \/\/ write several times (x-direction)       for (k = 0; k &lt; 4; k++) Tx(sb[k]); \/\/ the 4 stretched bytes (y-direction)     }   } }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 I2C<\/summary>\n<div class=\"spoiler__content\">\n<pre><code> \/*  i2c start sequence *\/ void start() {   SDA_ON;   dly();   SCL_ON;   dly();   SDA_OFF;   dly();   SCL_OFF;   dly(); }   \/*  i2c stop sequence *\/ void stop() {   SDA_OFF;   dly();   SCL_ON;   dly();   SDA_ON;   dly(); }  \/* Transmit 8 bit data to slave *\/ bool Tx(uint8_t dat) {   for (uint8_t i = 0; i &lt; 8; i++) {     (dat &amp; 0x80) ? SDA_ON : SDA_OFF;     dat &lt;&lt;= 1;     dly();     SCL_ON;     dly();     SCL_OFF;        }    SDA_ON;   SCL_ON;   dly();   bool ack = !SDA_READ;    \/\/ Acknowledge bit   SCL_OFF;   return ack; }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<h2>\u0424\u0430\u0439\u043b\u044b<\/h2>\n<p>\u0424\u0430\u0439\u043b\u044b \u043d\u0430 \u0433\u0438\u0442\u0445\u0430\u0431 <a href=\"https:\/\/github.com\/ENGIN33RRR\/Attiny10_VoltMeter\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/ENGIN33RRR\/Attiny10_VoltMeter<\/a><\/p>\n<p>\u0421\u0445\u0435\u043c\u0430 \u0438 \u041f\u041f \u0432 \u0434\u0438\u043f\u0442\u0440\u0435\u0439\u0441, \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0430 \u0432 Arduino IDE.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/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\/post\/710132\/\"> https:\/\/habr.com\/ru\/post\/710132\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-343840","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/343840","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=343840"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/343840\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=343840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=343840"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=343840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}