{"id":368525,"date":"2024-05-21T03:44:24","date_gmt":"2024-05-21T03:44:24","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=368525"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=368525","title":{"rendered":"<span>\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u0435 WS2812B<\/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>\u0414\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f:<\/p>\n<ol>\n<li>\n<p>\u0410\u0440\u0434\u0443\u0438\u043d\u043e \u043d\u0430\u043d\u043e;<\/p>\n<\/li>\n<li>\n<p>\u041c\u0430\u0442\u0440\u0438\u0446\u0430 WS2812B 8\u04458 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0414\u0430\u0442\u0447\u0438\u043a \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0438 \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u0438 AHT21;<\/p>\n<\/li>\n<li>\n<p>\u0411\u043b\u043e\u043a \u043f\u0438\u0442\u0430\u043d\u0438\u044f 5v 1a \u0438\u043b\u0438 \u0430\u043a\u043a\u0443\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u044b.<\/p>\n<\/li>\n<\/ol>\n<p>\u041a\u0430\u043a \u043f\u0440\u043e\u0448\u0438\u0442\u044c \u0430\u0440\u0434\u0443\u0438\u043d\u043e \u043d\u0430\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0438\u0437 \u043c\u043d\u043e\u0433\u0438\u0445 \u0441\u0442\u0430\u0442\u0435\u0439 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435, \u0442\u0430\u043a \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u044d\u0442\u0430\u043f \u043c\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u043c.<\/p>\n<h2>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0434\u0430\u0442\u0447\u0438\u043a\u0430<\/h2>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0434\u0430\u0442\u0447\u0438\u043a \u043f\u043e \u0442\u0430\u043a\u043e\u0439 \u0441\u0445\u0435\u043c\u0435:<\/p>\n<p>SDA \u2013 A4<\/p>\n<p>SCL \u2013 A5<\/p>\n<p>VCC \u2013 5V<\/p>\n<p>GND \u2013 GND arduino nano<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u044d\u0442\u043e\u0442 \u0441\u043a\u0435\u0442\u0447 \u0432 \u0430\u0440\u0434\u0443\u0438\u043d\u043e \u043d\u0430\u043d\u043e:<\/p>\n<pre><code class=\"cpp\">#include &lt;Wire.h>  #include &lt;Adafruit_AHTX0.h>    Adafruit_AHTX0 aht;    void setup() {   Serial.begin(9600);   while (!Serial) delay(10); \/\/ \u041e\u0436\u0438\u0434\u0430\u043d\u0438\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u0441\u0435\u0440\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u0440\u0442\u0430     if (!aht.begin()) {   Serial.println(\"Could not find AHT device!\");   while (1) delay(10);   }   Serial.println(\"AHT21 found\");  }    void loop() {   sensors_event_t temp;   aht.getEvent(nullptr, &amp;temp); \/\/ \u0427\u0442\u0435\u043d\u0438\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0430\u043d\u043d\u044b\u0445 \u043e \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0435     Serial.print(\"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430: \"); Serial.print(temp.temperature); Serial.println(\" C\");   \/\/ \u0432 \u0441\u0435\u0440\u0438\u0430\u043b \u043f\u043e\u0440\u0442 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430  delay(2000); \/\/ \u041f\u0430\u0443\u0437\u0430 2 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u043c\u0435\u0436\u0434\u0443 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f\u043c\u0438  }<\/code><\/pre>\n<h3>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b<\/h3>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u0443 \u043f\u043e \u0442\u0430\u043a\u043e\u0439 \u0441\u0445\u0435\u043c\u0435:<\/p>\n<p>DIN \u2013 D6<\/p>\n<p>5V \u2013 5V<\/p>\n<p>GND \u2013 GND arduino nano<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0441\u043a\u0435\u0442\u0447:<\/p>\n<pre><code class=\"cpp\">#include &lt;FastLED.h>    #define LED_PIN 6  #define NUM_LEDS 64  #define BRIGHTNESS 50  #define LED_TYPE WS2812B  #define COLOR_ORDER GRB  CRGB leds[NUM_LEDS];    void setup() {   FastLED.addLeds&lt;LED_TYPE, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS).setCorrection(TypicalLEDStrip);   FastLED.setBrightness(BRIGHTNESS);  }    void loop() {   fill_solid(leds, NUM_LEDS, CRGB::White);   FastLED.show();   delay(1000); \/\/ \u0417\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u0434\u043b\u044f \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0438, \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0430 \u0438\u043b\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0430  }<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u043a\u0435\u0442\u0447\u0430 \u0432\u0441\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0437\u0430\u0433\u043e\u0440\u0435\u0442\u044c\u0441\u044f \u0431\u0435\u043b\u044b\u043c \u0446\u0432\u0435\u0442\u043e\u043c.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0434\u0430\u0442\u0447\u0438\u043a \u0438 \u043c\u0430\u0442\u0440\u0438\u0446\u0430 \u0438\u0441\u043f\u0440\u0430\u0432\u043d\u044b \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0442\u0440\u0435\u0442\u044c\u0435\u043c\u0443 \u044d\u0442\u0430\u043f\u0443<\/p>\n<h2>\u041c\u0430\u0442\u0440\u0438\u0446\u0430 \u0441 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u043e\u0439<\/h2>\n<p>\u0441\u043a\u0435\u0442\u0447 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438:<\/p>\n<pre><code class=\"cpp\">#include &lt;FastLED.h>  #include &lt;Wire.h>  #include &lt;Adafruit_AHTX0.h>    #define LED_PIN 6  #define NUM_LEDS 64  #define BRIGHTNESS 50  #define LED_TYPE WS2812B  #define COLOR_ORDER GRB  CRGB leds[NUM_LEDS];    Adafruit_AHTX0 aht;    CRGB getDotColor(float temperature) {   \/\/ \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 \u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u0446\u0432\u0435\u0442\u0430   CRGB coldColor = CRGB::Blue; \/\/ \u0413\u043e\u043b\u0443\u0431\u043e\u0439 \u0434\u043b\u044f 25\u00b0C   CRGB hotColor = CRGB::Green; \/\/ \u0417\u0435\u043b\u0451\u043d\u044b\u0439 \u0434\u043b\u044f 30\u00b0C     \/\/ \u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u043c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b   temperature = constrain(temperature, 25, 30);     \/\/ \u0420\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u043c\u0435\u0436\u0434\u0443 0 \u0438 1, \u0433\u0434\u0435 0 - \u044d\u0442\u043e 25\u00b0C, \u0430 1 - \u044d\u0442\u043e 30\u00b0C   float t = (temperature - 25) \/ (30 - 25);     \/\/ \u0418\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u0438\u0440\u0443\u0435\u043c \u0446\u0432\u0435\u0442 \u043c\u0435\u0436\u0434\u0443 \u0433\u043e\u043b\u0443\u0431\u044b\u043c \u0438 \u0437\u0435\u043b\u0451\u043d\u044b\u043c   uint8_t red = lerp8by8(coldColor.r, hotColor.r, t * 255);   uint8_t green = lerp8by8(coldColor.g, hotColor.g, t * 255);   uint8_t blue = lerp8by8(coldColor.b, hotColor.b, t * 255);     return CRGB(red, green, blue);  }    void setup() {   FastLED.addLeds&lt;LED_TYPE, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS).setCorrection(TypicalLEDStrip);   FastLED.setBrightness(BRIGHTNESS);   Serial.begin(9600);   while (!Serial) delay(10); \/\/ \u041e\u0436\u0438\u0434\u0430\u043d\u0438\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u0441\u0435\u0440\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u0440\u0442\u0430     if (!aht.begin()) {   Serial.println(\"Could not find AHT device!\");   while (1) delay(10);   }   Serial.println(\"AHT21 found\");  }    void loop() {   sensors_event_t temp;   aht.getEvent(nullptr, &amp;temp); \/\/ \u0427\u0442\u0435\u043d\u0438\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0430\u043d\u043d\u044b\u0445 \u043e \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0435     \/\/ \u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0443 \u0432 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f   int temperature = temp.temperature + 0.5; \/\/ \u041e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u0435 \u0434\u043e \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043e \u0446\u0435\u043b\u043e\u0433\u043e     fill_solid(leds, NUM_LEDS, CRGB::Black); \/\/ \u041e\u0447\u0438\u0449\u0430\u0435\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u0443     \/\/ \u0412\u0430\u0448 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0447\u0438\u0441\u043b\u0430 \"12\" \u0441 \u0442\u043e\u0447\u043a\u043e\u0439 \u0438\u0437\u043c\u0435\u043d\u0435\u043d \u043d\u0430 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b   int startX = 0; \/\/ \u041d\u0430\u0447\u0430\u043b\u044c\u043d\u0430\u044f \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430 X   int startY = 2; \/\/ \u041d\u0430\u0447\u0430\u043b\u044c\u043d\u0430\u044f \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430 Y     if (temperature >= 10) { \/\/ \u0415\u0441\u043b\u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0434\u0432\u0443\u0437\u043d\u0430\u0447\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e   drawNumber(temperature \/ 10, startX, startY); \/\/ \u041f\u0435\u0440\u0432\u0430\u044f \u0446\u0438\u0444\u0440\u0430 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b   drawNumber(temperature % 10, startX + 4, startY); \/\/ \u0412\u0442\u043e\u0440\u0430\u044f \u0446\u0438\u0444\u0440\u0430 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b   drawDots(startX + 6, startY - 2, temp.temperature); \/\/ \u0422\u043e\u0447\u043a\u0430 \u043f\u043e\u0441\u043b\u0435 \u0447\u0438\u0441\u043b\u0430   } else {   \/\/ \u0415\u0441\u043b\u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u0430\u044f   drawNumber(0, startX, startY); \/\/ \u0412\u044b\u0432\u043e\u0434\u0438\u043c 0 \u043f\u0435\u0440\u0435\u0434 \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e\u0439 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u043e\u0439 \u0434\u043b\u044f \u0444\u043e\u0440\u043c\u0430\u0442\u0430 0X.X   drawNumber(temperature, startX + 4, startY); \/\/ \u041e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u0430\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430   drawDots(startX + 6, startY - 2, temp.temperature); \/\/ \u0422\u043e\u0447\u043a\u0430 \u043f\u043e\u0441\u043b\u0435 \u0447\u0438\u0441\u043b\u0430   }     FastLED.show(); \/\/ \u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u0443   delay(2000); \/\/ \u0417\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u0434\u043b\u044f \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f  }    void drawNumber(int num, int x, int y) {   \/\/ \u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0446\u0438\u0444\u0440\u044b \u0441 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u043d\u043e\u0439 \u0432\u044b\u0441\u043e\u0442\u043e\u0439   int patterns[10][6][3] = {   {{1,1,1}, {1,0,1}, {1,0,1}, {1,0,1}, {1,0,1}, {1,1,1}}, \/\/ 0   {{0,1,0}, {1,1,0}, {0,1,0}, {0,1,0}, {0,1,0}, {1,1,1}}, \/\/ 1   {{1,1,1}, {0,0,1}, {0,0,1}, {1,1,1}, {1,0,0}, {1,1,1}}, \/\/ 2   {{1,1,1}, {0,0,1}, {0,0,1}, {1,1,1}, {0,0,1}, {1,1,1}}, \/\/ 3   {{1,0,1}, {1,0,1}, {1,0,1}, {1,1,1}, {0,0,1}, {0,0,1}}, \/\/ 4   {{1,1,1}, {1,0,0}, {1,0,0}, {1,1,1}, {0,0,1}, {1,1,1}}, \/\/ 5   {{1,1,1}, {1,0,0}, {1,0,0}, {1,1,1}, {1,0,1}, {1,1,1}}, \/\/ 6   {{1,1,1}, {0,0,1}, {0,0,1}, {0,0,1}, {0,0,1}, {0,0,1}}, \/\/ 7   {{1,1,1}, {1,0,1}, {1,0,1}, {1,1,1}, {1,0,1}, {1,1,1}}, \/\/ 8   {{1,1,1}, {1,0,1}, {1,1,1}, {0,0,1}, {0,0,1}, {1,1,1}} \/\/ 9   };     \/\/ \u0420\u0438\u0441\u0443\u0435\u043c \u0446\u0438\u0444\u0440\u0443 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u043c   for (int i = 0; i &lt; 6; i++) {   for (int j = 0; j &lt; 3; j++) {   if (patterns[num][i][j] == 1) {   drawPixel(x + j, y + i, CRGB::White);  }   }   }  }      void drawPixel(int x, int y, CRGB color) {   int index = x * 8 + (7 - y);   if (index &lt; NUM_LEDS) {   leds[index] = color;   }  }    void drawDots(int x, int y, float temperature) {   CRGB color = getDotColor(temperature); \/\/ \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0446\u0432\u0435\u0442 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b   drawPixel(x, y, color);   drawPixel(x + 1, y, color);   drawPixel(x, y + 1, color);   drawPixel(x + 1, y + 1, color);  }<\/code><\/pre>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u043b\u043e\u0433\u0438\u043a\u0430 \u0441\u043a\u0435\u0442\u0447\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u0441 \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0438 \u0432\u044b\u0432\u043e\u0434\u0435 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u0443. \u0422\u0430\u043a \u0442\u0430\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0446\u0432\u0435\u0442\u0430 \u0442\u043e\u0447\u043a\u0438 \u0433\u0440\u0430\u0434\u0443\u0441\u0430, \u0433\u0434\u0435 25\u00b0 \u044d\u0442\u043e \u0433\u043e\u043b\u0443\u0431\u043e\u0439 \u0446\u0432\u0435\u0442, \u0434\u043e 30\u00b0 \u044d\u0442\u043e \u0437\u0435\u043b\u0435\u043d\u044b\u0439 \u0446\u0432\u0435\u0442.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/005\/46d\/12a\/00546d12a45ecb46f42258f98401a478.jpg\" width=\"4608\" height=\"3456\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/005\/46d\/12a\/00546d12a45ecb46f42258f98401a478.jpg\" data-blurred=\"true\"\/><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/7a5\/383\/0a8\/7a53830a86e91534d5aaf407f5b466a3.jpg\" width=\"4608\" height=\"3456\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7a5\/383\/0a8\/7a53830a86e91534d5aaf407f5b466a3.jpg\" data-blurred=\"true\"\/><\/figure>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f, \u043a\u0430\u043a \u043a\u0430\u043a\u0430\u044f-\u043b\u0438\u0431\u043e \u0446\u0438\u0444\u0440\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f, \u0442\u043e \u0432 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0451 \u0442\u0430\u043a\u043e\u0439, \u043a\u0430\u043a\u043e\u0439 \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435, \u043c\u0435\u043d\u044f\u044f \u0435\u0434\u0438\u043d\u0438\u0446\u044b \u043d\u0430 \u043d\u0443\u043b\u0438 \u0438 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442.<\/p>\n<p>\u042d\u0442\u043e \u043c\u043e\u044f \u043f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f, \u0442\u0430\u043a \u0447\u0442\u043e \u043d\u0435 \u0441\u0443\u0434\u0438\u0442\u0435 \u0441\u0442\u0440\u043e\u0433\u043e.<\/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\/articles\/794520\/\"> https:\/\/habr.com\/ru\/articles\/794520\/<\/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>\u0414\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f:<\/p>\n<ol>\n<li>\n<p>\u0410\u0440\u0434\u0443\u0438\u043d\u043e \u043d\u0430\u043d\u043e;<\/p>\n<\/li>\n<li>\n<p>\u041c\u0430\u0442\u0440\u0438\u0446\u0430 WS2812B 8\u04458 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>\u0414\u0430\u0442\u0447\u0438\u043a \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u0438 \u0432\u043b\u0430\u0436\u043d\u043e\u0441\u0442\u0438 AHT21;<\/p>\n<\/li>\n<li>\n<p>\u0411\u043b\u043e\u043a \u043f\u0438\u0442\u0430\u043d\u0438\u044f 5v 1a \u0438\u043b\u0438 \u0430\u043a\u043a\u0443\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u044b.<\/p>\n<\/li>\n<\/ol>\n<p>\u041a\u0430\u043a \u043f\u0440\u043e\u0448\u0438\u0442\u044c \u0430\u0440\u0434\u0443\u0438\u043d\u043e \u043d\u0430\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0438\u0437 \u043c\u043d\u043e\u0433\u0438\u0445 \u0441\u0442\u0430\u0442\u0435\u0439 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435, \u0442\u0430\u043a \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u044d\u0442\u0430\u043f \u043c\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u043c.<\/p>\n<h2>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0434\u0430\u0442\u0447\u0438\u043a\u0430<\/h2>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0434\u0430\u0442\u0447\u0438\u043a \u043f\u043e \u0442\u0430\u043a\u043e\u0439 \u0441\u0445\u0435\u043c\u0435:<\/p>\n<p>SDA \u2013 A4<\/p>\n<p>SCL \u2013 A5<\/p>\n<p>VCC \u2013 5V<\/p>\n<p>GND \u2013 GND arduino nano<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u044d\u0442\u043e\u0442 \u0441\u043a\u0435\u0442\u0447 \u0432 \u0430\u0440\u0434\u0443\u0438\u043d\u043e \u043d\u0430\u043d\u043e:<\/p>\n<pre><code class=\"cpp\">#include &lt;Wire.h>  #include &lt;Adafruit_AHTX0.h>    Adafruit_AHTX0 aht;    void setup() {   Serial.begin(9600);   while (!Serial) delay(10); \/\/ \u041e\u0436\u0438\u0434\u0430\u043d\u0438\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u0441\u0435\u0440\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u0440\u0442\u0430     if (!aht.begin()) {   Serial.println(\"Could not find AHT device!\");   while (1) delay(10);   }   Serial.println(\"AHT21 found\");  }    void loop() {   sensors_event_t temp;   aht.getEvent(nullptr, &amp;temp); \/\/ \u0427\u0442\u0435\u043d\u0438\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0430\u043d\u043d\u044b\u0445 \u043e \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0435     Serial.print(\"\u0422\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430: \"); Serial.print(temp.temperature); Serial.println(\" C\");   \/\/ \u0432 \u0441\u0435\u0440\u0438\u0430\u043b \u043f\u043e\u0440\u0442 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430  delay(2000); \/\/ \u041f\u0430\u0443\u0437\u0430 2 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u043c\u0435\u0436\u0434\u0443 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f\u043c\u0438  }<\/code><\/pre>\n<h3>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u044b<\/h3>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u0443 \u043f\u043e \u0442\u0430\u043a\u043e\u0439 \u0441\u0445\u0435\u043c\u0435:<\/p>\n<p>DIN \u2013 D6<\/p>\n<p>5V \u2013 5V<\/p>\n<p>GND \u2013 GND arduino nano<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0441\u043a\u0435\u0442\u0447:<\/p>\n<pre><code class=\"cpp\">#include &lt;FastLED.h>    #define LED_PIN 6  #define NUM_LEDS 64  #define BRIGHTNESS 50  #define LED_TYPE WS2812B  #define COLOR_ORDER GRB  CRGB leds[NUM_LEDS];    void setup() {   FastLED.addLeds&lt;LED_TYPE, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS).setCorrection(TypicalLEDStrip);   FastLED.setBrightness(BRIGHTNESS);  }    void loop() {   fill_solid(leds, NUM_LEDS, CRGB::White);   FastLED.show();   delay(1000); \/\/ \u0417\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u0434\u043b\u044f \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0438, \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0430 \u0438\u043b\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0430  }<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u043a\u0435\u0442\u0447\u0430 \u0432\u0441\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0437\u0430\u0433\u043e\u0440\u0435\u0442\u044c\u0441\u044f \u0431\u0435\u043b\u044b\u043c \u0446\u0432\u0435\u0442\u043e\u043c.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0434\u0430\u0442\u0447\u0438\u043a \u0438 \u043c\u0430\u0442\u0440\u0438\u0446\u0430 \u0438\u0441\u043f\u0440\u0430\u0432\u043d\u044b \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0442\u0440\u0435\u0442\u044c\u0435\u043c\u0443 \u044d\u0442\u0430\u043f\u0443<\/p>\n<h2>\u041c\u0430\u0442\u0440\u0438\u0446\u0430 \u0441 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u043e\u0439<\/h2>\n<p>\u0441\u043a\u0435\u0442\u0447 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438:<\/p>\n<pre><code class=\"cpp\">#include &lt;FastLED.h>  #include &lt;Wire.h>  #include &lt;Adafruit_AHTX0.h>    #define LED_PIN 6  #define NUM_LEDS 64  #define BRIGHTNESS 50  #define LED_TYPE WS2812B  #define COLOR_ORDER GRB  CRGB leds[NUM_LEDS];    Adafruit_AHTX0 aht;    CRGB getDotColor(float temperature) {   \/\/ \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 \u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u0446\u0432\u0435\u0442\u0430   CRGB coldColor = CRGB::Blue; \/\/ \u0413\u043e\u043b\u0443\u0431\u043e\u0439 \u0434\u043b\u044f 25\u00b0C   CRGB hotColor = CRGB::Green; \/\/ \u0417\u0435\u043b\u0451\u043d\u044b\u0439 \u0434\u043b\u044f 30\u00b0C     \/\/ \u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u043c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b   temperature = constrain(temperature, 25, 30);     \/\/ \u0420\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u043c\u0435\u0436\u0434\u0443 0 \u0438 1, \u0433\u0434\u0435 0 - \u044d\u0442\u043e 25\u00b0C, \u0430 1 - \u044d\u0442\u043e 30\u00b0C   float t = (temperature - 25) \/ (30 - 25);     \/\/ \u0418\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u0438\u0440\u0443\u0435\u043c \u0446\u0432\u0435\u0442 \u043c\u0435\u0436\u0434\u0443 \u0433\u043e\u043b\u0443\u0431\u044b\u043c \u0438 \u0437\u0435\u043b\u0451\u043d\u044b\u043c   uint8_t red = lerp8by8(coldColor.r, hotColor.r, t * 255);   uint8_t green = lerp8by8(coldColor.g, hotColor.g, t * 255);   uint8_t blue = lerp8by8(coldColor.b, hotColor.b, t * 255);     return CRGB(red, green, blue);  }    void setup() {   FastLED.addLeds&lt;LED_TYPE, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS).setCorrection(TypicalLEDStrip);   FastLED.setBrightness(BRIGHTNESS);   Serial.begin(9600);   while (!Serial) delay(10); \/\/ \u041e\u0436\u0438\u0434\u0430\u043d\u0438\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u0441\u0435\u0440\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u0440\u0442\u0430     if (!aht.begin()) {   Serial.println(\"Could not find AHT device!\");   while (1) delay(10);   }   Serial.println(\"AHT21 found\");  }    void loop() {   sensors_event_t temp;   aht.getEvent(nullptr, &amp;temp); \/\/ \u0427\u0442\u0435\u043d\u0438\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0430\u043d\u043d\u044b\u0445 \u043e \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0435     \/\/ \u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0443 \u0432 \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f   int temperature = temp.temperature + 0.5; \/\/ \u041e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u0438\u0435 \u0434\u043e \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0433\u043e \u0446\u0435\u043b\u043e\u0433\u043e     fill_solid(leds, NUM_LEDS, CRGB::Black); \/\/ \u041e\u0447\u0438\u0449\u0430\u0435\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u0443     \/\/ \u0412\u0430\u0448 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0447\u0438\u0441\u043b\u0430 \"12\" \u0441 \u0442\u043e\u0447\u043a\u043e\u0439 \u0438\u0437\u043c\u0435\u043d\u0435\u043d \u043d\u0430 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b   int startX = 0; \/\/ \u041d\u0430\u0447\u0430\u043b\u044c\u043d\u0430\u044f \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430 X   int startY = 2; \/\/ \u041d\u0430\u0447\u0430\u043b\u044c\u043d\u0430\u044f \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430 Y     if (temperature >= 10) { \/\/ \u0415\u0441\u043b\u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u0434\u0432\u0443\u0437\u043d\u0430\u0447\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e   drawNumber(temperature \/ 10, startX, startY); \/\/ \u041f\u0435\u0440\u0432\u0430\u044f \u0446\u0438\u0444\u0440\u0430 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b   drawNumber(temperature % 10, startX + 4, startY); \/\/ \u0412\u0442\u043e\u0440\u0430\u044f \u0446\u0438\u0444\u0440\u0430 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b   drawDots(startX + 6, startY - 2, temp.temperature); \/\/ \u0422\u043e\u0447\u043a\u0430 \u043f\u043e\u0441\u043b\u0435 \u0447\u0438\u0441\u043b\u0430   } else {   \/\/ \u0415\u0441\u043b\u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430 \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u0430\u044f   drawNumber(0, startX, startY); \/\/ \u0412\u044b\u0432\u043e\u0434\u0438\u043c 0 \u043f\u0435\u0440\u0435\u0434 \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e\u0439 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u043e\u0439 \u0434\u043b\u044f \u0444\u043e\u0440\u043c\u0430\u0442\u0430 0X.X   drawNumber(temperature, startX + 4, startY); \/\/ \u041e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u0430\u044f \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0430   drawDots(startX + 6, startY - 2, temp.temperature); \/\/ \u0422\u043e\u0447\u043a\u0430 \u043f\u043e\u0441\u043b\u0435 \u0447\u0438\u0441\u043b\u0430   }     FastLED.show(); \/\/ \u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u0443   delay(2000); \/\/ \u0417\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u0434\u043b\u044f \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f  }    void drawNumber(int num, int x, int y) {   \/\/ \u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0446\u0438\u0444\u0440\u044b \u0441 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u043d\u043e\u0439 \u0432\u044b\u0441\u043e\u0442\u043e\u0439   int patterns[10][6][3] = {   {{1,1,1}, {1,0,1}, {1,0,1}, {1,0,1}, {1,0,1}, {1,1,1}}, \/\/ 0   {{0,1,0}, {1,1,0}, {0,1,0}, {0,1,0}, {0,1,0}, {1,1,1}}, \/\/ 1   {{1,1,1}, {0,0,1}, {0,0,1}, {1,1,1}, {1,0,0}, {1,1,1}}, \/\/ 2   {{1,1,1}, {0,0,1}, {0,0,1}, {1,1,1}, {0,0,1}, {1,1,1}}, \/\/ 3   {{1,0,1}, {1,0,1}, {1,0,1}, {1,1,1}, {0,0,1}, {0,0,1}}, \/\/ 4   {{1,1,1}, {1,0,0}, {1,0,0}, {1,1,1}, {0,0,1}, {1,1,1}}, \/\/ 5   {{1,1,1}, {1,0,0}, {1,0,0}, {1,1,1}, {1,0,1}, {1,1,1}}, \/\/ 6   {{1,1,1}, {0,0,1}, {0,0,1}, {0,0,1}, {0,0,1}, {0,0,1}}, \/\/ 7   {{1,1,1}, {1,0,1}, {1,0,1}, {1,1,1}, {1,0,1}, {1,1,1}}, \/\/ 8   {{1,1,1}, {1,0,1}, {1,1,1}, {0,0,1}, {0,0,1}, {1,1,1}} \/\/ 9   };     \/\/ \u0420\u0438\u0441\u0443\u0435\u043c \u0446\u0438\u0444\u0440\u0443 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u043e\u043c   for (int i = 0; i &lt; 6; i++) {   for (int j = 0; j &lt; 3; j++) {   if (patterns[num][i][j] == 1) {   drawPixel(x + j, y + i, CRGB::White);  }   }   }  }      void drawPixel(int x, int y, CRGB color) {   int index = x * 8 + (7 - y);   if (index &lt; NUM_LEDS) {   leds[index] = color;   }  }    void drawDots(int x, int y, float temperature) {   CRGB color = getDotColor(temperature); \/\/ \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0446\u0432\u0435\u0442 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b   drawPixel(x, y, color);   drawPixel(x + 1, y, color);   drawPixel(x, y + 1, color);   drawPixel(x + 1, y + 1, color);  }<\/code><\/pre>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u043b\u043e\u0433\u0438\u043a\u0430 \u0441\u043a\u0435\u0442\u0447\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u0441 \u0434\u0430\u0442\u0447\u0438\u043a\u0430 \u0438 \u0432\u044b\u0432\u043e\u0434\u0435 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u0443. \u0422\u0430\u043a \u0442\u0430\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0446\u0432\u0435\u0442\u0430 \u0442\u043e\u0447\u043a\u0438 \u0433\u0440\u0430\u0434\u0443\u0441\u0430, \u0433\u0434\u0435 25\u00b0 \u044d\u0442\u043e \u0433\u043e\u043b\u0443\u0431\u043e\u0439 \u0446\u0432\u0435\u0442, \u0434\u043e 30\u00b0 \u044d\u0442\u043e \u0437\u0435\u043b\u0435\u043d\u044b\u0439 \u0446\u0432\u0435\u0442.<\/p>\n<figure class=\"full-width\"><\/figure>\n<figure class=\"full-width\"><\/figure>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f, \u043a\u0430\u043a \u043a\u0430\u043a\u0430\u044f-\u043b\u0438\u0431\u043e \u0446\u0438\u0444\u0440\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f, \u0442\u043e \u0432 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0451 \u0442\u0430\u043a\u043e\u0439, \u043a\u0430\u043a\u043e\u0439 \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435, \u043c\u0435\u043d\u044f\u044f \u0435\u0434\u0438\u043d\u0438\u0446\u044b \u043d\u0430 \u043d\u0443\u043b\u0438 \u0438 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442.<\/p>\n<p>\u042d\u0442\u043e \u043c\u043e\u044f \u043f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f, \u0442\u0430\u043a \u0447\u0442\u043e \u043d\u0435 \u0441\u0443\u0434\u0438\u0442\u0435 \u0441\u0442\u0440\u043e\u0433\u043e.<\/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\/articles\/794520\/\"> https:\/\/habr.com\/ru\/articles\/794520\/<\/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-368525","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/368525","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=368525"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/368525\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=368525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=368525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=368525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}