<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>softcircus</author_name>
  <author_url>https://blog.hatena.ne.jp/softcircus/</author_url>
  <blog_title>SoftCircusのブログ</blog_title>
  <blog_url>https://softcircus.hatenablog.com/</blog_url>
  <categories>
    <anon>技術</anon>
  </categories>
  <description>曲再生制御として4個のスイッチを用意しました。 スィッチのON/OFF検出はライブラリーが多くあるのですが大した処理じゃないので自分で実装しました。Arduino IDEは言語としてはC++ですのでクラスを作ってってのでも良かったのですが組み込みなら古典的な関数ポインタで処理すべきだろうってんで以下のようなコードとしました。 本来ならチャタリングの除去など付けるべきなのでしょうが今回の場合はボタン押下でDFPlayerへのコマンド発行して400msecのdelayがありますので影響は無いはずです。 スイッチ押下時の動作 各スイッチが押された場合の処理は簡単でグローバル変数のフォルダー番号、曲番…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsoftcircus.hatenablog.com%2Fentry%2F2022%2F11%2F15%2F115919&quot; title=&quot;視覚障害者用音楽再生機を作る(スイッチで曲再生を制御する) - SoftCircusのブログ&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/softcircus/20221115/20221115110003.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-11-15 11:59:19</published>
  <title>視覚障害者用音楽再生機を作る(スイッチで曲再生を制御する)</title>
  <type>rich</type>
  <url>https://softcircus.hatenablog.com/entry/2022/11/15/115919</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
