<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sonota88</author_name>
  <author_url>https://blog.hatena.ne.jp/sonota88/</author_url>
  <blog_title>memo486</blog_title>
  <blog_url>https://memo88.hatenablog.com/</blog_url>
  <categories>
    <anon>kairo-gokko</anon>
  </categories>
  <description>目次ページに戻る / 前 / 次 前回は not リレーの表示まで実装しました。 今回は、リレーの通電状態が変わったときに隣のスイッチを切り替える部分を作りましょう。 汎用的なものを目指すのはいったん脇に置いといて、まずはこの回路を動かすことだけを考えて様子を探ります。最初はハリボテでOK。 今、通電やスイッチなどの状態更新まわりの処理の流れはこうなっています。 - スイッチの状態更新 - スイッチの状態が変化したら以下を実行 - 通電状態を更新 - リレーの状態を更新 - ランプの状態を更新 リレーの状態が変わった場合は隣のスイッチの状態も更新する必要があるので……こうでしょうか。 - スイ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemo88.hatenablog.com%2Fentry%2F2020%2F03%2F15%2F105057&quot; title=&quot;kairo-gokko (23) リレー 2 - memo486&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/sonota88/20200315/20200315085917.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-03-15 10:50:57</published>
  <title>kairo-gokko (23) リレー 2</title>
  <type>rich</type>
  <url>https://memo88.hatenablog.com/entry/2020/03/15/105057</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
