<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>創客 on G. T. Wang</title>
    <link>https://blog.gtwang.org/categories/%E5%89%B5%E5%AE%A2/</link>
    <description>Recent content in 創客 on G. T. Wang</description>
    <generator>Hugo -- 0.162.0</generator>
    <language>zh-tw</language>
    <copyright>G. T. Wang</copyright>
    <lastBuildDate>Thu, 07 Apr 2022 14:48:10 +0800</lastBuildDate>
    <atom:link href="https://blog.gtwang.org/categories/%E5%89%B5%E5%AE%A2/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>樹莓派 Raspberry Pi 連接多個 I2C 裝置教學與範例</title>
      <link>https://blog.gtwang.org/iot/raspberry-pi-connect-multiple-i2c-devices-tutorial-examples/</link>
      <pubDate>Thu, 07 Apr 2022 14:48:10 +0800</pubDate>
      <guid>https://blog.gtwang.org/iot/raspberry-pi-connect-multiple-i2c-devices-tutorial-examples/</guid>
      <description>&lt;p&gt;本篇以 HTU21D 溫度與濕度感測器與 MPU-6050 加速度計與陀螺儀六軸感測器為例，示範如何在一張樹莓派上同時連接多個 I2C 設備。&lt;/p&gt;
&lt;p&gt;

&lt;ins class=&#34;adsbygoogle&#34;
     style=&#34;display:block&#34;
     data-ad-client=&#34;ca-pub-7794009487786811&#34;
     data-ad-slot=&#34;9921134032&#34;
     data-ad-format=&#34;auto&#34;
     data-full-width-responsive=&#34;true&#34;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/p&gt;

&lt;h2 id=&#34;接線圖&#34;&gt;接線圖&lt;/h2&gt;
&lt;p&gt;若要在樹莓派上同時接上多個 I2C 裝置，只要各項裝置的 I2C 位置不同，就可以直接並聯接在同一個 I2C 匯流排（bus）上，也就是將各 I2C 裝置的 SCL 與 SDA 兩條線都接在同一個腳位上，而電源的兩條線也都可以共用，所以最簡單的接法就是四條線都共用相同的腳位。&lt;/p&gt;</description>
    </item>
    <item>
      <title>樹莓派 Raspberry Pi 控制 GPIO 連接的 LED 燈教學與範例</title>
      <link>https://blog.gtwang.org/iot/raspberry-pi-gpio-led-tutorial-examples/</link>
      <pubDate>Wed, 06 Apr 2022 19:41:45 +0800</pubDate>
      <guid>https://blog.gtwang.org/iot/raspberry-pi-gpio-led-tutorial-examples/</guid>
      <description>&lt;p&gt;介紹如何在樹莓派上使用 sysfs、&lt;code&gt;gpio&lt;/code&gt; 指令、C 語言或 Python 指令稿等方式，控制 GPIO 連接的 LED 燈。&lt;/p&gt;
&lt;p&gt;

&lt;ins class=&#34;adsbygoogle&#34;
     style=&#34;display:block&#34;
     data-ad-client=&#34;ca-pub-7794009487786811&#34;
     data-ad-slot=&#34;9921134032&#34;
     data-ad-format=&#34;auto&#34;
     data-full-width-responsive=&#34;true&#34;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/p&gt;

&lt;blockquote class=&#34;tldr&#34;&gt;&lt;p&gt;&lt;strong&gt;相關文章：&lt;/strong&gt;&lt;br&gt;
&lt;a href=&#34;https://blog.gtwang.org/iot/raspberry-pi-scratch-gpio-led-tutorial-examples/&#34;&gt;樹莓派 Raspberry Pi 使用 Scratch 控制 GPIO 連接的 LED 燈教學與範例&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>樹莓派 Raspberry Pi 使用 Scratch 控制 GPIO 連接的 LED 燈教學與範例</title>
      <link>https://blog.gtwang.org/iot/raspberry-pi-scratch-gpio-led-tutorial-examples/</link>
      <pubDate>Tue, 25 Aug 2020 14:40:18 +0800</pubDate>
      <guid>https://blog.gtwang.org/iot/raspberry-pi-scratch-gpio-led-tutorial-examples/</guid>
      <description>&lt;p&gt;介紹如何在樹莓派（Raspberry Pi）中使用 Scratch 控制 GPIO，點亮與關閉連接的 LED 燈。&lt;/p&gt;
&lt;p&gt;

&lt;ins class=&#34;adsbygoogle&#34;
     style=&#34;display:block&#34;
     data-ad-client=&#34;ca-pub-7794009487786811&#34;
     data-ad-slot=&#34;9921134032&#34;
     data-ad-format=&#34;auto&#34;
     data-full-width-responsive=&#34;true&#34;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href=&#34;https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#gpio-pins&#34;&gt;樹莓派的 GPIO&lt;/a&gt; 可以用來連接各種電子設備，製作出各種控制應用，最簡單的應用就是連接並控制 LED 燈。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
