{"id":800,"date":"2021-11-28T09:58:56","date_gmt":"2021-11-28T09:58:56","guid":{"rendered":"https:\/\/www.linuxsystems.ovh\/?p=800"},"modified":"2021-11-28T09:58:57","modified_gmt":"2021-11-28T09:58:57","slug":"wylaczenie-diod-led-w-raspberry-pi-3b","status":"publish","type":"post","link":"https:\/\/www.linuxsystems.ovh\/?p=800","title":{"rendered":"Wy\u0142\u0105czenie di\u00f3d LED w raspberry PI 3B+"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">W tym artykule napisz\u0119, jak wy\u0142\u0105czy\u0107 wszystkie standardowe diody LED z Raspberry PI 3B+ + diod\u0119 z kamery.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-paragraph\">Do pliku:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/etc\/systemd\/system\/disable-led.service<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Dopisujemy:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;Unit]\nDescription=Disables the power-LED and active-LED\n\n&#91;Service]\nType=oneshot\nRemainAfterExit=yes\nExecStart=sh -c \"echo 0 | sudo tee \/sys\/class\/leds\/led1\/brightness > \/dev\/null &amp;&amp; echo 0 | sudo tee \/sys\/class\/leds\/led0\/brightness\"\nExecStop=sh -c \"echo 1 | sudo tee \/sys\/class\/leds\/led1\/brightness > \/dev\/null &amp;&amp; echo 1 | sudo tee \/sys\/class\/leds\/led0\/brightness\"\n\n&#91;Install]\nWantedBy=multi-user.target\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Nast\u0119pnie, dajemy aby uruchomia\u0142 si\u0119 automatycznie po starcie systemu, wi\u0119c dajemy:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl daemon-reload\nsudo systemctl enable disable-led<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Aby uruchomi\u0107 go ju\u017c mo\u017cna wpisa\u0107:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl start disable-led<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Tylko tyle wystarczy, aby nasze raspberry nie mia\u0142o w\u0142\u0105czonych di\u00f3d LED, kt\u00f3re mog\u0105 przeszkadza\u0107 np. w nocy.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Teraz czas przej\u015b\u0107 do diody na kamerze dedykowanej raspberry, kt\u00f3ra jak wiemy, ma diod\u0119 led.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Wy\u0142\u0105czy\u0107 diod\u0119 LED od kamery mo\u017cemy nast\u0119puj\u0105co:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">dopisujemy na ko\u0144cu pliku:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/boot\/config.txt<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">tak\u0105\u00a0linijk\u0119:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>disable_camera_led=1<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">I robimy reboot naszego raspberry. Po uruchomieniu kamera powinna mie\u0107 wy\u0142\u0105czon\u0105 diod\u0119 LED.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>W tym artykule napisz\u0119, jak wy\u0142\u0105czy\u0107 wszystkie standardowe diody LED z Raspberry PI 3B+ + diod\u0119 z kamery.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[],"class_list":["post-800","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=\/wp\/v2\/posts\/800","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=800"}],"version-history":[{"count":1,"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=\/wp\/v2\/posts\/800\/revisions"}],"predecessor-version":[{"id":801,"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=\/wp\/v2\/posts\/800\/revisions\/801"}],"wp:attachment":[{"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxsystems.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}