<?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>今日は、前回続きです。 スイッチが押下されている時間を計測します。 下図のようなプルアップ回路を作って、タクトスイッチが押されている時間を計測します。 （Input I/Oが3だったり4だったりしますがあしからず）スイッチが押されれていないと、digitalReadはHIGHです。 while (digitalRead(4) == HIGH) {} ｗhileは（）のなかの条件が成立している間、｛｝のなかを実行しますが、ここでは｛｝の中を空欄にすることで、digitalRead(4) == HIGH のあいだ、ここに留まります。 スイッチが押されて、digitalRead == LOWとなると…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fs51517765.hatenadiary.jp%2Fentry%2F2016%2F09%2F10%2F170000&quot; title=&quot;Arduinoで時間を計る　その2 - プログラミング素人のはてなブログ&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-ak.f.st-hatena.com/images/fotolife/s/s51517765/20160919/20160919131858.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-09-10 17:00:00</published>
  <title>Arduinoで時間を計る　その2</title>
  <type>rich</type>
  <url>https://s51517765.hatenadiary.jp/entry/2016/09/10/170000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
