{"id":314439,"date":"2020-12-07T15:00:22","date_gmt":"2020-12-07T15:00:22","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=314439"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=314439","title":{"rendered":"\u0412\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u043c 2021 \u0433\u043e\u0434 \u0441 Raspberry Pi: \u0432\u0435\u0440\u0445\u0443\u0448\u043a\u0430 \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0433\u043e\u0434\u043d\u0435\u0439 \u0435\u043b\u043a\u0438 \u0441 \u0441\u0438\u043c\u0443\u043b\u044f\u0446\u0438\u0435\u0439 \u043e\u0433\u043d\u044f"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\u0421\u043a\u043e\u0440\u043e \u041d\u043e\u0432\u044b\u0439 \u0413\u043e\u0434, \u0438 \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043f\u0430\u0440\u0430 \u0447\u0430\u0441\u043e\u0432 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c hi-tech \u0443\u043a\u0440\u0430\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0433\u043e\u0434\u043d\u0435\u0439 \u0435\u043b\u043a\u0438, \u043f\u0430\u043b\u044c\u043c\u044b \u0438\u043b\u0438 \u043c\u0430\u043d\u0434\u0430\u0440\u0438\u043d\u043e\u0432\u043e\u0433\u043e \u0434\u0435\u0440\u0435\u0432\u0430. \u0411\u0435\u0437 \u0440\u0430\u0437\u043d\u0438\u0446\u044b \u2014 \u043e\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u043f\u043b\u043e\u0445\u043e \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c\u0441\u044f \u0432\u0435\u0437\u0434\u0435.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ox\/ua\/uv\/oxuauvtyt2k4rigbsfhbikuf740.png\"><\/div>\n<p>  \u041f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u2014 \u0433\u0438\u0444\u043a\u0430 \u0441 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u044d\u0442\u043e\u0439 \u0448\u0442\u0443\u043a\u0438 <\/p>\n<p>  \u041e\u0441\u043d\u043e\u0432\u0430 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u2014 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043d\u0430\u044f \u0433\u0438\u0431\u043a\u0430\u044f \u043b\u0435\u043d\u0442\u0430 NeoPixel 32&#215;8, Raspberry Pi \u0438 \u0445\u043e\u0440\u043e\u0448\u0435\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435. \u041d\u0443 \u0438 \u0434\u0430, \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u043d\u0430 Python.<br \/>  <a name=\"habracut\"><\/a> <br \/>  <font color=\"#EB4247\"><\/p>\n<h3>\u0427\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b<\/h3>\n<p><\/font>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/ccd\/868\/0b8\/ccd8680b8d979e82eb40045d085c90f9.gif\"><\/div>\n<p>  <\/p>\n<ul>\n<li> Raspberry Pi 3, Raspberry Pi 4 \u0438\u043b\u0438 Raspberry Pi Zero W \u0441 GPIO \u0440\u0430\u0437\u044a\u0435\u043c\u043e\u043c.<\/li>\n<li> \u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043f\u0438\u0442\u0430\u043d\u0438\u044f, \u043c\u044b\u0448\u044c, \u043c\u043e\u043d\u0438\u0442\u043e\u0440, \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0430 \u0438 HDMI \u043a\u0430\u0431\u0435\u043b\u044c \u0434\u043b\u044f Raspberry Pi<\/li>\n<li> \u0413\u0438\u0431\u043a\u0430\u044f \u043b\u0435\u043d\u0442\u0430 32&#215;8 NeoPixel RGB LED Matrix<\/li>\n<li> \u041d\u0430\u0431\u043e\u0440 \u0434\u0436\u0430\u043c\u043f\u0435\u0440\u043e\u0432 (M-to-F, M-to-M \u0438 F-to-F)<\/li>\n<li> 5\u0412 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043f\u0438\u0442\u0430\u043d\u0438\u044f <\/li>\n<li> \u041a\u043e\u043d\u0434\u0435\u043d\u0441\u0430\u0442\u043e\u0440 1000 \u00b5F <\/li>\n<li> \u0415\u0449\u0435 \u043c\u043e\u0436\u043d\u043e \u0432\u0437\u044f\u0442\u044c \u043f\u043e\u043b\u043e\u0441\u043a\u0443 \u0442\u043a\u0430\u043d\u0438 \u0434\u043b\u044f \u0440\u0430\u0441\u0441\u0435\u0438\u0432\u0430\u043d\u0438\u044f \u0441\u0432\u0435\u0442\u0430 LED-\u043b\u0435\u043d\u0442\u044b<\/li>\n<li> \u041d\u0430\u043f\u0435\u0447\u0430\u0442\u0430\u043d\u043d\u0430\u044f \u043d\u0430 3D-\u043f\u0440\u0438\u043d\u0442\u0435\u0440\u0435 <a href=\"https:\/\/www.thingiverse.com\/thing:4672701\">\u043e\u0441\u043d\u043e\u0432\u0430<\/a> \u0434\u043b\u044f \u0432\u0441\u0435\u0439 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438.<\/li>\n<\/ul>\n<p>  <font color=\"#EB4247\"><\/p>\n<h3>\u0427\u0430\u0441\u0442\u044c 1. \u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 RGB-\u043c\u0430\u0442\u0440\u0438\u0446\u044b<\/h3>\n<p><\/font><br \/>  \u041d\u0430 \u044d\u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043f\u0430\u044f\u0442\u044c \u043f\u0430\u0440\u0443 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u0432 \u0438 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u043c \u043a\u043e\u0434\u0430 \u043e\u0442 <a href=\"https:\/\/learn.adafruit.com\/adafruit-neopixel-uberguide?view=all\">Adafruit\u2019s NeoPixel Uberguide<\/a>. \u0414\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0443\u0436\u043d\u043e \u0434\u0432\u0430 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u2014 \u0434\u043b\u044f \u00ab\u043c\u0430\u043b\u0438\u043d\u043a\u0438\u00bb \u0438 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043d\u043e\u0439 \u043b\u0435\u043d\u0442\u044b. \u0414\u043b\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0438\u0442\u0430\u043d\u0438\u0435, \u043d\u043e \u0438 \u0434\u0430\u043d\u043d\u044b\u0435. \u0417\u0434\u0435\u0441\u044c \u0432\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/093\/6f6\/436\/0936f643690f95d8c99502f8cfad4619.png\"><\/div>\n<p>  \u041f\u0440\u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0435\u0449\u0435 \u043f\u043e\u043b\u043e\u0441\u043a\u0443 \u0442\u043a\u0430\u043d\u0438, \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0441\u0441\u0435\u0438\u0432\u0430\u0442\u044c \u044f\u0440\u043a\u0438\u0439 \u0441\u0432\u0435\u0442 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043e\u0432.<\/p>\n<p>  <b>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435<\/b><\/p>\n<p>  \u0411\u0435\u0440\u0435\u043c \u043b\u044e\u0431\u0443\u044e \u00ab\u0437\u0435\u043c\u043b\u044e\u00bb \u043e\u0442 \u00ab\u043c\u0430\u043b\u0438\u043d\u043a\u0438\u00bb \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0435\u0435 \u043a GND-\u043b\u0438\u043d\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043d\u043e\u0439 \u043b\u0435\u043d\u0442\u044b.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/f60\/67e\/e5a\/f6067ee5a907eff363a534f8a5e712ca.webp\"><\/div>\n<p>  <b>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043f\u0438\u0442\u0430\u043d\u0438\u044f<\/b><\/p>\n<p>  \u042d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043b\u0438\u0431\u043e \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u043a\u0430\u0431\u0435\u043b\u044f, \u043f\u043e \u0441\u0445\u0435\u043c\u0435, \u0443\u0436\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u0432\u044b\u0448\u0435, \u043b\u0438\u0431\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f USB-\u043a\u0430\u0431\u0435\u043b\u0435\u043c. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0432\u043e\u0442 \u043f\u043e \u044d\u0442\u043e\u0439 \u0441\u0445\u0435\u043c\u0435.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/c6f\/1fb\/668\/c6f1fb6686d545656268c1759e0657d9.png\"><\/div>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u0443, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0432 \u043a\u043e\u0434 \u043e\u0442 Adafruit<\/p>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u00ab\u043c\u0430\u043b\u0438\u043d\u043a\u0443\u00bb \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043f\u0438\u0442\u0430\u043d\u0438\u0435 RGB-\u043c\u0430\u0442\u0440\u0438\u0446\u044b, \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438:<\/p>\n<p>  <code>sudo pip3 install rpi_ws281x adafruit-circuitpython-neopixel<br \/>  sudo python3 -m pip install --force-reinstall adafruit-blinka<\/code><\/p>\n<p>  \u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u043a\u043e\u0434 \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u0430\u0432\u0442\u043e\u0440\u0430 \u0441\u0442\u0430\u0442\u044c\u0438:<\/p>\n<p>  <code>git clone https:\/\/github.com\/carolinedunn\/RGBTreeTopper<\/code><\/p>\n<p>  \u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443 scrollingTextMask:<\/p>\n<p>  <code>cd RGBTreeTopper<\/code><\/p>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u043a\u043e\u0434 fillMatrix.py:<\/p>\n<p>  <code>sudo python3 32-fillMatrix.py<\/code><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/24d\/6c4\/9a0\/24d6c49a088e3df9a0d15062e640c1b2.gif\"><\/div>\n<p>  \u0415\u0441\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u0440\u0430\u0434\u0443\u0433\u0430, \u043a\u0430\u043a \u043d\u0430 \u0433\u0438\u0444\u043a\u0435 \u0432\u044b\u0448\u0435, \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043c\u043e\u0436\u043d\u043e \u0434\u0432\u0438\u0433\u0430\u0442\u044c\u0441\u044f \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u044d\u0442\u0430\u043f\u0443. \u0415\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u044b \u043d\u0435\u0432\u0435\u0440\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u044b.<\/p>\n<p>  \u0421\u043e\u0432\u0435\u0442\u044b: \u0415\u0441\u043b\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u043f\u0438\u043d\u043e\u043c 21 GPIO \u00ab\u043c\u0430\u043b\u0438\u043d\u043a\u0438\u00bb, \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043f\u0438\u043d\u044b 10, 12 \u0438\u043b\u0438 18. \u0417\u0430\u0442\u0435\u043c \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c 32-fillMatrix.py \u0438\u0437 \u043f\u0430\u043f\u043a\u0438 scrollingTextMask \u0438 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u044b\u0432\u043e\u0434 GPIO. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0444\u0430\u0439\u043b\u044b \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<p>  \u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 Ctrl+C.<\/p>\n<p>  <font color=\"#EB4247\"><\/p>\n<h4>\u0427\u0430\u0441\u0442\u044c 2. \u0417\u0430\u0436\u0438\u0433\u0430\u0439!<\/h4>\n<p><\/font><br \/>  \u0422\u0435\u043f\u0435\u0440\u044c \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0441\u0435 \u0435\u0449\u0435 \u043e\u0442\u043a\u0440\u044b\u0442, \u043d\u0430\u0431\u0438\u0440\u0430\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<p>  <code>sudo python3 treeTopper.py<\/code><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/a05\/f82\/823\/a05f82823ca2a2650258324ec340d8f5.gif\"><\/div>\n<p>  \u0412 \u043f\u0430\u043f\u043a\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u044b \u0432\u0437\u044f\u043b\u0438 \u0441 GitHub, \u0435\u0441\u0442\u044c \u043f\u0430\u043f\u043a\u0430 \u00abfire\u00bb, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 10 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 jpeg. \u0412\u043e\u0442 \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u043a\u043e\u0434 treeTopper.py:<\/p>\n<p>  \u041e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u0442 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 \u043a\u043e\u0434\u0435. \u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u043d\u0430 PIL (Pillow Imaging Library), \u044d\u0442\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0432 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440 Python.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/c96\/fb7\/f2b\/c96fb7f2b80d1e1c5fa78a78b6213e87.png\"><\/div>\n<p>  <\/p>\n<ul>\n<li>\u0421\u043e\u043e\u0431\u0449\u0430\u0435\u0442 Pi, \u043a\u0443\u0434\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u0443, \u0443\u043a\u0430\u0437\u0430\u0432 21 \u043f\u0438\u043d GPIO (\u0441\u0442\u0440\u043e\u043a\u0430 8).<\/li>\n<li>\u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043c\u0430\u0442\u0440\u0438\u0446\u044b, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0440\u0430\u0437\u043c\u0435\u0440, \u044f\u0440\u043a\u043e\u0441\u0442\u044c \u0438 \u0432\u0440\u0435\u043c\u044f \u043f\u0430\u0443\u0437\u044b \u043c\u0435\u0436\u0434\u0443 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0435\u0439 \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u0437 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a (\u0441\u0442\u0440\u043e\u043a\u0438 9-13).<\/li>\n<li>\u0421\u043e\u0437\u0434\u0430\u0435\u0442 \u043c\u0430\u0441\u0441\u0438\u0432 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0442\u0435\u0445 \u0441\u0430\u043c\u044b\u0445 10 JPEG \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435 (\u0441\u0442\u0440\u043e\u043a\u0438 28-32).<\/li>\n<li>\u0410\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u043f\u0438\u043a\u0441\u0435\u043b\u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u0435\u0442 \u0438\u0445 \u0432 RGB-\u043c\u0430\u0442\u0440\u0438\u0446\u0443 \u0441 \u0432\u044b\u0432\u043e\u0434\u043e\u043c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u0443 RGB (\u0441\u0442\u0440\u043e\u043a\u0438 35-41).<\/li>\n<li>\u0414\u0435\u043b\u0430\u0435\u0442 \u043f\u0430\u0443\u0437\u0443 \u043d\u0430 0.2 \u0441\u0435\u043a\u0443\u043d\u0434\u044b, \u0437\u0430\u0442\u0435\u043c \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0434\u043b\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f (\u0441\u0442\u0440\u043e\u043a\u0430 42).<\/li>\n<li>\u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0434\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 Ctrl+C.<\/li>\n<\/ul>\n<p>  <b>\u0410 \u0435\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a?<\/b><\/p>\n<p>  \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438:<\/p>\n<ul>\n<li>\u0424\u043e\u0440\u043c\u0430\u0442 \u2014 JPEG.<\/li>\n<li>\u0428\u0438\u0440\u0438\u043d\u0430 \u2014 32 \u043f\u0438\u043a\u0441\u0435\u043b\u044f.<\/li>\n<li>\u0412\u044b\u0441\u043e\u0442\u0430 \u2014 8 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439.<\/li>\n<\/ul>\n<p>  \u041a\u0430\u0436\u0434\u044b\u0439 \u0444\u0430\u0439\u043b \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f\u043c\u0438 1-10.JPG \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u043f\u0430\u043f\u043a\u0443. <\/p>\n<p>  \u0414\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u043f\u0443\u0442\u044c \u043a \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u043c. \u041f\u0440\u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u043c\u0435\u043d\u0438\u0442\u044c \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438\u0445 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/8f2\/85e\/966\/8f285e9663d41b9d55064ed97b65997a.png\"><\/div>\n<p>  <b>\u0417\u0430\u043f\u0443\u0441\u043a \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435<\/b><\/p>\n<p>  \u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u044b \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043b\u0438 \u0432\u0441\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c Python \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430. \u041b\u0443\u0447\u0448\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u2014 Crontab.<\/p>\n<p>  \u0412 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c Crontab: crontab -e<\/p>\n<p>  \u0412\u0432\u043e\u0434\u0438\u043c 1 \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Enter.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/4de\/e26\/45c\/4dee2645cb21030e3125cb60ff39ea84.png\"><\/div>\n<p>  \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b crontab. \u0412\u043d\u0443\u0442\u0440\u0438 \u043e\u043f\u0443\u0441\u043a\u0430\u0435\u043c\u0441\u044f \u0432\u043d\u0438\u0437 \u0438 enter -&gt;<\/p>\n<p>  <code>sudo python3 \/home\/pi\/RGBTreeTopper\/treeTopper.py<\/code><\/p>\n<p>  <code>@reboot sudo python3 \/home\/pi\/RGBTreeTopper\/treeTopper.py<\/code><\/p>\n<p>  \u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Ctrl+X, \u0430 \u0437\u0430\u0442\u0435\u043c crontab \u0434\u043b\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u0412\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u00ab\u043c\u0430\u043b\u0438\u043d\u043a\u0443\u00bb \u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0432\u0441\u0435, \u0447\u0442\u043e \u0441\u043e\u0431\u0440\u0430\u043b\u0438.<\/p>\n<p>  <font color=\"#EB4247\"><\/p>\n<h4>\u0427\u0430\u0441\u0442\u044c 3. \u0424\u0438\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0431\u043e\u0440\u043a\u0430<\/h4>\n<p><\/font> <br \/>  \u041d\u0430 \u044d\u0442\u043e\u043c \u0448\u0430\u0433\u0435 \u0443\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u043e\u0433\u043e\u0434\u043d\u0438\u0439 \u043e\u0433\u043e\u043d\u0435\u043a \u043d\u0430 \u0432\u0435\u0440\u0448\u0438\u043d\u0435 \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u043d\u043e\u0432\u043e\u0433\u043e\u0434\u043d\u0435\u0439 \u0435\u043b\u043a\u0438.<\/p>\n<ul>\n<li><a href=\"https:\/\/www.thingiverse.com\/thing:4672701\">\u041f\u0435\u0447\u0430\u0442\u0430\u0435\u043c \u043a\u043e\u0440\u043f\u0443\u0441<\/a> \u043d\u0430 3D-\u043f\u0440\u0438\u043d\u0442\u0435\u0440\u0435.<\/li>\n<li>\u041f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0432 \u043d\u0443\u0436\u043d\u044b\u0435 \u043c\u0435\u0441\u0442\u0430 \u043f\u0440\u043e\u0432\u043e\u0434\u0430 \u0438 \u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0435\u043c \u0438\u0445.<\/li>\n<li>\u0418\u0437\u0433\u0438\u0431\u0430\u0435\u043c LED-\u043c\u0430\u0442\u0440\u0438\u0446\u0443, \u0441\u0438\u043b\u044c\u043d\u043e \u0434\u0430\u0432\u0438\u0442\u044c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e.<\/li>\n<li>\u0412\u043e\u0434\u0440\u0443\u0436\u0430\u0435\u043c \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u043d\u0430 \u0432\u0435\u0440\u0448\u0438\u043d\u0443 \u0435\u043b\u043e\u0447\u043a\u0438. \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0438 \u0440\u0430\u0434\u0443\u0435\u043c\u0441\u044f.<\/li>\n<\/ul>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/339\/a80\/c27\/339a80c27c50d74846d9052c8d2f952b.jpg\"><\/div>\n<p>  \u041a\u0441\u0442\u0430\u0442\u0438, \u0430\u0432\u0442\u043e\u0440 \u0432 \u043a\u0443\u0440\u0441\u0435, \u0447\u0442\u043e \u0435\u0433\u043e \u0438\u0437\u043e\u0431\u0440\u0435\u0442\u0435\u043d\u0438\u0435 \u043f\u043e \u0444\u043e\u0440\u043c\u0435 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442 \u0440\u0443\u043b\u043e\u043d \u0442\u0443\u0430\u043b\u0435\u0442\u043d\u043e\u0439 \u0431\u0443\u043c\u0430\u0433\u0438. <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/814\/9e8\/eef\/8149e8eef382b760cf5ad2be75055d2f.webp\"><\/div>\n<p>  \u041e\u043d\u0430 \u0448\u0443\u0442\u0438\u0442, \u0447\u0442\u043e \u043d\u0430 \u0444\u043e\u043d\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e \u0432 2020 \u0433\u043e\u0434\u0443 \u044d\u0442\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u0430\u0434\u0435\u043a\u0432\u0430\u0442\u043d\u043e. \u041d\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u2014 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043f\u0440\u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0438 \u043b\u0435\u0433\u043a\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u0442\u0441\u044f, \u0442\u0430\u043a \u0447\u0442\u043e \u0440\u0443\u043b\u043e\u043d \u0431\u0443\u043c\u0430\u0433\u0438 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f\u2026 \u0434\u0430 \u0432\u043e \u0447\u0442\u043e \u0443\u0433\u043e\u0434\u043d\u043e. <\/p>\n<p>  <a href=\"https:\/\/slc.tl\/yqGGP\"><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/1h\/dq\/mj\/1hdqmj1bvguax5hnugdz0ci_jbw.jpeg\"><\/div>\n<p><\/a><\/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\/company\/selectel\/blog\/531756\/\"> https:\/\/habr.com\/ru\/company\/selectel\/blog\/531756\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\u0421\u043a\u043e\u0440\u043e \u041d\u043e\u0432\u044b\u0439 \u0413\u043e\u0434, \u0438 \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u043f\u0430\u0440\u0430 \u0447\u0430\u0441\u043e\u0432 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c hi-tech \u0443\u043a\u0440\u0430\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0433\u043e\u0434\u043d\u0435\u0439 \u0435\u043b\u043a\u0438, \u043f\u0430\u043b\u044c\u043c\u044b \u0438\u043b\u0438 \u043c\u0430\u043d\u0434\u0430\u0440\u0438\u043d\u043e\u0432\u043e\u0433\u043e \u0434\u0435\u0440\u0435\u0432\u0430. \u0411\u0435\u0437 \u0440\u0430\u0437\u043d\u0438\u0446\u044b \u2014 \u043e\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u043f\u043b\u043e\u0445\u043e \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c\u0441\u044f \u0432\u0435\u0437\u0434\u0435.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ox\/ua\/uv\/oxuauvtyt2k4rigbsfhbikuf740.png\"><\/div>\n<p>  \u041f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c \u2014 \u0433\u0438\u0444\u043a\u0430 \u0441 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u044d\u0442\u043e\u0439 \u0448\u0442\u0443\u043a\u0438 <\/p>\n<p>  \u041e\u0441\u043d\u043e\u0432\u0430 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u2014 \u0441\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434\u043d\u0430\u044f \u0433\u0438\u0431\u043a\u0430\u044f \u043b\u0435\u043d\u0442\u0430 NeoPixel 32&#215;8, Raspberry Pi \u0438 \u0445\u043e\u0440\u043e\u0448\u0435\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435. \u041d\u0443 \u0438 \u0434\u0430, \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u043d\u0430 Python.  <\/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-314439","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/314439","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=314439"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/314439\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=314439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=314439"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=314439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}