<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>s51517765</author_name>
  <author_url>https://blog.hatena.ne.jp/s51517765/</author_url>
  <blog_title>プログラミング素人のはてなブログ</blog_title>
  <blog_url>https://s51517765.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Arduino</anon>
  </categories>
  <description>これまで、土壌抵抗に基づいて水遣りを行うロジックを考えてきました。 ここで、手動水遣りボタンを作ります。 これは土壌抵抗に寄らず、水を給水するためのものです。 ここでは、割り込みモードを使います。 これまで、タクトスイッチの状態を見て動作させるには digitalRead、analogReadを使ってきました。これによって、スイッチが押されたことを観測しています。 しかし、delayに入っているときなど、**Readのコマンドがないときには読むことができません。 ここでArduinoにはattachInterruptという割り込み関数が用意されています。 これをつかってタクトスイッチが押された…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fs51517765.hatenadiary.jp%2Fentry%2F2015%2F12%2F23%2F205557&quot; title=&quot;手動水遣りボタン - プログラミング素人のはてなブログ&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-12-23 20:55:57</published>
  <title>手動水遣りボタン</title>
  <type>rich</type>
  <url>https://s51517765.hatenadiary.jp/entry/2015/12/23/205557</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
