<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rott1st</author_name>
  <author_url>https://blog.hatena.ne.jp/rott1st/</author_url>
  <blog_title>mahler.jp Programming Tips Blog</blog_title>
  <blog_url>https://rott1st.hatenablog.com/</blog_url>
  <categories>
    <anon>Raspberry Pi</anon>
    <anon>Python</anon>
  </categories>
  <description>ある日、LED点灯、消灯やサーボモータ制御のために import RPi.GPIO as GPIO をグローバルでimportし、 import pigpio を(マルチ)スレッド内でimportし、都合のいいように混ぜて使って(書いて)いました。 そうしたら、プログラムが止まっているにもかかわらず、サーボモータがピクついたり、プログラム動作中に暴走、ピクつくなどの不具合が発生しました。 ソースコードをよく見ると、RPi.GPIOとpigpioが混在するスレッドが生まれ、そこにサーボモータの制御を書いていました。 対処として、あるスレッドではRPi.GPIOのみ、別のスレッドではpigpioの…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frott1st.hatenablog.com%2Fentry%2F2024%2F07%2F31%2F163729&quot; title=&quot;混ぜるな危険 - mahler.jp Programming Tips Blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn.image.st-hatena.com/image/square/adad63b72f1d6545b2ba2538c3fc2923b2fd5989/backend=imagemagick;height=80;version=1;width=80/https%3A%2F%2Fcdn.blog.st-hatena.com%2Fimages%2Fcircle%2Fofficial-circle-icon%2Fcomputers.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-07-31 16:37:29</published>
  <title>混ぜるな危険</title>
  <type>rich</type>
  <url>https://rott1st.hatenablog.com/entry/2024/07/31/163729</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
