<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>http://mochiuwiki.e2.valueserver.jp/index.php?action=history&amp;feed=atom&amp;title=Arduino%E3%81%AE%E5%9F%BA%E7%A4%8E_-_%E3%83%89%E3%83%83%E3%83%88%E3%83%9E%E3%83%88%E3%83%AA%E3%82%AF%E3%82%B9LED</id>
	<title>Arduinoの基礎 - ドットマトリクスLED - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="http://mochiuwiki.e2.valueserver.jp/index.php?action=history&amp;feed=atom&amp;title=Arduino%E3%81%AE%E5%9F%BA%E7%A4%8E_-_%E3%83%89%E3%83%83%E3%83%88%E3%83%9E%E3%83%88%E3%83%AA%E3%82%AF%E3%82%B9LED"/>
	<link rel="alternate" type="text/html" href="http://mochiuwiki.e2.valueserver.jp/index.php?title=Arduino%E3%81%AE%E5%9F%BA%E7%A4%8E_-_%E3%83%89%E3%83%83%E3%83%88%E3%83%9E%E3%83%88%E3%83%AA%E3%82%AF%E3%82%B9LED&amp;action=history"/>
	<updated>2026-09-06T15:20:37Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>http://mochiuwiki.e2.valueserver.jp/index.php?title=Arduino%E3%81%AE%E5%9F%BA%E7%A4%8E_-_%E3%83%89%E3%83%83%E3%83%88%E3%83%9E%E3%83%88%E3%83%AA%E3%82%AF%E3%82%B9LED&amp;diff=2602&amp;oldid=prev</id>
		<title>2020年12月5日 (土) 06:11にWikiによる</title>
		<link rel="alternate" type="text/html" href="http://mochiuwiki.e2.valueserver.jp/index.php?title=Arduino%E3%81%AE%E5%9F%BA%E7%A4%8E_-_%E3%83%89%E3%83%83%E3%83%88%E3%83%9E%E3%83%88%E3%83%AA%E3%82%AF%E3%82%B9LED&amp;diff=2602&amp;oldid=prev"/>
		<updated>2020-12-05T06:11:57Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2020年12月5日 (土) 15:11時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot;&gt;7行目:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;7行目:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== MAX7219モジュール ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== MAX7219モジュール ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ArduinoとMAX7219モジュールは、SPIで接続する。&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ArduinoとMAX7219モジュールは、SPIで接続する。&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;br&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;下図に示すように、MAX7219モジュールの左右にピンがあり、複数のMAX7219モジュールがデイジーチェン接続できるようになっている。&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;下図に示すように、MAX7219モジュールの左右にピンがあり、複数のMAX7219モジュールがデイジーチェン接続できるようになっている。&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;複数接続する場合は、右のIN側から入力して、左のOUT側から次のMAX7219モジュールを接続する。&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;複数接続する場合は、右のIN側から入力して、左のOUT側から次のMAX7219モジュールを接続する。&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[ファイル:Arduino DotMatrix 1.jpg|フレームなし|中央]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== サンプルコード ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== サンプルコード ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ここでは、MaxMatrixライブラリを使用している。&lt;/del&gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;サンプルコードでは、MaxMatrixライブラリを使用している。&lt;/ins&gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;MaxMatrixライブラリは、Google Code( https://code.google.com/archive/p/arudino-maxmatrix-library )からダウンロードできる。&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;MaxMatrixライブラリは、Google Code( https://code.google.com/archive/p/arudino-maxmatrix-library )からダウンロードできる。&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ライブラリには文字を流すサンプルが存在するので、以下のサンプルコードではそれを元に記述している。&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ライブラリには文字を流すサンプルが存在するので、以下のサンプルコードではそれを元に記述している。&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l26&quot;&gt;26行目:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;27行目:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;1要素目は文字幅、2要素目は8固定、3〜7要素目は1列分のオン / オフを指定している。&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;1要素目は文字幅、2要素目は8固定、3〜7要素目は1列分のオン / オフを指定している。&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;例えば、文字Fでは下図のようになる。また、幅を指定することで、プロポーショナルフォントとして美しく表示できる。&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;例えば、文字Fでは下図のようになる。また、幅を指定することで、プロポーショナルフォントとして美しく表示できる。&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[ファイル:Arduino DotMatrix 2.jpg|フレームなし|中央]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;MaxMatrixクラスのコンストラクタでは、Arduinoのピンと使用するモジュール数を指定する。&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;MaxMatrixクラスのコンストラクタでは、Arduinoのピンと使用するモジュール数を指定する。&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l64&quot;&gt;64行目:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;65行目:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;br&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;これにより、下図のようなスクロール表示が可能になる。&amp;lt;br&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[ファイル:Arduino DotMatrix 3.jpg|フレームなし|中央]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;以下に、全体のサンプルコードを記述する。&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;以下に、全体のサンプルコードを記述する。&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key mochiuwiki:diff:1.41:old-2598:rev-2602:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Wiki</name></author>
	</entry>
	<entry>
		<id>http://mochiuwiki.e2.valueserver.jp/index.php?title=Arduino%E3%81%AE%E5%9F%BA%E7%A4%8E_-_%E3%83%89%E3%83%83%E3%83%88%E3%83%9E%E3%83%88%E3%83%AA%E3%82%AF%E3%82%B9LED&amp;diff=2598&amp;oldid=prev</id>
		<title>Wiki: ページの作成:「== 概要 == ここでは、MAX7219 LEDディスプレイドライバモジュールを使用して8x8ドットマトリクスLEDを制御することにより、流れ…」</title>
		<link rel="alternate" type="text/html" href="http://mochiuwiki.e2.valueserver.jp/index.php?title=Arduino%E3%81%AE%E5%9F%BA%E7%A4%8E_-_%E3%83%89%E3%83%83%E3%83%88%E3%83%9E%E3%83%88%E3%83%AA%E3%82%AF%E3%82%B9LED&amp;diff=2598&amp;oldid=prev"/>
		<updated>2020-12-04T22:17:09Z</updated>

		<summary type="html">&lt;p&gt;ページの作成:「== 概要 == ここでは、MAX7219 LEDディスプレイドライバモジュールを使用して8x8ドットマトリクスLEDを制御することにより、流れ…」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== 概要 ==&lt;br /&gt;
ここでは、MAX7219 LEDディスプレイドライバモジュールを使用して8x8ドットマトリクスLEDを制御することにより、流れる文字を表示する。&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
MAX7219モジュールは、AliExpress等で購入できる。&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== MAX7219モジュール ==&lt;br /&gt;
ArduinoとMAX7219モジュールは、SPIで接続する。&amp;lt;br&amp;gt;&lt;br /&gt;
下図に示すように、MAX7219モジュールの左右にピンがあり、複数のMAX7219モジュールがデイジーチェン接続できるようになっている。&amp;lt;br&amp;gt;&lt;br /&gt;
複数接続する場合は、右のIN側から入力して、左のOUT側から次のMAX7219モジュールを接続する。&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== サンプルコード ==&lt;br /&gt;
ここでは、MaxMatrixライブラリを使用している。&amp;lt;br&amp;gt;&lt;br /&gt;
MaxMatrixライブラリは、Google Code( https://code.google.com/archive/p/arudino-maxmatrix-library )からダウンロードできる。&amp;lt;br&amp;gt;&lt;br /&gt;
ライブラリには文字を流すサンプルが存在するので、以下のサンプルコードではそれを元に記述している。&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
まず、MaxMatrixライブラリを使用するために、MaxMatrix.hファイルをインクルードする必要がある。&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
続いて、文字データをLEDのオン / オフで指定するため、&amp;lt;code&amp;gt;const PROGMEM byte CH[]&amp;lt;/code&amp;gt;を定義する。&amp;lt;br&amp;gt;&lt;br /&gt;
文字データはサイズが大きいため、&amp;lt;code&amp;gt;PROGMEM&amp;lt;/code&amp;gt;を指定することにより、ROMに配置することができる。&amp;lt;br&amp;gt;&lt;br /&gt;
(フラッシュメモリのサイズは、Arduino UNOで32[KB]ある)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
文字データは、最大5ドット幅の文字を横向きで定義する。&amp;lt;br&amp;gt;&lt;br /&gt;
1要素目は文字幅、2要素目は8固定、3〜7要素目は1列分のオン / オフを指定している。&amp;lt;br&amp;gt;&lt;br /&gt;
例えば、文字Fでは下図のようになる。また、幅を指定することで、プロポーショナルフォントとして美しく表示できる。&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
MaxMatrixクラスのコンストラクタでは、Arduinoのピンと使用するモジュール数を指定する。&amp;lt;br&amp;gt;&lt;br /&gt;
変数maxInUseでモジュール数を指定する。ここでは、2個使用するので2を渡している。(最大8個まで使用できる)&amp;lt;br&amp;gt;&lt;br /&gt;
 &amp;lt;syntaxhighlight lang=&amp;quot;c++&amp;quot;&amp;gt;&lt;br /&gt;
 const int PIN_DIN  = 12;&lt;br /&gt;
 const int PIN_CS   = 10;&lt;br /&gt;
 const int PIN_CLK  = 11;&lt;br /&gt;
 const int maxInUse =  2;&lt;br /&gt;
 &lt;br /&gt;
 MaxMatrix m(PIN_DIN, PIN_CS, PIN_CLK, maxInUse);&lt;br /&gt;
 &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
setup関数でMaxMatrixクラスのインスタンスを初期化する。&amp;lt;br&amp;gt;&lt;br /&gt;
setIntensityメソッドは、明るさを0〜15までの値で指定できる。&amp;lt;br&amp;gt;&lt;br /&gt;
 &amp;lt;syntaxhighlight lang=&amp;quot;c++&amp;quot;&amp;gt;&lt;br /&gt;
 void setup()&lt;br /&gt;
 {&lt;br /&gt;
    m.init();&lt;br /&gt;
    m.setIntensity(3);&lt;br /&gt;
 }&lt;br /&gt;
 &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
loop関数でprintStringWithShift関数を呼び出して、文字のスクロールを繰り返し実行する。&amp;lt;br&amp;gt;&lt;br /&gt;
memcpy_P関数は、PROGMEM(フラッシュメモリ)へのアクセス時に使用する。これは、AVR Libcのavr/pgmspace.hで宣言されている。&amp;lt;br&amp;gt;&lt;br /&gt;
 &amp;lt;syntaxhighlight lang=&amp;quot;c++&amp;quot;&amp;gt;&lt;br /&gt;
 void loop()&lt;br /&gt;
 {&lt;br /&gt;
    printStringWithShift(string1, 100);&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 void printCharWithShift(char c, int shift_speed)&lt;br /&gt;
 {&lt;br /&gt;
    // 略&lt;br /&gt;
    memcpy_P(buffer, CH + 7*c, 7);&lt;br /&gt;
    // 略&lt;br /&gt;
 }&lt;br /&gt;
 &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
以下に、全体のサンプルコードを記述する。&amp;lt;br&amp;gt;&lt;br /&gt;
 &amp;lt;syntaxhighlight lang=&amp;quot;c++&amp;quot;&amp;gt;&lt;br /&gt;
 #include &amp;lt;MaxMatrix.h&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 const PROGMEM byte CH[] = {&lt;br /&gt;
 3, 8, B00000000, B00000000, B00000000, B00000000, B00000000, // space&lt;br /&gt;
 1, 8, B01011111, B00000000, B00000000, B00000000, B00000000, // !&lt;br /&gt;
 3, 8, B00000011, B00000000, B00000011, B00000000, B00000000, // &amp;quot;&lt;br /&gt;
 5, 8, B00010100, B00111110, B00010100, B00111110, B00010100, // #&lt;br /&gt;
 4, 8, B00100100, B01101010, B00101011, B00010010, B00000000, // $&lt;br /&gt;
 5, 8, B01100011, B00010011, B00001000, B01100100, B01100011, // %&lt;br /&gt;
 5, 8, B00110110, B01001001, B01010110, B00100000, B01010000, // &amp;amp;&lt;br /&gt;
 1, 8, B00000011, B00000000, B00000000, B00000000, B00000000, // &amp;#039;&lt;br /&gt;
 3, 8, B00011100, B00100010, B01000001, B00000000, B00000000, // (&lt;br /&gt;
 3, 8, B01000001, B00100010, B00011100, B00000000, B00000000, // )&lt;br /&gt;
 5, 8, B00101000, B00011000, B00001110, B00011000, B00101000, // *&lt;br /&gt;
 5, 8, B00001000, B00001000, B00111110, B00001000, B00001000, // +&lt;br /&gt;
 2, 8, B10110000, B01110000, B00000000, B00000000, B00000000, // ,&lt;br /&gt;
 4, 8, B00001000, B00001000, B00001000, B00001000, B00000000, // -&lt;br /&gt;
 2, 8, B01100000, B01100000, B00000000, B00000000, B00000000, // .&lt;br /&gt;
 4, 8, B01100000, B00011000, B00000110, B00000001, B00000000, // /&lt;br /&gt;
 4, 8, B00111110, B01000001, B01000001, B00111110, B00000000, // 0&lt;br /&gt;
 3, 8, B01000010, B01111111, B01000000, B00000000, B00000000, // 1&lt;br /&gt;
 4, 8, B01100010, B01010001, B01001001, B01000110, B00000000, // 2&lt;br /&gt;
 4, 8, B00100010, B01000001, B01001001, B00110110, B00000000, // 3&lt;br /&gt;
 4, 8, B00011000, B00010100, B00010010, B01111111, B00000000, // 4&lt;br /&gt;
 4, 8, B00100111, B01000101, B01000101, B00111001, B00000000, // 5&lt;br /&gt;
 4, 8, B00111110, B01001001, B01001001, B00110000, B00000000, // 6&lt;br /&gt;
 4, 8, B01100001, B00010001, B00001001, B00000111, B00000000, // 7&lt;br /&gt;
 4, 8, B00110110, B01001001, B01001001, B00110110, B00000000, // 8&lt;br /&gt;
 4, 8, B00000110, B01001001, B01001001, B00111110, B00000000, // 9&lt;br /&gt;
 2, 8, B01010000, B00000000, B00000000, B00000000, B00000000, // :&lt;br /&gt;
 2, 8, B10000000, B01010000, B00000000, B00000000, B00000000, // ;&lt;br /&gt;
 3, 8, B00010000, B00101000, B01000100, B00000000, B00000000, // &amp;lt;&lt;br /&gt;
 3, 8, B00010100, B00010100, B00010100, B00000000, B00000000, // =&lt;br /&gt;
 3, 8, B01000100, B00101000, B00010000, B00000000, B00000000, // &amp;gt;&lt;br /&gt;
 4, 8, B00000010, B01011001, B00001001, B00000110, B00000000, // ?&lt;br /&gt;
 5, 8, B00111110, B01001001, B01010101, B01011101, B00001110, // @&lt;br /&gt;
 4, 8, B01111110, B00010001, B00010001, B01111110, B00000000, // A&lt;br /&gt;
 4, 8, B01111111, B01001001, B01001001, B00110110, B00000000, // B&lt;br /&gt;
 4, 8, B00111110, B01000001, B01000001, B00100010, B00000000, // C&lt;br /&gt;
 4, 8, B01111111, B01000001, B01000001, B00111110, B00000000, // D&lt;br /&gt;
 4, 8, B01111111, B01001001, B01001001, B01000001, B00000000, // E&lt;br /&gt;
 4, 8, B01111111, B00001001, B00001001, B00000001, B00000000, // F&lt;br /&gt;
 4, 8, B00111110, B01000001, B01001001, B01111010, B00000000, // G&lt;br /&gt;
 4, 8, B01111111, B00001000, B00001000, B01111111, B00000000, // H&lt;br /&gt;
 3, 8, B01000001, B01111111, B01000001, B00000000, B00000000, // I&lt;br /&gt;
 4, 8, B00110000, B01000000, B01000001, B00111111, B00000000, // J&lt;br /&gt;
 4, 8, B01111111, B00001000, B00010100, B01100011, B00000000, // K&lt;br /&gt;
 4, 8, B01111111, B01000000, B01000000, B01000000, B00000000, // L&lt;br /&gt;
 5, 8, B01111111, B00000010, B00001100, B00000010, B01111111, // M&lt;br /&gt;
 5, 8, B01111111, B00000100, B00001000, B00010000, B01111111, // N&lt;br /&gt;
 4, 8, B00111110, B01000001, B01000001, B00111110, B00000000, // O&lt;br /&gt;
 4, 8, B01111111, B00001001, B00001001, B00000110, B00000000, // P&lt;br /&gt;
 4, 8, B00111110, B01000001, B01000001, B10111110, B00000000, // Q&lt;br /&gt;
 4, 8, B01111111, B00001001, B00001001, B01110110, B00000000, // R&lt;br /&gt;
 4, 8, B01000110, B01001001, B01001001, B00110010, B00000000, // S&lt;br /&gt;
 5, 8, B00000001, B00000001, B01111111, B00000001, B00000001, // T&lt;br /&gt;
 4, 8, B00111111, B01000000, B01000000, B00111111, B00000000, // U&lt;br /&gt;
 5, 8, B00001111, B00110000, B01000000, B00110000, B00001111, // V&lt;br /&gt;
 5, 8, B00111111, B01000000, B00111000, B01000000, B00111111, // W&lt;br /&gt;
 5, 8, B01100011, B00010100, B00001000, B00010100, B01100011, // X&lt;br /&gt;
 5, 8, B00000111, B00001000, B01110000, B00001000, B00000111, // Y&lt;br /&gt;
 4, 8, B01100001, B01010001, B01001001, B01000111, B00000000, // Z&lt;br /&gt;
 2, 8, B01111111, B01000001, B00000000, B00000000, B00000000, // [&lt;br /&gt;
 4, 8, B00000001, B00000110, B00011000, B01100000, B00000000, // \ backslash&lt;br /&gt;
 2, 8, B01000001, B01111111, B00000000, B00000000, B00000000, // ]&lt;br /&gt;
 3, 8, B00000010, B00000001, B00000010, B00000000, B00000000, // hat&lt;br /&gt;
 4, 8, B01000000, B01000000, B01000000, B01000000, B00000000, // _&lt;br /&gt;
 2, 8, B00000001, B00000010, B00000000, B00000000, B00000000, // `&lt;br /&gt;
 4, 8, B00100000, B01010100, B01010100, B01111000, B00000000, // a&lt;br /&gt;
 4, 8, B01111111, B01000100, B01000100, B00111000, B00000000, // b&lt;br /&gt;
 4, 8, B00111000, B01000100, B01000100, B00101000, B00000000, // c&lt;br /&gt;
 4, 8, B00111000, B01000100, B01000100, B01111111, B00000000, // d&lt;br /&gt;
 4, 8, B00111000, B01010100, B01010100, B00011000, B00000000, // e&lt;br /&gt;
 3, 8, B00000100, B01111110, B00000101, B00000000, B00000000, // f&lt;br /&gt;
 4, 8, B10011000, B10100100, B10100100, B01111000, B00000000, // g&lt;br /&gt;
 4, 8, B01111111, B00000100, B00000100, B01111000, B00000000, // h&lt;br /&gt;
 3, 8, B01000100, B01111101, B01000000, B00000000, B00000000, // i&lt;br /&gt;
 4, 8, B01000000, B10000000, B10000100, B01111101, B00000000, // j&lt;br /&gt;
 4, 8, B01111111, B00010000, B00101000, B01000100, B00000000, // k&lt;br /&gt;
 3, 8, B01000001, B01111111, B01000000, B00000000, B00000000, // l&lt;br /&gt;
 5, 8, B01111100, B00000100, B01111100, B00000100, B01111000, // m&lt;br /&gt;
 4, 8, B01111100, B00000100, B00000100, B01111000, B00000000, // n&lt;br /&gt;
 4, 8, B00111000, B01000100, B01000100, B00111000, B00000000, // o&lt;br /&gt;
 4, 8, B11111100, B00100100, B00100100, B00011000, B00000000, // p&lt;br /&gt;
 4, 8, B00011000, B00100100, B00100100, B11111100, B00000000, // q&lt;br /&gt;
 4, 8, B01111100, B00001000, B00000100, B00000100, B00000000, // r&lt;br /&gt;
 4, 8, B01001000, B01010100, B01010100, B00100100, B00000000, // s&lt;br /&gt;
 3, 8, B00000100, B00111111, B01000100, B00000000, B00000000, // t&lt;br /&gt;
 4, 8, B00111100, B01000000, B01000000, B01111100, B00000000, // u&lt;br /&gt;
 5, 8, B00011100, B00100000, B01000000, B00100000, B00011100, // v&lt;br /&gt;
 5, 8, B00111100, B01000000, B00111100, B01000000, B00111100, // w&lt;br /&gt;
 5, 8, B01000100, B00101000, B00010000, B00101000, B01000100, // x&lt;br /&gt;
 4, 8, B10011100, B10100000, B10100000, B01111100, B00000000, // y&lt;br /&gt;
 3, 8, B01100100, B01010100, B01001100, B00000000, B00000000, // z&lt;br /&gt;
 3, 8, B00001000, B00110110, B01000001, B00000000, B00000000, // {&lt;br /&gt;
 1, 8, B01111111, B00000000, B00000000, B00000000, B00000000, // |&lt;br /&gt;
 3, 8, B01000001, B00110110, B00001000, B00000000, B00000000, // }&lt;br /&gt;
 4, 8, B00001000, B00000100, B00001000, B00000100, B00000000, // ~&lt;br /&gt;
 };&lt;br /&gt;
 &lt;br /&gt;
 const int PIN_DIN  = 12;&lt;br /&gt;
 const int PIN_CS   = 10;&lt;br /&gt;
 const int PIN_CLK  = 11;&lt;br /&gt;
 const int maxInUse =  2;&lt;br /&gt;
 &lt;br /&gt;
 MaxMatrix m(PIN_DIN, PIN_CS, PIN_CLK, maxInUse);&lt;br /&gt;
 &lt;br /&gt;
 byte buffer[10];&lt;br /&gt;
 char string1[] = &amp;quot;Hello, world!    &amp;quot;;&lt;br /&gt;
 &lt;br /&gt;
 void setup()&lt;br /&gt;
 {&lt;br /&gt;
    m.init();&lt;br /&gt;
    m.setIntensity(3);&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 void loop()&lt;br /&gt;
 {&lt;br /&gt;
    printStringWithShift(string1, 100);&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 void printCharWithShift(char c, int shift_speed)&lt;br /&gt;
 {&lt;br /&gt;
    if(c &amp;lt; 32)&lt;br /&gt;
    {&lt;br /&gt;
       return;&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
    c -= 32;&lt;br /&gt;
    memcpy_P(buffer, CH + 7*c, 7);&lt;br /&gt;
    m.writeSprite(32, 0, buffer);&lt;br /&gt;
    m.setColumn(32 + buffer[0], 0);&lt;br /&gt;
 &lt;br /&gt;
    for(int i = 0; i &amp;lt; buffer[0] + 1; i++)&lt;br /&gt;
    {&lt;br /&gt;
       delay(shift_speed);&lt;br /&gt;
       m.shiftLeft(false, false);&lt;br /&gt;
    }&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 void printStringWithShift(char* s, int shift_speed)&lt;br /&gt;
 {&lt;br /&gt;
    while(*s != 0)&lt;br /&gt;
    {&lt;br /&gt;
       printCharWithShift(*s, shift_speed);&lt;br /&gt;
       s++;&lt;br /&gt;
    }&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 void printString(char* s)&lt;br /&gt;
 {&lt;br /&gt;
    int col = 0;&lt;br /&gt;
    while(*s != 0)&lt;br /&gt;
    {&lt;br /&gt;
       if(*s &amp;lt; 32)&lt;br /&gt;
       {&lt;br /&gt;
          continue;&lt;br /&gt;
       }&lt;br /&gt;
       char c = *s - 32;&lt;br /&gt;
       memcpy_P(buffer, CH + 7*c, 7);&lt;br /&gt;
       m.writeSprite(col, 0, buffer);&lt;br /&gt;
       m.setColumn(col + buffer[0], 0);&lt;br /&gt;
       col += buffer[0] + 1;&lt;br /&gt;
       s++;&lt;br /&gt;
    }&lt;br /&gt;
 }&lt;br /&gt;
 &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
[[カテゴリ:Arduino]]&lt;/div&gt;</summary>
		<author><name>Wiki</name></author>
	</entry>
</feed>