{"id":307700,"date":"2020-07-30T03:00:16","date_gmt":"2020-07-30T03:00:16","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=307700"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=307700","title":{"rendered":"Doom Boy ESP32. \u0412\u0442\u043e\u0440\u0430\u044f \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u044f"},"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\/512130\/\">\u0422\u0430\u043a \u0438 \u043d\u0435 \u0434\u043e\u0436\u0434\u0430\u0432\u0448\u0438\u0441\u044c <a href=\"https:\/\/habr.com\/ru\/post\/494748\/\">DoomWatch<\/a> \u043f\u043b\u0430\u0442\u044b \u0441\u0434\u0435\u043b\u0430\u043b \u043d\u043e\u0432\u044b\u0439 \u0437\u0430\u043a\u0430\u0437 \u0441 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u043e\u0439 Fedex. \u0412 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0440\u0430\u0437\u0432\u0435\u043b \u043f\u043b\u0430\u0442\u044b \u0432 KiCad. \u041a\u0430\u043a \u043d\u0438 \u0441\u0442\u0440\u0430\u043d\u043d\u0430, Kicad \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u0441\u044f \u0434\u0430\u0436\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 Eagle AutoDesk<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/82\/ld\/ll\/82ldllly_prhmctl_d01gc2xv-g.png\"><\/p>\n<p>  \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0446\u0435\u043b\u044c \u0431\u044b\u043b\u0430 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0441\u043f\u0430\u044f\u0442\u044c \u0447\u0438\u043f esp32d0wdq6. \u041d\u0435 \u0441\u0430\u043c \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u043e\u0439 \u0441 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c Flash \u0438 PSRAM. \u041a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0441 \u0432\u0438\u0434\u0435\u043e\u0434\u0435\u043c\u043a\u0430\u043c\u0438, \u0447\u0438\u0442\u0430\u0435\u0442\u0435 \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0434\u0430\u043b\u044c\u0448\u0435<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0417\u0434\u0435\u0441\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0440\u043e <a href=\"https:\/\/habr.com\/ru\/post\/495700\/\">\u043f\u0435\u0440\u0432\u0443\u044e \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u044f \u043f\u043b\u0430\u0442\u044b<\/a><\/p>\n<h3>Boot<\/h3>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">Boot Log<\/b>                         <\/p>\n<div class=\"spoiler_text\">rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)<br \/>  configsip: 0, SPIWP:0xee<br \/>  clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00<br \/>  mode:DIO, clock div:2<br \/>  load:0x3fff0030,len:4<br \/>  load:0x3fff0034,len:7076<br \/>  load:0x40078000,len:14600<br \/>  load:0x40080400,len:4160<br \/>  0x40080400: _init at ??:?<\/p>\n<p>  entry 0x40080684<br \/>  I (28) boot: ESP-IDF v4.2-dev-2243-gcf056a7d0-dirty 2nd stage bootloader<br \/>  I (29) boot: compile time 18:51:57<br \/>  I (30) boot: chip revision: 1<br \/>  I (33) boot_comm: chip revision: 1, min. bootloader chip revision: 0<br \/>  I (52) boot.esp32: SPI Speed: 40MHz<br \/>  I (53) boot.esp32: SPI Mode: DIO<br \/>  I (53) boot.esp32: SPI Flash Size: 8MB<br \/>  I (56) boot: Enabling RNG early entropy source\u2026<br \/>  I (62) boot: Partition Table:<br \/>  I (65) boot: ## Label Usage Type ST Offset Length<br \/>  I (73) boot: 0 factory factory app 00 00 00010000 000e8000<br \/>  I (80) boot: 1 wifidata WiFi data 01 02 000fc000 00004000<br \/>  I (88) boot: 2 wad unknown 42 06 00100000 004f4000<br \/>  I (95) boot: End of partition table<br \/>  I (99) boot_comm: chip revision: 1, min. application chip revision: 0<br \/>  I (106) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x38f98 (233368) map<br \/>  I (216) esp_image: segment 1: paddr=0x00048fc0 vaddr=0x3ffb0000 size=0x07058 ( 28760) load<br \/>  I (230) esp_image: segment 2: paddr=0x00050020 vaddr=0x400d0020 size=0x86370 (549744) map<br \/>  0x400d0020: _stext at ??:?<\/p>\n<p>  I (468) esp_image: segment 3: paddr=0x000d6398 vaddr=0x3ffb7058 size=0x04ec4 ( 20164) load<br \/>  I (478) esp_image: segment 4: paddr=0x000db264 vaddr=0x40080000 size=0x00404 ( 1028) load<br \/>  0x40080000: _WindowOverflow4 at \/esp\/v3.3.2\/esp-idf\/components\/freertos\/xtensa\/xtensa_vectors.S:1730<\/p>\n<p>  I (479) esp_image: segment 5: paddr=0x000db670 vaddr=0x40080404 size=0x12b7c ( 76668) load<br \/>  I (538) boot: Loaded app from partition at offset 0x10000<br \/>  I (538) boot: Disabling RNG early entropy source\u2026<br \/>  I (549) psram: This chip is ESP32-D0WD<br \/>  I (551) spiram: Found 64MBit SPI RAM device<br \/>  I (551) spiram: SPI RAM mode: flash 40m sram 40m<br \/>  I (555) spiram: PSRAM initialized, cache is in low\/high (2-core) mode.<br \/>  I (562) cpu_start: Pro cpu up.<br \/>  I (566) cpu_start: Starting app cpu, entry point is 0x4008191c<br \/>  0x4008191c: start_cpu0_default at \/esp\/v3.3.2\/esp-idf\/components\/esp32\/cpu_start.c:466<\/p>\n<p>  I (0) cpu_start: App cpu up.<br \/>  I (1454) spiram: SPI SRAM memory test OK<br \/>  I (1462) cpu_start: Pro cpu start user code<br \/>  I (1462) cpu_start: Application information:<br \/>  I (1462) cpu_start: Project name: esp32_doom<br \/>  I (1466) cpu_start: App version: 085f21b-dirty<br \/>  I (1472) cpu_start: Compile time: Jul 26 2020 18:51:49<br \/>  I (1478) cpu_start: ELF file SHA256: 9166eca39a0109f9\u2026<br \/>  I (1484) cpu_start: ESP-IDF: v4.2-dev-2243-gcf056a7d0-dirty<br \/>  I (1491) heap_init: Initializing. RAM available for dynamic allocation:<br \/>  I (1498) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM<br \/>  I (1504) heap_init: At 3FFCF628 len 000109D8 (66 KiB): DRAM<br \/>  I (1511) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D\/IRAM<br \/>  I (1517) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D\/IRAM<br \/>  I (1524) heap_init: At 40092F80 len 0000D080 (52 KiB): IRAM<br \/>  I (1530) spiram: Adding pool of 4096K of external SPI memory to heap allocator<br \/>  I (1539) spi_flash: detected chip: generic<br \/>  I (1543) spi_flash: flash io: dio<br \/>  I (1548) cpu_start: Starting scheduler on PRO CPU.<br \/>  I (0) cpu_start: Starting scheduler on APP CPU.<br \/>  I (1557) spiram: Reserving pool of 32K of internal memory for DMA\/internal allocations  <\/div>\n<\/p><\/div>\n<h3>KiCad PCB<\/h3>\n<p>  \u0412 KiCad \u043a\u0430\u043a \u043c\u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0432\u0441\u0435 \u043f\u0440\u043e\u0449\u0435. \u041d\u0430 \u043c\u043e\u0439 \u0432\u043a\u0443\u0441 \u043a\u043e\u043d\u0435\u0447\u043d\u043e. \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e \u0434\u0440\u0443\u0433\u043e\u043c\u0443 \u0447\u0435\u043c \u0432 Eagle Autodesk. \u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u043f\u043b\u044e\u0441 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043d\u0435\u0442 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u043d\u0430 \u0440\u0430\u0437\u043c\u0435\u0440 \u043f\u043b\u0430\u0442\u044b \u0435\u0441\u043b\u0438 \u043d\u0435 \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0437\u0430 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044e. \u041d\u0430\u043f\u043e\u043c\u043d\u044e \u0447\u0442\u043e \u0432 Eagle \u0435\u0441\u0442\u044c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u043d\u0430 \u0440\u0430\u0437\u043c\u0435\u0440 100&#215;80\u043c\u043c \u0434\u043b\u044f \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438. \u0415\u0441\u043b\u0438 \u043f\u043b\u0430\u0442\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0430\u0434\u043e \u043f\u043b\u0430\u0442\u0438\u0442\u044c \u0433\u043e\u0434\u043e\u0432\u0443\u044e \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044e. \u041f\u043e \u043c\u043e\u0435\u043c\u0443, \u0435\u0441\u0442\u044c \u0442\u0430\u043a\u0436\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u043d\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043b\u043e\u0435\u0432<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/3y\/rx\/x_\/3yrxx__p68vwjw0zjvkt132eivg.png\"><\/div>\n<p>  \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c 3D View \u0432 Eagle \u044f \u0442\u0430\u043a \u0438 \u043d\u0435 \u0441\u043c\u043e\u0433. \u041d\u0430\u0434\u043e \u0441\u0442\u0430\u0432\u0438\u0442\u044c Eagle Fusion 360. \u0412 Kicad \u044d\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0443\u043d\u043a\u0442 \u043c\u0435\u043d\u044e. \u0425\u043e\u0442\u044f \u043c\u043e\u0436\u0435\u0442 \u044f \u043d\u0435 \u0442\u0430\u043c \u0441\u043c\u043e\u0442\u0440\u0435\u043b. \u0412 \u043e\u0431\u0449\u0435\u043c \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u0448\u0435\u043b \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0430 KiCad<\/p>\n<p>  \u0420\u0430\u0437\u0434\u0435\u043b\u0438\u043b \u0432\u0441\u0435 \u043d\u0430 \u043c\u043e\u0434\u0443\u043b\u0438, \u043e\u0441\u0442\u0430\u0432\u0438\u0432 \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0442\u043e \u0447\u0442\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 ESP32 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u0421\u0430\u043c \u0447\u0438\u043f \u0438 \u043f\u0430\u043c\u044f\u0442\u044c<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/bb\/2q\/ii\/bb2qiinjshvkb1g8tjkwqzjruig.png\"><\/p>\n<h1>\u041e\u0448\u0438\u0431\u043a\u0438<\/h1>\n<p>  \u0420\u0438\u0441\u043e\u0432\u0430\u043b \u043f\u043b\u0430\u0442\u0443 \u0432 \u043f\u043e\u043f\u044b\u0445\u0430\u0445. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0437\u0430\u0431\u044b\u043b \u0432\u044b\u0432\u0435\u0441\u0442\u0438 GPIO0. \u041f\u043e\u0434\u0432\u0435\u043b \u0435\u0435 \u0432\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0439 DAC \u043a\u0430\u043a MCCLK, \u0430 \u0432\u043e\u0442 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u0440\u0435\u0436\u0438\u043c\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0437\u0430\u0431\u044b\u043b. \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0441\u0434\u0438\u0440\u0430\u0442\u044c \u043b\u0430\u043a \u0441 \u0434\u043e\u0440\u043e\u0436\u043a\u0438 \u0434\u043b\u044f \u043f\u0430\u0439\u043a\u0438 \u0432\u044b\u0432\u043e\u0434\u0430 \u043a\u043d\u043e\u043f\u043a\u0438. \u0422\u0430\u043a \u0436\u0435 \u0440\u0435\u0437\u0438\u0441\u0442\u043e\u0440 \u0432 \u0446\u0435\u043f\u0438 \u043a\u0432\u0430\u0440\u0446\u0430 \u0440\u0430\u0437\u0432\u0435\u043b \u043d\u0430 XTAL_N \u0430 \u0432 \u043c\u0430\u043d\u0443\u0430\u043b\u0435 \u043d\u0430\u0434\u043e \u043d\u0430 XTAL_P. \u041f\u043e\u0432\u0435\u0441\u0438\u043b \u0440\u0435\u0437\u0438\u0441\u0442\u043e\u0440 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u041e\u043c, \u043d\u043e \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0438 \u043f\u0435\u0440\u0435\u043c\u044b\u0447\u043a\u0443 \u043a\u0438\u043d\u0443\u0442\u044c<\/p>\n<p>  \u041d\u0435 \u0440\u0430\u0437\u0432\u0435\u043b\u0438\u0441\u044c \u0440\u0435\u0437\u0438\u0441\u0442\u043e\u0440\u044b Address \u0438 Reset \u0434\u043b\u044f MCP23017. \u0427\u0438\u043f\u0443 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u0430\u0434\u0440\u0435\u0441 I2C \u0442\u0440\u0435\u043c\u044f \u0432\u044b\u0432\u043e\u0434\u0430\u043c\u0438. 0x20h \u043a\u043e\u0433\u0434\u0430 \u0432\u0441\u0435 \u0442\u0440\u0438 \u0432\u044b\u0432\u043e\u0434\u0430 \u043d\u0430 \u0437\u0435\u043c\u043b\u0435. \u0412\u0441\u0435 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043b FootPrint<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/-p\/pe\/le\/-ppeleabrgvar2rjc8rbl4xsx_0.png\"><br \/>  \u041d\u0430 \u043e\u0448\u0438\u0431\u043a\u0443 \u043d\u0435 \u043e\u0431\u0440\u0430\u0442\u0438\u043b \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f  <\/p>\n<blockquote><p>Error: Cannot add R10 (no footprint assigned).<br \/>  Error: Cannot add R9 (no footprint assigned)<\/p><\/blockquote>\n<p>  \u041f\u0435\u0440\u0435\u043f\u0443\u0442\u0430\u043b i2C \u0434\u043b\u044f ES8374. \u0411\u044b\u0432\u0430\u0435\u0442 \u0438 \u0442\u0430\u043a\u043e\u0435. \u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0432 21 -&gt; 22 \u0438 22 -&gt; 21 \u0432\u044b\u0432\u043e\u0434\u044b. \u0418\u043b\u0438 \u043f\u0435\u0440\u0435\u0440\u0435\u0437\u0430\u0442\u044c \u0434\u043e\u0440\u043e\u0436\u043a\u0438 \u0438 \u043e\u0442\u0441\u043a\u043e\u0431\u043b\u0438\u0442\u044c \u043b\u0430\u043a, \u043d\u0443 \u043a\u0430\u043a \u044d\u0442\u043e \u043c\u044b \u043e\u0431\u044b\u0447\u043d\u043e \u0434\u0435\u043b\u0430\u043b\u0438 \u0441 TX RX Uart (\u0413\u0440\u0443\u0441\u0442\u043d\u044b\u0439 \u0441\u043c\u0430\u0439\u043b)<\/p>\n<p>  <img decoding=\"async\" width=\"300\" src=\"https:\/\/habrastorage.org\/webt\/wz\/pg\/0c\/wzpg0cbwf9yeqremzcoo_8hewpe.png\"><\/p>\n<p>  \u041d\u0430 \u0443\u0434\u0438\u0432\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0430\u044f\u0432 ESP32 \u0438 FLASH \u043f\u043b\u0430\u0442\u0430 \u0437\u0430\u0432\u0435\u043b\u0430\u0441\u044c \u0431\u0435\u0437 \u043a\u0430\u043a\u0438\u0445 \u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c. \u041d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0432 SPRAM \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 reboot. \u041e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0431\u0430\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u043d\u0435\u043f\u0440\u043e\u043f\u0430\u0439 \u043f\u043e \u043f\u0438\u0442\u0430\u043d\u0438\u044e. \u0412\u043e\u0442 \u0431\u044b \u044f \u0438\u0441\u043a\u0430\u043b \u0435\u0441\u043b\u0438 ESP32 \u043d\u0435 \u043f\u0440\u0438\u043f\u0430\u044f\u043b\u0441\u044f!<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/r2\/tl\/ze\/r2tlzemho4dbr7nwpkoshhnvpum.jpeg\"><\/p>\n<h3>\u041c\u0443\u043b\u044c\u0442\u0438\u043f\u043b\u0435\u043a\u0441\u043e\u0440 MCP23017<\/h3>\n<p>  \u041f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u043e\u043f\u0440\u043e\u0441\u0430 \u043a\u043d\u043e\u043f\u043e\u043a \u043a\u0430\u043a \u0447\u0435\u0440\u0435\u0437 \u043c\u0443\u043b\u044c\u0442\u0438\u043f\u043b\u0435\u043a\u0441\u043e\u0440 MCP23017 \u0442\u0430\u043a \u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0426\u0410\u041f. \u041d\u0430 \u0440\u0435\u0437\u0435\u0441\u0442\u0438\u0432\u043d\u043e\u043c \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0435. \u0415\u0441\u043b\u0438 \u043d\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043c\u0443\u043b\u044c\u0442\u0438\u043f\u043b\u0435\u043a\u0441\u043e\u0440 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 ADC. \u041f\u043e \u0443\u0440\u043e\u0432\u043d\u044e \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f \u043d\u0430 \u0432\u0445\u043e\u0434\u0435 GPIO34 \u043c\u043e\u0436\u043d\u043e \u0434\u0435\u0442\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u043a\u043d\u043e\u043f\u043a\u0438. \u041c\u0438\u043d\u0443\u0441 \u0432 \u0442\u043e\u043c \u0447\u0442\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u043d\u043e\u043f\u043e\u043a \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e. \u041f\u043b\u044e\u0441 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0447\u0442\u043e \u043d\u0435 \u043d\u0430\u0434\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b. \u0422\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0435\u0437\u0438\u0441\u0442\u043e\u0440\u043e\u0432<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/nz\/mu\/ff\/nzmuffg36y40wurfduxn-tyu18k.png\"><br \/>  \u041c\u0443\u043b\u044c\u0442\u0438\u043f\u043b\u0435\u043a\u0441\u043e\u0440 \u0438\u043c\u0435\u0435\u0442 2 \u043f\u043e\u0440\u0442\u0430 \u043f\u043e 8 \u0432\u044b\u0432\u043e\u0434\u043e\u0432. \u041e\u0434\u0438\u043d \u043f\u043e\u0440\u0442, \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u0432\u044b\u0445\u043e\u0434 \u0438 \u043f\u043e\u0432\u0435\u0441\u0438\u0442\u044c \u043d\u0430 \u043d\u0438\u0445 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u044b. \u0425\u043e\u0442\u0435\u043b \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043c\u0438\u0433\u0430\u043d\u0438\u0435 \u0435\u0441\u043b\u0438 \u0436\u0438\u0437\u043d\u0438 \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043c\u0435\u043d\u044c\u0448\u0435 20% \u0438\u043b\u0438 \u043a\u043e\u043d\u0447\u0438\u043b\u0438\u0441\u044c \u043f\u0430\u0442\u0440\u043e\u043d\u044b. \u0422\u043e\u0433\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u0433\u0440\u0430\u0442\u044c \u0431\u0435\u0437 \u043f\u0430\u043d\u0435\u043b\u0438. \u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c. \u041e\u0441\u0442\u0430\u043b\u0441\u044f \u043e\u0434\u0438\u043d \u0437\u0435\u043b\u0435\u043d\u044b\u0439 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434. \u0415\u0441\u043b\u0438 \u0432 \u043a\u043e\u043c\u043d\u0430\u0442\u0435 \u043d\u0435\u0442 \u0432\u0440\u0430\u0433\u043e\u0432 \u0438\u043b\u0438 \u0432 \u043f\u0440\u044f\u043c\u043e\u0439 \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u0438\u0442\u044c<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/tj\/6x\/g4\/tj6xg4goybmsixxbgksfmlxvp-0.png\"><\/div>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">Thread of the health and ammo indicator<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\">void ledTask(void *arg){      while(1){             p = &amp;players[cur_player];              if (p-&gt;mo != NULL &amp;&amp; p-&gt;mo-&gt;health &lt; 20) {                 mcp23x17_set_level(&amp;dev, 9, on);             } else {                 mcp23x17_set_level(&amp;dev, 9, true);             }              if(p-&gt;ammo[weaponinfo[p-&gt;readyweapon].ammo] &lt; 5){               mcp23x17_set_level(&amp;dev, 10, on);             } else {               mcp23x17_set_level(&amp;dev, 10, true);             }              printf(&quot;p-&gt;ammo[am_clip] = %d\\n&quot;, p-&gt;ammo[weaponinfo[p-&gt;readyweapon].ammo]);              if (p-&gt;mo != NULL) {                 printf(&quot;p-&gt;mo-&gt;health = %d \\n&quot;, p-&gt;mo-&gt;health);             }              printf(&quot;Ammo N = %d\\n&quot;, weaponinfo[p-&gt;readyweapon].ammo);               on = !on;              vTaskDelay(1000\/portTICK_PERIOD_MS);     } } <\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<h3>\u0410\u0443\u0434\u0438\u043e \u0447\u0438\u043f ES8374<\/h3>\n<p>  \u0414\u043b\u044f \u0437\u0432\u0443\u043a\u0430, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0426\u0410\u041f \u0438 \u0410\u0426\u041f \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043b ES8374. \u041c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0443\u0441\u0438\u043b\u0438\u0442\u0435\u043b\u044c \u043d\u0438\u0437\u043a\u043e\u0439 \u0447\u0430\u0441\u0442\u043e\u0442\u044b ~ 1.25 \u0412\u0430\u0442\u0442. \u041e\u043d\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f <a href=\"https:\/\/github.com\/espressif\/esp-adf\" rel=\"nofollow\">Espressif Audio Development Framework<\/a> \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438. \u0412 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u043c \u043a\u043e\u0440\u043f\u0443\u0441\u0435 QFN-28 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u041c\u043e\u043d\u043e \u0426\u0410\u041f, \u0410\u0426\u041f \u0434\u043b\u044f \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d\u0430 \u0438 \u0423\u041d\u0427 \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 SDK. \u0422\u043e \u0447\u0442\u043e \u043d\u0430\u0434\u043e \u0434\u043b\u044f \u0442\u0430\u043a\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/xi\/dg\/j7\/xidgj7j-2qavwuulssrnjaaktii.png\"><br \/>  \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043b BT Speaker \u0438\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u0430<a href=\"https:\/\/github.com\/espressif\/esp-adf\/tree\/master\/examples\/player\/pipeline_bt_sink\" rel=\"nofollow\"> pipeline_bt_sink <\/a><\/p>\n<p>  \u0412\u0437\u044f\u043b \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0431\u043e\u0440\u0434\u0443 lyrat_v4_3. \u0418\u0441\u043f\u0440\u0430\u0432\u0438\u043b \u043a\u043e\u0434\u0435\u043a \u043d\u0430 AUDIO_CODEC_ES8374_DEFAULT_HANDLE<br \/>  \u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043b \u043f\u043e\u0440\u0442\u044b GPIO  <\/p>\n<pre><code class=\"cpp\">esp_err_t get_i2s_pins(i2s_port_t port, i2s_pin_config_t *i2s_config) {     AUDIO_NULL_CHECK(TAG, i2s_config, return ESP_FAIL);     if (port == I2S_NUM_0 || port == I2S_NUM_1) {         i2s_config-&gt;bck_io_num = GPIO_NUM_18;         i2s_config-&gt;ws_io_num = GPIO_NUM_26;         i2s_config-&gt;data_out_num = GPIO_NUM_27;         i2s_config-&gt;data_in_num = GPIO_NUM_35;     } else {         memset(i2s_config, -1, sizeof(i2s_pin_config_t));         ESP_LOGE(TAG, &quot;i2s port %d is not supported&quot;, port);         return ESP_FAIL;     }     return ESP_OK; } <\/code><\/pre>\n<p>  \u0418 \u0432\u044b\u043a\u0438\u043d\u0443\u043b \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e audio_board_key_init \u0438 audio_board_led_init. \u041f\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u043c\u0443 \u043d\u0430\u0434\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0441\u0432\u043e\u044e \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u0443\u044e \u043f\u043b\u0430\u0442\u0443<\/p>\n<h3>\u0413\u0438\u0440\u043e\u0441\u043a\u043e\u043f L3GD20<\/h3>\n<p>  \u0420\u0435\u0448\u0438\u043b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0433\u0438\u0440\u043e\u0441\u043a\u043e\u043f L3GD20. \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c, \u0447\u0442\u043e \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u0430\u043a SPI \u0438\u043b\u0438 I2C \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e. R27, R28 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043f\u043e I2C \u0437\u0430\u0434\u0430\u044e\u0442 \u0430\u0434\u0440\u0435\u0441  <\/p>\n<blockquote><p>\/\/ L3GD20H addresses<br \/>  #define L3GD20H_I2C_ADDRESS_1 0x6a \/\/ SDO pin is low<br \/>  #define L3GD20H_I2C_ADDRESS_2 0x6b \/\/ SDO pin is high<\/p><\/blockquote>\n<p>\u041d\u0430 GitHub \u0435\u0441\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 <a href=\"https:\/\/github.com\/gschorcht\/l3gd20h-esp-idf\" rel=\"nofollow\">l3gd20h-esp-idf<\/a><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/up\/rb\/e-\/uprbe-xlbjdbkvp9avfi8qanbxa.png\"><br \/>  \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043d\u0430 I2C \u0438\u043c\u0435\u0435\u043c 3 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430. \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 ADC-DAC ES8374, \u043a\u043d\u043e\u043f\u043a\u0438 \u043d\u0430 MCP23017 \u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e L3GD20. \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043b \u0432\u0441\u0435 \u0442\u0440\u0438<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">i2cdetect<\/b>                         <\/p>\n<div class=\"spoiler_text\">i2c-tools&gt; i2cdetect<br \/>   0 1 2 3 4 5 6 7 8 9 a b c d e f<br \/>  00: \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; <br \/>  10: 10 \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 <br \/>  20: \u2014 &#8212; \u2014 &#8212; 24 \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 <br \/>  30: \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; <br \/>  40: \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; <br \/>  50: \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; <br \/>  60: \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; 6a \u2014 &#8212; \u2014 &#8212; \u2014 <br \/>  70: \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212; \u2014 &#8212;   <\/div>\n<\/p><\/div>\n<p>  \u041d\u043e \u043f\u043e\u0447\u0435\u043c\u0443\u0442\u043e L3GD20 \u043d\u0435 \u043e\u0442\u0434\u0430\u0435\u0442 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b. WHO_AM_I \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043e \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 0xd4. \u0443\u0433\u043b\u044b \u043d\u0435 \u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f. \u0423 \u043c\u0435\u043d\u044f \u043d\u0435\u0442 \u043a\u043e\u043d\u0434\u0435\u043d\u0441\u0430\u0442\u043e\u0440\u0430 \u04211 \u2014 10nF, \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0448\u0435\u043b \u0441\u0430\u043c\u044b\u0439 \u0431\u043b\u0438\u0437\u043a\u0438\u0439 100nF. \u0414\u0443\u043c\u0430\u043b \u043f\u0443\u0441\u0442\u044c \u0445\u043e\u0442\u044f \u0431\u044b \u0432\u0440\u0435\u0442, \u043d\u043e \u043f\u043e\u0445\u043e\u0436\u0435 \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u0438\u0439 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c. <a href=\"https:\/\/www.mouser.com\/datasheet\/2\/389\/en.l3gd20_l3g4200d_marketing_pres-1150317.pdf\" rel=\"nofollow\">\u0418 \u044d\u0442\u043e \u0432\u0430\u0436\u043d\u043e<\/a> <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">i2cdump<\/b>                         <\/p>\n<div class=\"spoiler_text\">i2c-tools&gt; i2cdump -c 0x6a<br \/>  0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef<br \/>  00: b6 5e 81 fc 05 50 31 83 c4 f9 85 d0 48 c6 00 d4 ?^???P1?????H?.?<br \/>  10: 1a 15 16 ea c0 b9 4f 72 07 d8 a1 21 a1 00 14 02 ??????Or???!?.??<br \/>  20: 07 00 00 80 00 00 0c 00 1a 00 13 00 16 00 00 20 ?..?..?.?.?.?..<br \/>  30: 00 00 00 00 00 00 00 00 00 05 00 00 00 00 00 00 &#8230;&#8230;&#8230;?..<br \/>  40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00\u2026<br \/>  50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00\u2026<br \/>  60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00\u2026<br \/>  70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00\u2026  <\/div>\n<\/p><\/div>\n<h3>\u0414\u0438\u0441\u043f\u043b\u0435\u0439 18 pin ILI9341<\/h3>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/sy\/d2\/ik\/syd2iktdkntnnlozfstisdp9fnu.jpeg\"><br \/>  \u0420\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043b \u0442\u043e\u043a \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u043a\u0438 \u0442\u0430\u043a. \u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f 90mA. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u043d\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u043c \u0442\u0440\u0430\u043d\u0437\u0438\u0441\u0442\u043e\u0440\u0435 ~0.7V \u043f\u0438\u0442\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043e\u0432 \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u043a\u0438 3.3V \u2014 0.7V = 2.6V. \u0418 \u043f\u043e \u0437\u0430\u043a\u043e\u043d\u0443 \u041e\u043c\u0430 2.6V \/ 0.090A = 28.8 Ohm. \u041f\u043e\u0441\u0442\u0430\u0432\u0438\u043b 47 Ohm. \u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0442\u0435\u043c\u043d\u043e\u0432\u0430\u0442\u043e. \u041d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u0441\u043e\u043f\u0440\u043e\u0442\u0438\u0432\u043b\u0435\u043d\u0438\u0435<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/k4\/qh\/mx\/k4qhmxmravel9qs-athp2140nvm.png\"><\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u0440\u0430\u0437\u0432\u0435\u043b Touch XPT2046TS. SPI \u0432\u044b\u0432\u043e\u0434\u044b \u043f\u043e\u0432\u0435\u0441\u0438\u043b \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u0434\u0438\u0441\u043f\u043b\u0435\u044e. XPT_CS \u0432\u044b\u0432\u0435\u0434\u0435\u043d \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u0432\u044b\u0432\u043e\u0434\u043e\u043c. \u0415\u0441\u0442\u044c \u0441\u043e\u043c\u043d\u0435\u043d\u0438\u0435 \u0447\u0442\u043e \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0415\u0441\u043b\u0438 \u0431\u044b \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u043d\u0435 \u0437\u0430\u0432\u0435\u043b\u0441\u044f, \u0441\u0434\u0435\u043b\u0430\u043b \u0431\u044b \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u044b. \u0414\u043b\u044f \u043f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0438 \u043e\u043d \u043d\u0435 \u043e\u0441\u043e\u0431\u043e \u043d\u0443\u0436\u0435\u043d. \u0412\u0437\u044f\u043b \u0438\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u0430<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/yh\/u5\/d8\/yhu5d84j4zgo274du5wfyj76iyg.png\"><\/p>\n<h3>\u0414\u0435\u043c\u043a\u0438<\/h3>\n<p>   \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043b \u0434\u0435\u043c\u043e LVGL. \u0412 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c 40MHz \u0434\u043b\u044f \u0448\u0438\u043d\u044b SPI. \u041f\u0440\u0438\u043c\u0435\u0440 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0447\u0435\u043c \u043d\u0430 \u0432\u0438\u0434\u0435\u043e<\/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\/ejx-4ddsTj8?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>  \u0410 \u0432\u043e\u0442 Doom \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0441\u044f \u0438 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 32MHz. \u0425\u043e\u0442\u044f 26MHz \u0434\u043b\u044f ILI9341 \u0443\u0436\u0435 \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u0433\u043e\u043d  <\/p>\n<pre><code class=\"cpp\">spi_device_interface_config_t devcfg={         .clock_speed_hz=26000000,               \/\/Clock out at 26 MHz. Yes, that's heavily overclocked.         .mode=0,                                \/\/SPI mode 0         .spics_io_num=PIN_NUM_CS,               \/\/CS pin         .queue_size=NO_SIM_TRANS,               \/\/We want to be able to queue this many transfers         .pre_cb=ili_spi_pre_transfer_callback,  \/\/Specify pre-transfer callback to handle D\/C line     }; <\/code><\/pre>\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\/2bip3QmBZFc?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<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>  \u041f\u043e\u0440\u0442\u043e\u0432 \u0432\u0432\u043e\u0434\u0430 \u0432\u044b\u0432\u043e\u0434\u0430 ESP32 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0444\u0430\u0440\u0448\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c\u0443. \u0412 \u044d\u0442\u043e\u043c \u043f\u043b\u0430\u043d\u0435 STM32 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u0438\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u0435\u0435. \u041d\u043e \u0443 \u043d\u0435\u0435 \u043d\u0435\u0442 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 Wi-Fi<\/p>\n<p>  \u0412 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u043e\u0442\u043c\u0435\u0447\u0443, \u0447\u0442\u043e \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c Nintendo \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440 <a href=\"https:\/\/github.com\/espressif\/esp32-nesemu\" rel=\"nofollow\">ESP32-NESEMU, a Nintendo Entertainment System emulator for the ESP32<\/a><br \/>  \u042f \u0437\u0430\u043a\u0430\u0437\u0430\u043b Game Console \u0441 \u0410\u043b\u0438. \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0447\u0442\u043e \u0442\u0430\u043c \u0432\u043d\u0443\u0442\u0440\u0438. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0442\u043e\u0436\u0435 ESP32<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/3f\/bj\/my\/3fbjmyjctxejgvt0mytwoce6-sy.png\"><\/div>\n<p>  \u041e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0435 \u0438 \u0441\u043e\u0432\u0435\u0442\u044b \u0436\u0434\u0443 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/512130\/\"> https:\/\/habr.com\/ru\/post\/512130\/<\/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\/512130\/\">\u0422\u0430\u043a \u0438 \u043d\u0435 \u0434\u043e\u0436\u0434\u0430\u0432\u0448\u0438\u0441\u044c <a href=\"https:\/\/habr.com\/ru\/post\/494748\/\">DoomWatch<\/a> \u043f\u043b\u0430\u0442\u044b \u0441\u0434\u0435\u043b\u0430\u043b \u043d\u043e\u0432\u044b\u0439 \u0437\u0430\u043a\u0430\u0437 \u0441 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u043e\u0439 Fedex. \u0412 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0440\u0430\u0437\u0432\u0435\u043b \u043f\u043b\u0430\u0442\u044b \u0432 KiCad. \u041a\u0430\u043a \u043d\u0438 \u0441\u0442\u0440\u0430\u043d\u043d\u0430, Kicad \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u0441\u044f \u0434\u0430\u0436\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 Eagle AutoDesk<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/82\/ld\/ll\/82ldllly_prhmctl_d01gc2xv-g.png\"><\/p>\n<p>  \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0446\u0435\u043b\u044c \u0431\u044b\u043b\u0430 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0441\u043f\u0430\u044f\u0442\u044c \u0447\u0438\u043f esp32d0wdq6. \u041d\u0435 \u0441\u0430\u043c \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u043e\u0439 \u0441 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c Flash \u0438 PSRAM. \u041a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0441 \u0432\u0438\u0434\u0435\u043e\u0434\u0435\u043c\u043a\u0430\u043c\u0438, \u0447\u0438\u0442\u0430\u0435\u0442\u0435 \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0434\u0430\u043b\u044c\u0448\u0435  <\/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-307700","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/307700","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=307700"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/307700\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=307700"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=307700"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=307700"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}