{"id":311175,"date":"2020-10-08T15:01:41","date_gmt":"2020-10-08T15:01:41","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=311175"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=311175","title":{"rendered":"\u041f\u043e\u0432\u044b\u0448\u0430\u0435\u043c \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b \u0438\u0437 \u0434\u043e\u043c\u0430, \u0438\u043b\u0438 \u043a\u0430\u043a \u0448\u0435\u0432\u0435\u043b\u0438\u0442\u044c \u043c\u044b\u0448\u043a\u043e\u0439 \u043d\u0430 Pi Zero"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/522562\/\">\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/60e\/5e3\/4e2\/60e5e34e21957f534c608bb0c994ac81.jpg\" width=\"480\" height=\"360\"><figcaption><\/figcaption><\/figure>\n<p>\u0420\u0430\u0431\u043e\u0442\u0430 \u0438\u0437 \u0434\u043e\u043c\u0430 \u2013 \u044d\u0442\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0431\u043b\u0430\u0433\u043e, \u043d\u043e \u0438 \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 \u0434\u043b\u044f \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043c\u0435\u0440\u044f\u044e\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0418\u0422 \u043e\u0442\u0434\u0435\u043b\u0430 \u0432 \u0442\u0440\u0443\u0434\u043e\u0447\u0430\u0441\u0430\u0445.   \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u043c \u0442\u0432\u043e\u0435\u0439 \u0442\u0440\u0443\u0434\u043e\u043d\u0430\u0434\u0451\u0436\u043d\u043e\u0441\u0442\u0438 &nbsp;\u0447\u0430\u0441\u0442\u0435\u043d\u044c\u043a\u043e \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u0431\u043e\u0434\u0440\u043e-\u0437\u0435\u043b\u0435\u043d\u044b\u0439 \u0441\u0442\u0430\u0442\u0443\u0441 \u0432 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u043c \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440\u0435. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0434\u0443\u0442 \u0435\u0449\u0451 \u0434\u0430\u043b\u044c\u0448\u0435 \u0438 \u0434\u0435\u043f\u043b\u043e\u044f\u0442 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u201cdigital experience\u201d \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432 \u0434\u0430\u0431\u044b \u0441\u0447\u0438\u0442\u0430\u0442\u044c, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043e\u043d\u0438 \u043f\u0440\u043e\u0432\u0435\u043b\u0438 \u0432 Word\u2019\u0435, \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u0438\u043b\u0438 \u0441\u0440\u0435\u0434\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438.   <\/p>\n<p>\u0415\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0441\u0442\u043e\u044f\u0442\u044c \u044d\u0442\u043e\u043c\u0443 \u0431\u0435\u0437\u043e\u0431\u0440\u0430\u0437\u0438\u044e:<\/p>\n<ol>\n<li>\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439. \u042f \u043f\u0435\u0440\u0435\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0438 \u0442\u0443\u043b\u0437\u044b, \u044d\u043c\u0443\u043b\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u2013 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u041a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0437\u0430\u0441\u044b\u043f\u0430\u0435\u0442\/\u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440 \u0441\u0442\u0430\u0432\u0438\u0442 \u0441\u0442\u0430\u0442\u0443\u0441 \u201cAway\u201d<\/p>\n<\/li>\n<li>\n<p>\u0410\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u044b\u0439<\/p>\n<p>\u0442\u0430\u043a\u043e\u0439: <\/p>\n<\/li>\n<\/ol>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/67d\/51f\/7bf\/67d51f7bfe7d2c5d6e3a036df9f681ea.gif\" width=\"360\" height=\"272\"><figcaption><\/figcaption><\/figure>\n<p>\u0438\u043b\u0438 \u0442\u0430\u043a\u043e\u0439:<\/p>\n<p><iframe id=\"5f7ee61451ad1fc9585b08a1\" src=\"https:\/\/embedd.srv.habr.com\/iframe\/5f7ee61451ad1fc9585b08a1\" class=\"embed_video embed__content\"><\/iframe><\/p>\n<p>\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043d\u043e \u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c \u0447\u0442\u043e-\u043b\u0438\u0431\u043e \u0440\u0430\u0437\u0443\u043c\u043d\u043e\u0435 \u043d\u0435 \u0432\u044b\u0439\u0434\u0435\u0442.<\/p>\n<p>3. \u0413\u0438\u0431\u0440\u0438\u0434\u043d\u044b\u0439, \u043d\u0430 \u043d\u0451\u043c \u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c\u0441\u044f \u043f\u043e-\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435<\/p>\n<p>\u0418\u0437\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440 USB HID \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043c\u043e\u0436\u043d\u043e \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 \u0410\u0440\u0434\u0443\u0438\u043d\u0435 \u0441 ATmega32U4. \u0422\u0430\u043c \u0435\u0441\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 USB. \u041d\u043e \u0437\u0430\u0447\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0410\u0440\u0434\u0443\u0438\u043d\u0443, \u0435\u0441\u043b\u0438 \u0437\u0430 \u0442\u0435 \u0436\u0435 \u0434\u0435\u043d\u044c\u0433\u0438 \u0435\u0441\u0442\u044c Raspberry Pi Zero (W)?  Pi0 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u0432 USB \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0443, \u043c\u044b\u0448\u044c \u0438 \u0441\u0435\u0442\u0435\u0432\u0443\u044e \u043a\u0430\u0440\u0442\u0443 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0432\u0441\u0435\u043c \u0434\u043e\u0431\u0440\u043e\u043c \u0447\u0435\u0440\u0435\u0437 SSH, \u043d\u0438 \u0432 \u0447\u0451\u043c \u0441\u0435\u0431\u0435 \u043d\u0435 \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u044f. <\/p>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c.<\/p>\n<p>\u0412\u043d\u0430\u0447\u0430\u043b\u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u044c Pi Zero (W), \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0442\u0443\u0434\u0430 \u041e\u0421 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c SSH &lt;- \u044d\u0442\u043e \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u0430\u043c\u0438. <\/p>\n<p>\u041f\u043e\u0442\u043e\u043c \u043d\u0443\u0436\u043d\u043e \u043a\u043e\u0435-\u0447\u0442\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u0430 Pi0, \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u0430 \u0441\u0442\u0430\u043b\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c\u0441\u044f \u043a\u0430\u043a USB HID \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e:<\/p>\n<pre><code>pi@raspberrypi:~ $ echo \"dtoverlay=dwc2\" | sudo tee -a \/boot\/config.txt pi@raspberrypi:~ $ echo \"dwc2\" | sudo tee -a \/etc\/modules pi@raspberrypi:~ $ sudo echo \"libcomposite\" | sudo tee -a \/etc\/modules pi@raspberrypi:~ $ sudo touch \/usr\/bin\/pypikey_usb pi@raspberrypi:~ $ sudo chmod +x \/usr\/bin\/pypikey_usb<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0444\u0430\u0439\u043b \u0433\u0430\u0434\u0436\u0435\u0442\u0430 \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443<\/p>\n<pre><code>pi@raspberrypi:~ $ sudo nano \/etc\/rc.local<\/code><\/pre>\n<p>\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u0432 \u043a\u043e\u043d\u0435\u0446 \u0444\u0430\u0439\u043b\u0430 <em>\u043d\u0430\u0434 <\/em>exit 0 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c<\/p>\n<pre><code>\/usr\/bin\/pypikey_usb # libcomposite configuration<\/code><\/pre>\n<p>c\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u0430\u043c USB \u0433\u0430\u0434\u0436\u0435\u0442 <\/p>\n<pre><code>sudo nano \/usr\/bin\/pypikey_usb<\/code><\/pre>\n<pre><code>#!\/bin\/bash cd \/sys\/kernel\/config\/usb_gadget\/ mkdir -p pypikey cd pypikey echo 0x1d6b &gt; idVendor # Linux Foundation echo 0x0104 &gt; idProduct # Multifunction Composite Gadget echo 0x0100 &gt; bcdDevice # v1.0.0 echo 0x0200 &gt; bcdUSB # USB2 mkdir -p strings\/0x409 echo \"0123456789\" &gt; strings\/0x409\/serialnumber echo \"Artyom\" &gt; strings\/0x409\/manufacturer echo \"PyPiKey USB Device\" &gt; strings\/0x409\/product mkdir -p configs\/c.1\/strings\/0x409 echo \"Config 1: ECM network\" &gt; configs\/c.1\/strings\/0x409\/configuration echo 250 &gt; configs\/c.1\/MaxPower  # keyboard REPORT_DESC=\"\\ \\\\x05\\\\x01\\\\x09\\\\x06\\\\xa1\\\\x01\\\\x05\\\\x07\\\\x19\\\\xe0\\\\x29\\\\xe7\\\\x15\\\\x00\\\\x25\\\\x01\\ \\\\x75\\\\x01\\\\x95\\\\x08\\\\x81\\\\x02\\\\x95\\\\x01\\\\x75\\\\x08\\\\x81\\\\x03\\\\x95\\\\x05\\\\x75\\\\x01\\ \\\\x05\\\\x08\\\\x19\\\\x01\\\\x29\\\\x05\\\\x91\\\\x02\\\\x95\\\\x01\\\\x75\\\\x03\\\\x91\\\\x03\\\\x95\\\\x06\\ \\\\x75\\\\x08\\\\x15\\\\x00\\\\x25\\\\x65\\\\x05\\\\x07\\\\x19\\\\x00\\\\x29\\\\x65\\\\x81\\\\x00\\\\xc0\"  mkdir -p functions\/hid.usb0 echo 1 &gt; functions\/hid.usb0\/protocol echo 1 &gt; functions\/hid.usb0\/subclass echo 8 &gt; functions\/hid.usb0\/report_length echo -ne ${REPORT_DESC} &gt; functions\/hid.usb0\/report_desc ln -s functions\/hid.usb0 configs\/c.1\/ # End keyboard  # mouse MOUSE_COMBINED_DESC=\"\\ \\\\x05\\\\x01\\\\x09\\\\x02\\\\xa1\\\\x01\\\\x09\\\\x01\\\\xa1\\\\x00\\\\x85\\\\x01\\\\x05\\\\x09\\\\x19\\\\x01\\ \\\\x29\\\\x03\\\\x15\\\\x00\\\\x25\\\\x01\\\\x95\\\\x03\\\\x75\\\\x01\\\\x81\\\\x02\\\\x95\\\\x01\\\\x75\\\\x05\\ \\\\x81\\\\x03\\\\x05\\\\x01\\\\x09\\\\x30\\\\x09\\\\x31\\\\x15\\\\x81\\\\x25\\\\x7f\\\\x75\\\\x08\\\\x95\\\\x02\\ \\\\x81\\\\x06\\\\x95\\\\x02\\\\x75\\\\x08\\\\x81\\\\x01\\\\xc0\\\\xc0\\\\x05\\\\x01\\\\x09\\\\x02\\\\xa1\\\\x01\\ \\\\x09\\\\x01\\\\xa1\\\\x00\\\\x85\\\\x02\\\\x05\\\\x09\\\\x19\\\\x01\\\\x29\\\\x03\\\\x15\\\\x00\\\\x25\\\\x01\\ \\\\x95\\\\x03\\\\x75\\\\x01\\\\x81\\\\x02\\\\x95\\\\x01\\\\x75\\\\x05\\\\x81\\\\x01\\\\x05\\\\x01\\\\x09\\\\x30\\ \\\\x09\\\\x31\\\\x15\\\\x00\\\\x26\\\\xff\\\\x7f\\\\x95\\\\x02\\\\x75\\\\x10\\\\x81\\\\x02\\\\xc0\\\\xc0\"  mkdir -p functions\/hid.usb1 echo 2 &gt; functions\/hid.usb1\/protocol echo 1 &gt; functions\/hid.usb1\/subclass echo 6 &gt; functions\/hid.usb1\/report_length echo -ne ${MOUSE_COMBINED_DESC} &gt; functions\/hid.usb1\/report_desc ln -s functions\/hid.usb1 configs\/c.1\/ # End mouse  ls \/sys\/class\/udc &gt; UDC<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u0438\u0442\u044c Pi0 \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u043b\u0430\u0442\u0443 \u043a USB \u043f\u043e\u0440\u0442\u0443 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430 (\u0443 Pi0 \u0434\u0432\u0430 \u043c\u0438\u043a\u0440\u043e USB \u043f\u043e\u0440\u0442\u0430 \u043d\u0430 \u043f\u043b\u0430\u0442\u0435 &#8212; \u0434\u0430\u0442\u0430 \u0438 \u043f\u0438\u0442\u0430\u043d\u0438\u0435, \u0432\u0442\u044b\u043a\u0430\u0442\u044c \u0432 \u0434\u0430\u0442\u0443).<\/p>\n<p>\u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043a\u0430\u043a USB HID \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0430 \u0438 \u043c\u044b\u0448\u044c. \u0412\u043d\u0443\u0442\u0440\u0438 Pi0 \u0443 \u0432\u0430\u0441 \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u0432\u0430 \u043d\u043e\u0432\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 &#8212; \/dev\/hidg0 &#8212; \u043a\u043b\u0430\u0432\u0430. \/dev\/hidg1 &#8212; \u043c\u044b\u0448\u044c.<\/p>\n<p><em>\u0428\u0435\u0432\u0435\u043b\u0438\u0442\u044c \u043c\u044b\u0448\u043a\u043e\u0439<\/em> \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0442\u0430\u043a (Python):<\/p>\n<pre><code>with open('\/dev\/hidg1', 'rb+') as hidg1:      hidg1.write(b'\\x01\\x00\\xff\\x00\\x00\\x00') #move 1 pixel right      hidg1.write(b'\\x01\\x00\\x01\\x00\\x00\\x00') #move 1 pixel left<\/code><\/pre>\n<p>\u0410 <em>\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c<\/em> \u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435 \u0442\u0430\u043a:<\/p>\n<pre><code>with open('\/dev\/hidg0', 'rb+') as hidg0:      hidg0.write(b'\\x00\\x00\\x04\\x00\\x00\\x00\\x00\\x00') #\u043d\u0430\u0436\u0430\u043b\u0438 \u0410      hidg0.write(b'\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00') #\u043e\u0442\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u0410<\/code><\/pre>\n<p>\u041d\u0430 \u043c\u043e\u0435\u0439 <a href=\"https:\/\/github.com\/ageev\/PyPiKey\" rel=\"noopener noreferrer nofollow\">\u0413\u0438\u0442\u0425\u0430\u0431 \u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0435<\/a> \u0435\u0441\u0442\u044c \u0434\u0432\u0430 \u043f\u0438\u0442\u043e\u043d \u0444\u0430\u0439\u043b\u0430. \u041f\u0435\u0440\u0432\u044b\u0439 (pypimu.py) \u0443\u0434\u043e\u0431\u043d\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0435 \u043d\u0430 \u0437\u0430\u043f\u0443\u0441\u043a \u043a\u0430\u0436\u0434\u0443\u044e \u043c\u0438\u043d\u0443\u0442\u0443. \u041e\u043d \u0441\u0434\u0432\u0438\u0433\u0430\u0435\u0442 \u043a\u0443\u0440\u0441\u043e\u0440 \u043c\u044b\u0448\u0438 \u043d\u0430 \u043f\u0438\u0441\u043a\u0435\u043b\u044c \u0432\u043f\u0440\u0430\u0432\u043e \u0438 \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u043d\u0430 \u043f\u0438\u043a\u0441\u0435\u043b\u044c \u0432\u043b\u0435\u0432\u043e. \u042f \u043d\u0435 \u0432\u0438\u0436\u0443, \u043a\u043e\u0433\u0434\u0430 \u044d\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442, \u043d\u043e \u044d\u0442\u043e\u0433\u043e \u0445\u0432\u0430\u0442\u0430\u0435\u0442, \u0447\u0442\u043e\u0431\u044b \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u043d\u0435 \u0441\u043f\u0430\u043b \u043d\u0438\u043a\u043e\u0433\u0434\u0430. <\/p>\n<p>\u0412\u0442\u043e\u0440\u043e\u0439 (pypikey.py) \u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442 \u0442\u0435\u043a\u0441\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u0435\u043c\u0443 \u0441\u043a\u043e\u0440\u043c\u0438\u0442\u0435. \u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043a\u0430\u043a-\u0442\u043e \u0442\u0430\u043a:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/193\/5c4\/609\/1935c46090abbbdfdc5bbe76db32e9ef.PNG\" alt=\"\u041c\u043e\u0436\u043d\u043e \u0434\u043e\u043b\u0433\u043e \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0442\u043e, \u043a\u0430\u043a \u0434\u0440\u0443\u0433\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442....\" title=\"\u041c\u043e\u0436\u043d\u043e \u0434\u043e\u043b\u0433\u043e \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0442\u043e, \u043a\u0430\u043a \u0434\u0440\u0443\u0433\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442....\" width=\"1109\" height=\"883\"><figcaption>\u041c\u043e\u0436\u043d\u043e \u0434\u043e\u043b\u0433\u043e \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0442\u043e, \u043a\u0430\u043a \u0434\u0440\u0443\u0433\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442&#8230;.<\/figcaption><\/figure>\n<p>\u041a\u0430\u0436\u0435\u0442\u0441\u044f, \u0432\u0441\u0451. \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435!<\/p>\n<\/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\/522562\/\"> https:\/\/habr.com\/ru\/post\/522562\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/522562\/\">\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0420\u0430\u0431\u043e\u0442\u0430 \u0438\u0437 \u0434\u043e\u043c\u0430 \u2013 \u044d\u0442\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0431\u043b\u0430\u0433\u043e, \u043d\u043e \u0438 \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 \u0434\u043b\u044f \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043c\u0435\u0440\u044f\u044e\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0418\u0422 \u043e\u0442\u0434\u0435\u043b\u0430 \u0432 \u0442\u0440\u0443\u0434\u043e\u0447\u0430\u0441\u0430\u0445.   \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u043c \u0442\u0432\u043e\u0435\u0439 \u0442\u0440\u0443\u0434\u043e\u043d\u0430\u0434\u0451\u0436\u043d\u043e\u0441\u0442\u0438 &nbsp;\u0447\u0430\u0441\u0442\u0435\u043d\u044c\u043a\u043e \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u0431\u043e\u0434\u0440\u043e-\u0437\u0435\u043b\u0435\u043d\u044b\u0439 \u0441\u0442\u0430\u0442\u0443\u0441 \u0432 \u043a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u043c \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440\u0435. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0434\u0443\u0442 \u0435\u0449\u0451 \u0434\u0430\u043b\u044c\u0448\u0435 \u0438 \u0434\u0435\u043f\u043b\u043e\u044f\u0442 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u201cdigital experience\u201d \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432 \u0434\u0430\u0431\u044b \u0441\u0447\u0438\u0442\u0430\u0442\u044c, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043e\u043d\u0438 \u043f\u0440\u043e\u0432\u0435\u043b\u0438 \u0432 Word\u2019\u0435, \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u0438\u043b\u0438 \u0441\u0440\u0435\u0434\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438.   <\/p>\n<p>\u0415\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0441\u0442\u043e\u044f\u0442\u044c \u044d\u0442\u043e\u043c\u0443 \u0431\u0435\u0437\u043e\u0431\u0440\u0430\u0437\u0438\u044e:<\/p>\n<ol>\n<li>\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439. \u042f \u043f\u0435\u0440\u0435\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0438 \u0442\u0443\u043b\u0437\u044b, \u044d\u043c\u0443\u043b\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u2013 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u041a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0437\u0430\u0441\u044b\u043f\u0430\u0435\u0442\/\u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440 \u0441\u0442\u0430\u0432\u0438\u0442 \u0441\u0442\u0430\u0442\u0443\u0441 \u201cAway\u201d<\/p>\n<\/li>\n<li>\n<p>\u0410\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u044b\u0439<\/p>\n<p>\u0442\u0430\u043a\u043e\u0439: <\/p>\n<\/li>\n<\/ol>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0438\u043b\u0438 \u0442\u0430\u043a\u043e\u0439:<\/p>\n<p><iframe id=\"5f7ee61451ad1fc9585b08a1\" src=\"https:\/\/embedd.srv.habr.com\/iframe\/5f7ee61451ad1fc9585b08a1\" class=\"embed_video embed__content\"><\/iframe><\/p>\n<p>\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043d\u043e \u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c \u0447\u0442\u043e-\u043b\u0438\u0431\u043e \u0440\u0430\u0437\u0443\u043c\u043d\u043e\u0435 \u043d\u0435 \u0432\u044b\u0439\u0434\u0435\u0442.<\/p>\n<p>3. \u0413\u0438\u0431\u0440\u0438\u0434\u043d\u044b\u0439, \u043d\u0430 \u043d\u0451\u043c \u0438 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c\u0441\u044f \u043f\u043e-\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435<\/p>\n<p>\u0418\u0437\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440 USB HID \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043c\u043e\u0436\u043d\u043e \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 \u0410\u0440\u0434\u0443\u0438\u043d\u0435 \u0441 ATmega32U4. \u0422\u0430\u043c \u0435\u0441\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 USB. \u041d\u043e \u0437\u0430\u0447\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0410\u0440\u0434\u0443\u0438\u043d\u0443, \u0435\u0441\u043b\u0438 \u0437\u0430 \u0442\u0435 \u0436\u0435 \u0434\u0435\u043d\u044c\u0433\u0438 \u0435\u0441\u0442\u044c Raspberry Pi Zero (W)?  Pi0 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u0432 USB \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0443, \u043c\u044b\u0448\u044c \u0438 \u0441\u0435\u0442\u0435\u0432\u0443\u044e \u043a\u0430\u0440\u0442\u0443 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0432\u0441\u0435\u043c \u0434\u043e\u0431\u0440\u043e\u043c \u0447\u0435\u0440\u0435\u0437 SSH, \u043d\u0438 \u0432 \u0447\u0451\u043c \u0441\u0435\u0431\u0435 \u043d\u0435 \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u044f. <\/p>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c.<\/p>\n<p>\u0412\u043d\u0430\u0447\u0430\u043b\u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u044c Pi Zero (W), \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0442\u0443\u0434\u0430 \u041e\u0421 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c SSH &lt;- \u044d\u0442\u043e \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u0430\u043c\u0438. <\/p>\n<p>\u041f\u043e\u0442\u043e\u043c \u043d\u0443\u0436\u043d\u043e \u043a\u043e\u0435-\u0447\u0442\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u0430 Pi0, \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u0430 \u0441\u0442\u0430\u043b\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c\u0441\u044f \u043a\u0430\u043a USB HID \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e:<\/p>\n<pre><code>pi@raspberrypi:~ $ echo \"dtoverlay=dwc2\" | sudo tee -a \/boot\/config.txt pi@raspberrypi:~ $ echo \"dwc2\" | sudo tee -a \/etc\/modules pi@raspberrypi:~ $ sudo echo \"libcomposite\" | sudo tee -a \/etc\/modules pi@raspberrypi:~ $ sudo touch \/usr\/bin\/pypikey_usb pi@raspberrypi:~ $ sudo chmod +x \/usr\/bin\/pypikey_usb<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0444\u0430\u0439\u043b \u0433\u0430\u0434\u0436\u0435\u0442\u0430 \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443<\/p>\n<pre><code>pi@raspberrypi:~ $ sudo nano \/etc\/rc.local<\/code><\/pre>\n<p>\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u0432 \u043a\u043e\u043d\u0435\u0446 \u0444\u0430\u0439\u043b\u0430 <em>\u043d\u0430\u0434 <\/em>exit 0 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c<\/p>\n<pre><code>\/usr\/bin\/pypikey_usb # libcomposite configuration<\/code><\/pre>\n<p>c\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u0430\u043c USB \u0433\u0430\u0434\u0436\u0435\u0442 <\/p>\n<pre><code>sudo nano \/usr\/bin\/pypikey_usb<\/code><\/pre>\n<pre><code>#!\/bin\/bash cd \/sys\/kernel\/config\/usb_gadget\/ mkdir -p pypikey cd pypikey echo 0x1d6b &gt; idVendor # Linux Foundation echo 0x0104 &gt; idProduct # Multifunction Composite Gadget echo 0x0100 &gt; bcdDevice # v1.0.0 echo 0x0200 &gt; bcdUSB # USB2 mkdir -p strings\/0x409 echo \"0123456789\" &gt; strings\/0x409\/serialnumber echo \"Artyom\" &gt; strings\/0x409\/manufacturer echo \"PyPiKey USB Device\" &gt; strings\/0x409\/product mkdir -p configs\/c.1\/strings\/0x409 echo \"Config 1: ECM network\" &gt; configs\/c.1\/strings\/0x409\/configuration echo 250 &gt; configs\/c.1\/MaxPower  # keyboard REPORT_DESC=\"\\ \\\\x05\\\\x01\\\\x09\\\\x06\\\\xa1\\\\x01\\\\x05\\\\x07\\\\x19\\\\xe0\\\\x29\\\\xe7\\\\x15\\\\x00\\\\x25\\\\x01\\ \\\\x75\\\\x01\\\\x95\\\\x08\\\\x81\\\\x02\\\\x95\\\\x01\\\\x75\\\\x08\\\\x81\\\\x03\\\\x95\\\\x05\\\\x75\\\\x01\\ \\\\x05\\\\x08\\\\x19\\\\x01\\\\x29\\\\x05\\\\x91\\\\x02\\\\x95\\\\x01\\\\x75\\\\x03\\\\x91\\\\x03\\\\x95\\\\x06\\ \\\\x75\\\\x08\\\\x15\\\\x00\\\\x25\\\\x65\\\\x05\\\\x07\\\\x19\\\\x00\\\\x29\\\\x65\\\\x81\\\\x00\\\\xc0\"  mkdir -p functions\/hid.usb0 echo 1 &gt; functions\/hid.usb0\/protocol echo 1 &gt; functions\/hid.usb0\/subclass echo 8 &gt; functions\/hid.usb0\/report_length echo -ne ${REPORT_DESC} &gt; functions\/hid.usb0\/report_desc ln -s functions\/hid.usb0 configs\/c.1\/ # End keyboard  # mouse MOUSE_COMBINED_DESC=\"\\ \\\\x05\\\\x01\\\\x09\\\\x02\\\\xa1\\\\x01\\\\x09\\\\x01\\\\xa1\\\\x00\\\\x85\\\\x01\\\\x05\\\\x09\\\\x19\\\\x01\\ \\\\x29\\\\x03\\\\x15\\\\x00\\\\x25\\\\x01\\\\x95\\\\x03\\\\x75\\\\x01\\\\x81\\\\x02\\\\x95\\\\x01\\\\x75\\\\x05\\ \\\\x81\\\\x03\\\\x05\\\\x01\\\\x09\\\\x30\\\\x09\\\\x31\\\\x15\\\\x81\\\\x25\\\\x7f\\\\x75\\\\x08\\\\x95\\\\x02\\ \\\\x81\\\\x06\\\\x95\\\\x02\\\\x75\\\\x08\\\\x81\\\\x01\\\\xc0\\\\xc0\\\\x05\\\\x01\\\\x09\\\\x02\\\\xa1\\\\x01\\ \\\\x09\\\\x01\\\\xa1\\\\x00\\\\x85\\\\x02\\\\x05\\\\x09\\\\x19\\\\x01\\\\x29\\\\x03\\\\x15\\\\x00\\\\x25\\\\x01\\ \\\\x95\\\\x03\\\\x75\\\\x01\\\\x81\\\\x02\\\\x95\\\\x01\\\\x75\\\\x05\\\\x81\\\\x01\\\\x05\\\\x01\\\\x09\\\\x30\\ \\\\x09\\\\x31\\\\x15\\\\x00\\\\x26\\\\xff\\\\x7f\\\\x95\\\\x02\\\\x75\\\\x10\\\\x81\\\\x02\\\\xc0\\\\xc0\"  mkdir -p functions\/hid.usb1 echo 2 &gt; functions\/hid.usb1\/protocol echo 1 &gt; functions\/hid.usb1\/subclass echo 6 &gt; functions\/hid.usb1\/report_length echo -ne ${MOUSE_COMBINED_DESC} &gt; functions\/hid.usb1\/report_desc ln -s functions\/hid.usb1 configs\/c.1\/ # End mouse  ls \/sys\/class\/udc &gt; UDC<\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u0438\u0442\u044c Pi0 \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u043b\u0430\u0442\u0443 \u043a USB \u043f\u043e\u0440\u0442\u0443 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430 (\u0443 Pi0 \u0434\u0432\u0430 \u043c\u0438\u043a\u0440\u043e USB \u043f\u043e\u0440\u0442\u0430 \u043d\u0430 \u043f\u043b\u0430\u0442\u0435 &#8212; \u0434\u0430\u0442\u0430 \u0438 \u043f\u0438\u0442\u0430\u043d\u0438\u0435, \u0432\u0442\u044b\u043a\u0430\u0442\u044c \u0432 \u0434\u0430\u0442\u0443).<\/p>\n<p>\u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043a\u0430\u043a USB HID \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0430 \u0438 \u043c\u044b\u0448\u044c. \u0412\u043d\u0443\u0442\u0440\u0438 Pi0 \u0443 \u0432\u0430\u0441 \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u0432\u0430 \u043d\u043e\u0432\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 &#8212; \/dev\/hidg0 &#8212; \u043a\u043b\u0430\u0432\u0430. \/dev\/hidg1 &#8212; \u043c\u044b\u0448\u044c.<\/p>\n<p><em>\u0428\u0435\u0432\u0435\u043b\u0438\u0442\u044c \u043c\u044b\u0448\u043a\u043e\u0439<\/em> \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0442\u0430\u043a (Python):<\/p>\n<pre><code>with open('\/dev\/hidg1', 'rb+') as hidg1:      hidg1.write(b'\\x01\\x00\\xff\\x00\\x00\\x00') #move 1 pixel right      hidg1.write(b'\\x01\\x00\\x01\\x00\\x00\\x00') #move 1 pixel left<\/code><\/pre>\n<p>\u0410 <em>\u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c<\/em> \u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435 \u0442\u0430\u043a:<\/p>\n<pre><code>with open('\/dev\/hidg0', 'rb+') as hidg0:      hidg0.write(b'\\x00\\x00\\x04\\x00\\x00\\x00\\x00\\x00') #\u043d\u0430\u0436\u0430\u043b\u0438 \u0410      hidg0.write(b'\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00') #\u043e\u0442\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u0410<\/code><\/pre>\n<p>\u041d\u0430 \u043c\u043e\u0435\u0439 <a href=\"https:\/\/github.com\/ageev\/PyPiKey\" rel=\"noopener noreferrer nofollow\">\u0413\u0438\u0442\u0425\u0430\u0431 \u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0435<\/a> \u0435\u0441\u0442\u044c \u0434\u0432\u0430 \u043f\u0438\u0442\u043e\u043d \u0444\u0430\u0439\u043b\u0430. \u041f\u0435\u0440\u0432\u044b\u0439 (pypimu.py) \u0443\u0434\u043e\u0431\u043d\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0435 \u043d\u0430 \u0437\u0430\u043f\u0443\u0441\u043a \u043a\u0430\u0436\u0434\u0443\u044e \u043c\u0438\u043d\u0443\u0442\u0443. \u041e\u043d \u0441\u0434\u0432\u0438\u0433\u0430\u0435\u0442 \u043a\u0443\u0440\u0441\u043e\u0440 \u043c\u044b\u0448\u0438 \u043d\u0430 \u043f\u0438\u0441\u043a\u0435\u043b\u044c \u0432\u043f\u0440\u0430\u0432\u043e \u0438 \u0441\u0440\u0430\u0437\u0443 \u0436\u0435 \u043d\u0430 \u043f\u0438\u043a\u0441\u0435\u043b\u044c \u0432\u043b\u0435\u0432\u043e. \u042f \u043d\u0435 \u0432\u0438\u0436\u0443, \u043a\u043e\u0433\u0434\u0430 \u044d\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442, \u043d\u043e \u044d\u0442\u043e\u0433\u043e \u0445\u0432\u0430\u0442\u0430\u0435\u0442, \u0447\u0442\u043e\u0431\u044b \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u043d\u0435 \u0441\u043f\u0430\u043b \u043d\u0438\u043a\u043e\u0433\u0434\u0430. <\/p>\n<p>\u0412\u0442\u043e\u0440\u043e\u0439 (pypikey.py) \u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442 \u0442\u0435\u043a\u0441\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u0435\u043c\u0443 \u0441\u043a\u043e\u0440\u043c\u0438\u0442\u0435. \u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043a\u0430\u043a-\u0442\u043e \u0442\u0430\u043a:<\/p>\n<figure class=\"full-width\"><figcaption>\u041c\u043e\u0436\u043d\u043e \u0434\u043e\u043b\u0433\u043e \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0442\u043e, \u043a\u0430\u043a \u0434\u0440\u0443\u0433\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442&#8230;.<\/figcaption><\/figure>\n<p>\u041a\u0430\u0436\u0435\u0442\u0441\u044f, \u0432\u0441\u0451. \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435!<\/p>\n<\/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\/522562\/\"> https:\/\/habr.com\/ru\/post\/522562\/<\/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-311175","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/311175","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=311175"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/311175\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=311175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=311175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=311175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}