{"id":302491,"date":"2020-04-25T09:00:13","date_gmt":"2020-04-25T09:00:13","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=302491"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=302491","title":{"rendered":"Doom Boy ESP32"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/495700\/\">\u041f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0430 \u0434\u043b\u044f Doom \u043d\u0430 ESP32 \u0441\u0432\u043e\u0438\u043c\u0438 \u0440\u0443\u043a\u0430\u043c\u0438 \u043d\u0430 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0435 MCP23017 \u0434\u043b\u044f \u043a\u043d\u043e\u043f\u043e\u043a \u043e\u0442 UncleRus<\/p>\n<p>  <img decoding=\"async\" width=\"500\" src=\"https:\/\/habrastorage.org\/webt\/e_\/br\/13\/e_br13t_nva7dv5lrbr8b9-8rpo.jpeg\"><br \/>  <img decoding=\"async\" width=\"500\" src=\"https:\/\/habrastorage.org\/webt\/it\/_4\/wj\/it_4wjuhc9m8api63gzolghcwlq.jpeg\"><\/p>\n<p>  \u0412 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/494748\/\">Doom \u0447\u0430\u0441\u043e\u0432<\/a> \u043f\u0440\u0438\u0448\u043b\u0430 \u043f\u043b\u0430\u0442\u0430 \u0434\u0430\u0432\u043d\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u041d\u0430 \u043f\u043b\u0430\u0442\u0435 \u0440\u0430\u0437\u0432\u0435\u0434\u0435\u043d\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0435 MCP23017 \u0438 CS4344 \u0438 \u0435\u0449\u0435 \u043c\u043d\u043e\u0433\u043e \u0447\u0435\u0433\u043e<\/p>\n<p>  \u0414\u043b\u044f \u043a\u043d\u043e\u043f\u043e\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u0435\u043b\u044c \u043f\u043e\u0440\u0442\u043e\u0432 MCP23017 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0439 \u043f\u043e I2C. \u0414\u043b\u044f \u043d\u0435\u0433\u043e \u0435\u0441\u0442\u044c \u0434\u0440\u0430\u0439\u0432\u0435\u0440 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0432\u0437\u044f\u0442\u044c \u0443 <a href=\"https:\/\/github.com\/UncleRus\/esp-idf-lib\" rel=\"nofollow\">UncleRus<\/a>. \u0421\u0434\u0435\u043b\u0430\u043d\u0430 \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0410\u0426\u041f CS4344<\/p>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<h3>Doom \u043e\u0442 Espressif<\/h3>\n<p>  \u0421\u043a\u0430\u0447\u0430\u0432 \u043f\u043e\u0440\u0442 \u0414\u0443\u043c \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0432\u043e\u0437\u0438\u0442\u0441\u044f \u0447\u0442\u043e\u0431\u044b \u0435\u0433\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c. \u0412 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0438\u0442\u043e\u0433\u0435 \u0432\u0441\u0435 \u0441\u043e\u0431\u0440\u0430\u043b\u043e\u0441\u044c \u0438 \u0437\u0430\u043b\u0438\u043b\u0438\u043e\u0441\u044c \u0432 ESP32 \u043d\u043e\u2026 \u044f \u043f\u043e\u0439\u043c\u0430\u043b \u043a\u0440\u044d\u0448 \u043d\u0430 \u0441\u0442\u0430\u0440\u0442\u0435. \u041d\u0430 githab Issue \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0443\u0432\u0438\u0434\u0435\u043b \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e\u0435 \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/vy\/cp\/kj\/vycpkjmc1qkwolkxdlxsvcutgqu.png\"><br \/>  \u0410\u0432\u0442\u043e\u0440 \u043f\u043e\u0440\u0442\u0430 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c <\/p>\n<blockquote><p>You probably need to use the malloc() option as well as reserve some memory for DMA. I&#8217;ll see if I can get this compiling on master and update the sdkconfig when I have time.<\/p><\/blockquote>\n<p> \u0412 \u043e\u0431\u0449\u0435\u043c \u044f \u00ab\u043d\u0435\u0434\u043e\u043b\u0433\u043e \u0434\u0443\u043c\u0430\u044f\u00bb \u0437\u0430\u043c\u0435\u043d\u0438\u043b \u0432\u0441\u0435 \u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u043c\u044f\u0442\u0438 \u043d\u0430 malloc()<br \/>  \u0414\u0435\u043c\u043a\u0430 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0430\u0441\u044c. \u0412\u043f\u0435\u0440\u0435\u0434\u0438 \u043c\u0435\u043d\u044f \u0436\u0434\u0430\u043b\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a\u043d\u043e\u043f\u043e\u043a<\/p>\n<h3>MCP23017 GPIO extender<\/h3>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/a8\/e0\/zx\/a8e0zxgbcoljjm4vgecqqft5pxm.png\"><\/p>\n<p>  <a href=\"http:\/\/ww1.microchip.com\/downloads\/en\/DeviceDoc\/20001952C.pdf\" rel=\"nofollow\">MCP23017<\/a><\/p>\n<p>  \u0421 \u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u043f\u043b\u0430\u043d\u0430\u043c\u0438 \u043d\u0430 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430 \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u043f\u043e\u0440\u0442\u043e\u0432 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430, \u0440\u0435\u0448\u0438\u043b \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c \u043d\u0430 \u043f\u043e\u0440\u0442\u0430\u0445 \u0432\u0432\u043e\u0434\u0430 \u0432\u044b\u0432\u043e\u0434\u0430 \u0441\u0430\u043c\u043e\u0433\u043e \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430, \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0432 MCP23017. \u042d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u0435\u043b\u044c \u0441 \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u043c \u043a \u0441\u0438\u0433\u043d\u0430\u043b\u0430\u043c \u0432\u0432\u043e\u0434\u0430 \u0432\u044b\u0432\u043e\u0434\u0430 \u0447\u0435\u0440\u0435\u0437 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 I2C. \u042f \u043d\u0435 \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0430\u043b \u0434\u0440\u0430\u0439\u0432\u0435\u0440, \u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u0437\u044f\u043b \u0435\u0433\u043e \u0443 <a href=\"https:\/\/github.com\/UncleRus\/esp-idf-lib\" rel=\"nofollow\">UncleRus<\/a>. \u041f\u044f\u0442\u044c \u043a\u043d\u043e\u043f\u043e\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0434\u0436\u043e\u0439\u0441\u0442\u0438\u043a \u0434\u043b\u044f \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438. \u041f\u0430\u0440\u0443 \u043a\u043d\u043e\u043f\u043e\u043a \u043d\u0430 \u0432\u044b\u0441\u0442\u0440\u0435\u043b \u0438 \u0432\u044b\u0431\u043e\u0440 \u043c\u0435\u043d\u044e. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u043d\u0430\u0434\u043e \u0435\u0449\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0434\u0432\u0435\u0440\u0438 \u0438 \u0434\u0432\u0438\u0433\u0430\u0442\u044c\u0441\u044f \u0432\u043b\u0435\u0432\u043e-\u0432\u043f\u0440\u0430\u0432\u043e \u0431\u0435\u0437 \u043f\u043e\u0432\u043e\u0440\u043e\u0442\u0430 \u0442\u043e \u0435\u0441\u0442\u044c \u043a\u0430\u043a \u043a\u0440\u0430\u0431. \u041a\u043e\u043d\u0442\u0430\u043a\u0442\u044b \u043f\u043e\u0434\u0442\u044f\u043d\u0443\u0442\u044b \u0432\u043d\u0443\u0442\u0440\u0438 MCP23017 \u043a VDD. \u041a\u043e\u043d\u0442\u0430\u043a\u0442 \u0437\u0430\u043c\u044b\u043a\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0437\u0435\u043c\u043b\u044e. \u041e\u0447\u0435\u043d\u044c \u043a\u0440\u0443\u0442\u043e \u0447\u0442\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b \u0435\u0441\u0442\u044c \u0440\u0435\u0437\u0438\u0441\u0442\u043e\u0440\u044b \u043f\u043e\u0434\u0442\u044f\u0436\u043a\u0438. \u041c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0435\u0449\u0435 \u0437\u0430\u043c\u043e\u0440\u043e\u0447\u0438\u0442\u0441\u044f \u0441 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f\u043c\u0438 \u043e\u0442 MCP23017. \u0412 \u043d\u0435\u0439 \u0435\u0441\u0442\u044c \u0434\u0432\u0430 \u0432\u044b\u0432\u043e\u0434\u0430 \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u043e\u0440\u0442 INTA \u0438 INTB, \u043d\u043e \u043a\u0430\u043a \u043d\u0438\u0431\u0443\u0434\u044c \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0440\u0430\u0437.  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u043e\u043c\u0430\u043d\u0434<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\">static const JsKeyMap keymap[]={ \t{0x10, &amp;key_up}, \t{0x40, &amp;key_down}, \t{0x80, &amp;key_left}, \t{0x20, &amp;key_right}, \t \t{0x4000, &amp;key_use},\t\t\t\t\/\/cross \t{0x2000, &amp;key_fire},\t\t\t\/\/circle \t{0x2000, &amp;key_menu_enter},\t\t\/\/circle \t{0x8000, &amp;key_pause},\t\t\t\/\/square \t{0x1000, &amp;key_weapontoggle},\t\/\/triangle  \t{0x8, &amp;key_escape},\t\t\t\t\/\/start \t{0x1, &amp;key_map},\t\t\t\t\/\/select \t \t{0x400, &amp;key_strafeleft},\t\t\/\/L1 \t{0x100, &amp;key_speed},\t\t\t\/\/L2 \t{0x800, &amp;key_straferight},\t\t\/\/R1 \t{0x200, &amp;key_strafe},\t\t\t\/\/R2  \t{0, NULL}, };<\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>   <a href=\"https:\/\/github.com\/app-z\/esp32-doom\/blob\/master\/components\/prboom-esp32-compat\/gamepad.c\" rel=\"nofollow\">\u0412\u043f\u0438\u043b\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043a\u043d\u043e\u043f\u043e\u043a<\/a> \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043f\u0440\u043e\u0449\u0435 \u0447\u0435\u043c \u044f \u0434\u0443\u043c\u0430\u043b. \u042f \u0441\u043d\u0438\u0437\u0438\u043b \u0447\u0430\u0441\u0442\u043e\u0442\u0443 I2\u0421 \u0434\u043b\u044f \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u0412\u043e \u0432\u0441\u044f\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430 \u0437\u0430\u044f\u0432\u043b\u0435\u043d\u043d\u044b\u0445 1MHz \u043d\u0435 \u043f\u043e\u0448\u043b\u043e. \u0427\u0430\u0441\u0442\u043e\u0442\u044b 100kHz \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0432\u043f\u043e\u043b\u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043b\u044f \u043e\u043f\u0440\u043e\u0441\u0430 \u0432 \u0446\u0438\u043a\u043b\u0435 \u0441 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u043e\u0439 20ms.<\/p>\n<h3>CMake<\/h3>\n<p>  \u0423\u0431\u0438\u043b \u043a\u0443\u0447\u0443 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u043d\u0438\u0435 CMakeList.txt \u0434\u043b\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432. \u0427\u0442\u043e-\u0442\u043e \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e \u0441 make. \u0418 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0432\u0437\u044f\u0442\u044c \u043f\u043e\u0441\u0432\u0435\u0436\u0435\u0435 SDK. \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u0440\u0442 \u043d\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u043b\u0441\u044f \u0434\u0430\u0436\u0435 \u043d\u0430 3.2.x. \u0412\u0437\u044f\u043b esp-idf-v3.3.1 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438 \u043d\u0430 esp-idf-4.0<\/p>\n<h3>\u0417\u0432\u0443\u043a \u0447\u0435\u0440\u0435\u0437 \u0426\u0410\u041f<\/h3>\n<p>  \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0435\u0441\u0442\u044c \u0435\u0449\u0435 \u043e\u0434\u0438\u043d <a href=\"https:\/\/www.youtube.com\/watch?v=y6PP_IBbOTY&amp;t=4s\" rel=\"nofollow\">\u0444\u043e\u0440\u043a<\/a>. \u041e\u043d \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u0439 SD-CARD \u0438 \u0437\u0432\u0443\u043a\u043e\u043c \u0447\u0435\u0440\u0435\u0437 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 DAC. \u041f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u0440\u0442 \u043e\u0442 Espressif \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0433\u0440\u0443\u0437\u0438\u0442\u044c wad \u0444\u0430\u0439\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044e\u044e Flash \u043f\u0430\u043c\u044f\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u0438 \u0442\u043e \u043d\u0430\u0434\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0440\u0435\u0437\u0430\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043d\u0435\u0442 \u0437\u0432\u0443\u043a\u0430!<br \/>  <a href=\"https:\/\/drive.google.com\/file\/d\/1Blsr6tle2YdGhFHDwvqY-jP0K5PJvhB1\/view\" rel=\"nofollow\">\u0421\u0445\u0435\u043c\u0430 \u0442\u0443\u0442<\/a><br \/>  \u0418\u0434\u0435\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432\u043c\u0435\u0441\u0442\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e DAC \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043c\u0435\u043d\u044f \u0437\u0430\u0445\u0432\u0430\u0442\u0438\u043b\u0430. \u0425\u043e\u0442\u044f \u0431\u044b \u0438 \u0441\u0430\u043c\u044b\u0439 \u043a\u043e\u043f\u0435\u0435\u0447\u043d\u044b\u0439 \u043e\u0442 Cirrus Logic<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ni\/wl\/cw\/niwlcwgsprqestpufw2qfwjousq.png\"><br \/>  \u0414\u0430\u043b\u044c\u0448\u0435 \u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b DAC \u043d\u0430 CS4344 \u0438 \u0442\u0443\u0442 \u043c\u0435\u043d\u044f \u0436\u0434\u0430\u043b\u043e \u0440\u0430\u0437\u043e\u0447\u0430\u0440\u043e\u0432\u0430\u043d\u0438\u0435. \u0417\u0432\u0443\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0441 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f\u043c\u0438. \u041a\u043e\u0433\u0434\u0430 \u044f \u0432\u043f\u0438\u043b\u0438\u0432\u0430\u043b \u0432 \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0444\u0430\u0439\u043b <a href=\"https:\/\/github.com\/app-z\/esp32-doom\/blob\/master\/components\/prboom-esp32-compat\/i_sound.c\" rel=\"nofollow\">i_sound.c<\/a> \u0442\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u043b \u0447\u0442\u043e \u043e\u0434\u0438\u043d \u0444\u0430\u0439\u043b dma.h \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f. \u041a\u0430\u043a \u0431\u044b \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043d\u0435\u0433\u043e \u0435\u0441\u0442\u044c \u0438 \u0441\u0430\u043c \u043e\u043d \u0435\u0441\u0442\u044c \u043d\u043e \u0432\u0441\u0435 \u0437\u0430 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043e. \u041c\u043e\u0436\u0435\u0442 \u044f \u043d\u0435\u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043c\u043e\u0442\u0440\u0435\u043b? \u041d\u043e \u0434\u0443\u043c\u0430\u044e \u0430\u0432\u0442\u043e\u0440 \u0442\u043e\u0436\u0435 \u0437\u0430\u043c\u0435\u0442\u0438\u043b, \u0447\u0442\u043e \u0441\u043e \u0437\u0432\u0443\u043a\u043e\u043c \u0447\u0442\u043e-\u0442\u043e \u043d\u0435 \u0442\u043e \u0438 \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0443\u0441\u0442\u0440\u0430\u043d\u0438\u0442\u044c. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0440\u0430\u043d\u0438\u043b \u0438 \u043d\u0435 \u0432\u044b\u043b\u043e\u0436\u0438\u043b \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043a\u043e\u043c\u043c\u0438\u0442. \u0410 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0426\u0410\u041f \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u0430\u043a \u043d\u0430\u0434\u043e. \u041e\u0434\u043d\u0430\u043a\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0437\u0432\u0443\u043a \u0447\u0435\u0440\u0435\u0437 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0426\u0410\u041f \u0438 \u043d\u0430 \u043a\u0440\u043e\u0448\u0435\u0447\u043d\u044b\u0439 \u0434\u0438\u043d\u0430\u043c\u0438\u043a \u043c\u043e\u0436\u043d\u043e \u0438 \u043f\u0440\u0435\u043d\u0435\u0431\u0440\u0435\u0447\u044c \u0438\u0441\u043a\u0430\u0436\u0435\u043d\u0438\u044f\u043c\u0438-\u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f\u043c\u0438. \u042f \u043f\u043e\u0438\u0433\u0440\u0430\u043b\u0441\u044f \u0431\u0438\u0442\u0440\u0435\u0439\u0442\u043e\u043c \u0438 \u0432 \u0446\u0435\u043b\u043e\u043c \u043f\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044e \u043a\u043e\u0434\u0430. \u042d\u0442\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u0440\u0438\u043d\u0435\u0441\u043b\u043e.<\/p>\n<p>  \u0418 \u0434\u0430, \u043f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f SD-CARD. \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u042f \u043f\u043e\u0432\u0435\u0441\u0438\u043b \u0435\u0435 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u0434\u0438\u0441\u043f\u043b\u0435\u044e \u043f\u043e \u0448\u0438\u043d\u0435 SPI, \u0440\u0430\u0437\u0432\u0435\u0434\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u044c\u043d\u043e \u0441\u0438\u0433\u043d\u0430\u043b \u0432\u044b\u0431\u043e\u0440 \u0447\u0438\u043f\u0430 CS. \u0418\u0434\u0435\u044f \u043f\u0440\u043e\u0432\u0430\u043b\u0438\u043b\u0430\u0441\u044c. \u041f\u0440\u043e\u0432\u0435\u043d\u0442\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0432 \u0432\u043e\u043f\u0440\u043e\u0441 <a href=\"https:\/\/github.com\/espressif\/esp-idf\/issues\/1597\" rel=\"nofollow\">Support SD-SPI bus sharing<\/a> \u043f\u0440\u0438\u0448\u0435\u043b \u043a \u0432\u044b\u0432\u043e\u0434\u0443 \u0447\u0442\u043e \u043d\u0435 \u0432\u0441\u0435 SD-CARD \u0441\u0434\u0435\u043b\u0430\u043d\u044b \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e \u0438\u043b\u0438 \u043c\u043e\u0438 \u0440\u0443\u043a\u0438 \u043d\u0435 \u0442\u0430\u043a\u0438\u0435 \u043f\u0440\u044f\u043c\u044b\u0435.<br \/>  \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0440\u0430\u0441\u043f\u0430\u044f\u0442\u044c \u0435\u0435 \u0447\u0435\u0440\u0435\u0437 \u0430\u0434\u0430\u043f\u0442\u0435\u0440 \u043d\u0430 \u043f\u043b\u0430\u0442\u0443 \u0432\u043c\u0435\u0441\u0442\u043e \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d\u0430. \u0417\u0430\u0432\u0435\u043b\u043e\u0441\u044c \u0431\u0435\u0437 \u043f\u043e\u0434\u0442\u044f\u0436\u0435\u043a \u0432\u043d\u0435\u0448\u043d\u0438\u043c\u0438 \u0440\u0435\u0437\u0438\u0441\u0442\u043e\u0440\u0430\u043c\u0438 \u043a VDD. <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0412\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u0440\u0435\u0437\u0438\u0441\u0442\u043e\u0440\u044b \u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0438\u0441\u044c<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\">     gpio_set_pull_mode(PIN_NUM_MOSI, GPIO_PULLUP_ONLY);     gpio_set_pull_mode(PIN_NUM_MISO, GPIO_PULLUP_ONLY);     gpio_set_pull_mode(PIN_NUM_CLK, GPIO_PULLUP_ONLY);     gpio_set_pull_mode(PIN_NUM_CS, GPIO_PULLUP_ONLY);<\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u044f \u0431\u0440\u043e\u0441\u0438\u043b \u044d\u0442\u043e \u0437\u0430\u043d\u044f\u0442\u0438\u0435 \u0438 \u0432\u044b\u043b\u043e\u0436\u0438\u043b \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u043d\u0430 <a href=\"https:\/\/github.com\/app-z\/esp32-doom\" rel=\"nofollow\">GitHub<\/a><br \/>  \u041d\u0430\u0434\u043e \u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0449\u0435 \u043e\u0434\u043d\u0443 \u0440\u0435\u0434\u0430\u043a\u0446\u0438\u044e \u043f\u0435\u0447\u0430\u0442\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u044b. \u042d\u0442\u0430 \u043d\u0438\u043a\u0443\u0434\u0430 \u043d\u0435 \u0433\u043e\u0434\u0438\u0442\u0441\u044f!<\/p>\n<div class=\"oembed\">\n<div>\n<div style=\"left: 0; width: 100%; height: 0; position: relative; padding-bottom: 56.25%;\"><iframe src=\"https:\/\/www.youtube.com\/embed\/TFE2ri2Zgu4?rel=0&amp;showinfo=1&amp;hl=en-US\" style=\"border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute;\" allowfullscreen scrolling=\"no\" allow=\"encrypted-media; accelerometer; gyroscope; picture-in-picture\"><\/iframe><\/div>\n<\/div>\n<\/div>\n<p>  \u041d\u0430 \u0432\u0438\u0434\u0435\u043e \u0432\u0435\u0440\u0441\u0438\u044f \u0431\u0435\u0437 \u0437\u0432\u0443\u043a\u0430.<br \/>  \u0418 \u0435\u0449\u0435 \u0443 \u043c\u0435\u043d\u044f \u043f\u0440\u0438\u043f\u043b\u0430\u0432\u0438\u043b\u0441\u044f \u043a\u043e\u043d\u0442\u0430\u043a\u0442 \u0434\u0436\u043e\u0439\u0441\u0442\u0438\u043a\u0430 \u0434\u043b\u044f \u043f\u043e\u0432\u043e\u0440\u043e\u0442\u0430 \u043a\u043e\u0433\u0434\u0430 \u043f\u0430\u044f\u043b. \u0412 \u043e\u0431\u0449\u0435\u043c \u043f\u0435\u0440\u0432\u044b\u0439 \u0431\u043b\u0438\u043d \u043a\u043e\u043c\u043e\u043c<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/495700\/\"> https:\/\/habr.com\/ru\/post\/495700\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/495700\/\">\u041f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0430 \u0434\u043b\u044f Doom \u043d\u0430 ESP32 \u0441\u0432\u043e\u0438\u043c\u0438 \u0440\u0443\u043a\u0430\u043c\u0438 \u043d\u0430 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0435 MCP23017 \u0434\u043b\u044f \u043a\u043d\u043e\u043f\u043e\u043a \u043e\u0442 UncleRus<\/p>\n<p>  <img decoding=\"async\" width=\"500\" src=\"https:\/\/habrastorage.org\/webt\/e_\/br\/13\/e_br13t_nva7dv5lrbr8b9-8rpo.jpeg\"><br \/>  <img decoding=\"async\" width=\"500\" src=\"https:\/\/habrastorage.org\/webt\/it\/_4\/wj\/it_4wjuhc9m8api63gzolghcwlq.jpeg\"><\/p>\n<p>  \u0412 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/494748\/\">Doom \u0447\u0430\u0441\u043e\u0432<\/a> \u043f\u0440\u0438\u0448\u043b\u0430 \u043f\u043b\u0430\u0442\u0430 \u0434\u0430\u0432\u043d\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u041d\u0430 \u043f\u043b\u0430\u0442\u0435 \u0440\u0430\u0437\u0432\u0435\u0434\u0435\u043d\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0435 MCP23017 \u0438 CS4344 \u0438 \u0435\u0449\u0435 \u043c\u043d\u043e\u0433\u043e \u0447\u0435\u0433\u043e<\/p>\n<p>  \u0414\u043b\u044f \u043a\u043d\u043e\u043f\u043e\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u0435\u043b\u044c \u043f\u043e\u0440\u0442\u043e\u0432 MCP23017 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0439 \u043f\u043e I2C. \u0414\u043b\u044f \u043d\u0435\u0433\u043e \u0435\u0441\u0442\u044c \u0434\u0440\u0430\u0439\u0432\u0435\u0440 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0432\u0437\u044f\u0442\u044c \u0443 <a href=\"https:\/\/github.com\/UncleRus\/esp-idf-lib\" rel=\"nofollow\">UncleRus<\/a>. \u0421\u0434\u0435\u043b\u0430\u043d\u0430 \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e \u0410\u0426\u041f CS4344<\/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-302491","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/302491","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=302491"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/302491\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=302491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=302491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=302491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}