<!DOCTYPE html> <html class="writer-html5" lang="ja" > <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Tutorial — IoT Programming ドキュメント</title><link rel="stylesheet" href="_static/css/theme.css" type="text/css" /> <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> <link rel="stylesheet" href="_static/copybutton.css" type="text/css" /> <link rel="stylesheet" href="_static/custom.css" type="text/css" /> <!--[if lt IE 9]> <script src="_static/js/html5shiv.min.js"></script> <![endif]--> <script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script> <script src="_static/jquery.js"></script> <script src="_static/underscore.js"></script> <script src="_static/doctools.js"></script> <script src="_static/clipboard.min.js"></script> <script src="_static/copybutton.js"></script> <script src="_static/translations.js"></script> <script src="_static/js/theme.js"></script> <link rel="index" title="索引" href="genindex.html" /> <link rel="search" title="検索" href="search.html" /> </head> <body class="wy-body-for-nav"> <div class="wy-grid-for-nav"> <nav data-toggle="wy-nav-shift" class="wy-nav-side"> <div class="wy-side-scroll"> <div class="wy-side-nav-search" > <a href="index.html" class="icon icon-home"> IoT Programming </a> <div role="search"> <form id="rtd-search-form" class="wy-form" action="search.html" method="get"> <input type="text" name="q" placeholder="Search docs" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu"> <p class="caption"><span class="caption-text">Contents:</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="intro.html">実験の目的</a></li> <li class="toctree-l1"><a class="reference internal" href="intro.html#id2">実験のすすめかた</a></li> <li class="toctree-l1"><a class="reference internal" href="intro.html#url">参考URL</a></li> <li class="toctree-l1"><a class="reference internal" href="pre.html">事前準備 (2022年度:arduino-cli + VSCode)</a></li> <li class="toctree-l1"><a class="reference internal" href="pre2.html">事前準備 (2021年度:Arduino IDE)</a></li> <li class="toctree-l1"><a class="reference internal" href="week1.html">1週目</a></li> <li class="toctree-l1"><a class="reference internal" href="week2.html">2週目</a></li> <li class="toctree-l1"><a class="reference internal" href="faq.html">Frequently-Asked Questions (FAQ: よくある質問)</a></li> <li class="toctree-l1"><a class="reference internal" href="appendix.html">付録</a></li> </ul> </div> </div> </nav> <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" > <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="index.html">IoT Programming</a> </nav> <div class="wy-nav-content"> <div class="rst-content"> <div role="navigation" aria-label="Page navigation"> <ul class="wy-breadcrumbs"> <li><a href="index.html" class="icon icon-home"></a> »</li> <li>Tutorial</li> <li class="wy-breadcrumbs-aside"> <a href="_sources/tutorial.rst.txt" rel="nofollow"> View page source</a> </li> </ul> <hr/> </div> <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> <div itemprop="articleBody"> <div class="section" id="tutorial"> <h1>Tutorial<a class="headerlink" href="#tutorial" title="このヘッドラインへのパーマリンク"></a></h1> <p>ここはチュートリアルです。ほげほげほげ。自動コンパイルテスト。さらにテスト。</p> <img alt="_images/ipconfig.png" src="_images/ipconfig.png" /> <div class="figure align-default" id="f-ipconfig"> <span id="fig-ipconfig"></span><a class="reference internal image-reference" href="_images/ipconfig.png"><img alt="This is ipconfig img" src="_images/ipconfig.png" style="width: 560.0px; height: 198.5px;" /></a> <p class="caption"><span class="caption-text">ipconfigによるIPアドレスの表示 (クリックすると拡大します)</span><a class="headerlink" href="#f-ipconfig" title="この画像へのパーマリンク"></a></p> </div> <p><a class="reference external" href="https://ss.istlab.info/">https://ss.istlab.info/</a> が、講義システムになります。</p> <p><a class="reference internal" href="#fig-ipconfig"><span class="std std-ref">ipconfigによるIPアドレスの表示 (クリックすると拡大します)</span></a> に、ipconfigによるIPアドレスの表示を示します。</p> <div class="admonition note"> <p class="admonition-title">注釈</p> <p>図への参照は、同一ファイル内からしかできない??</p> </div> <p>図表番号は、<code class="docutils literal notranslate"><span class="pre">pip3</span> <span class="pre">install</span> <span class="pre">sphinx-numfig</span></code> をすれば、つくようです。</p> <p>図表番号を参照するときは、<code class="xref std std-numref docutils literal notranslate"><span class="pre">f_ipconfig</span></code> のように、numref をつかいます。参考サイト:<a class="reference external" href="https://sphinx-users.jp/reverse-dict/images/numbering.html">https://sphinx-users.jp/reverse-dict/images/numbering.html</a></p> <p><code class="xref std std-numref docutils literal notranslate"><span class="pre">fig_ipconfig</span></code> だと、番号がつく? →結果として、ついた。</p> <p><code class="xref std std-numref docutils literal notranslate"><span class="pre">fig_ipconfig</span></code> <a class="reference internal" href="#fig-ipconfig"><span class="std std-ref">ipconfigによるIPアドレスの表示 (クリックすると拡大します)</span></a> のようにすれば、番号とキャプションが両方はいります。</p> <div class="section" id="the-restructuredtext-cheat-sheet-syntax-reminders"> <h2>The <a class="reference external" href="http://docutils.sf.net/rst.html">reStructuredText</a> Cheat Sheet: Syntax Reminders<a class="headerlink" href="#the-restructuredtext-cheat-sheet-syntax-reminders" title="このヘッドラインへのパーマリンク"></a></h2> <dl class="field-list simple"> <dt class="field-odd">Info</dt> <dd class="field-odd"><p>See <<a class="reference external" href="http://docutils.sf.net/rst.html">http://docutils.sf.net/rst.html</a>> for introductory docs.</p> </dd> <dt class="field-even">Author</dt> <dd class="field-even"><p>David Goodger <<a class="reference external" href="mailto:goodger%40python.org">goodger<span>@</span>python<span>.</span>org</a>></p> </dd> <dt class="field-odd">Date</dt> <dd class="field-odd"><p>$Date: 2013-02-20 02:10:53 +0100 (Mi, 20. Feb 2013) $</p> </dd> <dt class="field-even">Revision</dt> <dd class="field-even"><p>$Revision: 7612 $</p> </dd> <dt class="field-odd">Description</dt> <dd class="field-odd"><p>This is a "docinfo block", or bibliographic field list</p> </dd> </dl> <div class="admonition note"> <p class="admonition-title">注釈</p> <p>If you are reading this as HTML, please read <a class="reference external" href="cheatsheet.txt">cheatsheet.txt</a> instead to see the input syntax examples!</p> </div> </div> </div> <div class="section" id="section-structure"> <h1>Section Structure<a class="headerlink" href="#section-structure" title="このヘッドラインへのパーマリンク"></a></h1> <p>Section titles are underlined or overlined & underlined.</p> </div> <div class="section" id="body-elements"> <h1>Body Elements<a class="headerlink" href="#body-elements" title="このヘッドラインへのパーマリンク"></a></h1> <p>Grid table:</p> <table class="docutils align-default"> <colgroup> <col style="width: 48%" /> <col style="width: 52%" /> </colgroup> <tbody> <tr class="row-odd"><td><p>Paragraphs are flush-left, separated by blank lines.</p> <blockquote> <div><p>Block quotes are indented.</p> </div></blockquote> </td> <td rowspan="2"><p>Literal block, preceded by "::":</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">Indented</span> </pre></div> </div> <p>or:</p> <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">></span> <span class="n">Quoted</span> </pre></div> </div> </td> </tr> <tr class="row-even"><td><div class="doctest highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="nb">print</span> <span class="s1">'Doctest block'</span> <span class="go">Doctest block</span> </pre></div> </div> </td> </tr> <tr class="row-odd"><td colspan="2"><div class="line-block"> <div class="line">Line blocks preserve line breaks & indents. [new in 0.3.6]</div> <div class="line-block"> <div class="line">Useful for addresses, verse, and adornment-free lists; long lines can be wrapped with continuation lines.</div> </div> </div> </td> </tr> </tbody> </table> <p>Simple tables:</p> <table class="docutils align-default"> <colgroup> <col style="width: 21%" /> <col style="width: 79%" /> </colgroup> <thead> <tr class="row-odd"><th class="head"><p>List Type</p></th> <th class="head"><p>Examples (syntax in the <a class="reference external" href="cheatsheet.txt">text source</a>)</p></th> </tr> </thead> <tbody> <tr class="row-even"><td><p>Bullet list</p></td> <td><ul class="simple"> <li><p>items begin with "-", "+", or "*"</p></li> </ul> </td> </tr> <tr class="row-odd"><td><p>Enumerated list</p></td> <td><ol class="arabic simple"> <li><p>items use any variation of "1.", "A)", and "(i)"</p></li> <li><p>also auto-enumerated</p></li> </ol> </td> </tr> <tr class="row-even"><td><p>Definition list</p></td> <td><dl class="simple"> <dt>Term is flush-left<span class="classifier">optional classifier</span></dt><dd><p>Definition is indented, no blank line between</p> </dd> </dl> </td> </tr> <tr class="row-odd"><td><p>Field list</p></td> <td><dl class="field-list simple"> <dt class="field-odd">field name</dt> <dd class="field-odd"><p>field body</p> </dd> </dl> </td> </tr> <tr class="row-even"><td><p>Option list</p></td> <td><dl class="option-list"> <dt><kbd><span class="option">-o</span></kbd></dt> <dd><p>at least 2 spaces between option & description</p> </dd> </dl> </td> </tr> </tbody> </table> <table class="docutils align-default"> <colgroup> <col style="width: 21%" /> <col style="width: 79%" /> </colgroup> <thead> <tr class="row-odd"><th class="head"><p>Explicit Markup</p></th> <th class="head"><p>Examples (visible in the <a class="reference external" href="cheatsheet.txt">text source</a>)</p></th> </tr> </thead> <tbody> <tr class="row-even"><td><p>Footnote</p></td> <td><dl class="footnote brackets"> <dt class="label" id="id1"><span class="brackets"><a class="fn-backref" href="#id3">1</a></span></dt> <dd><p>Manually numbered or [#] auto-numbered (even [#labelled]) or [*] auto-symbol</p> </dd> </dl> </td> </tr> <tr class="row-odd"><td><p>Citation</p></td> <td><dl class="citation"> <dt class="label" id="cit2002"><span class="brackets"><a class="fn-backref" href="#id4">CIT2002</a></span></dt> <dd><p>A citation.</p> </dd> </dl> </td> </tr> <tr class="row-even"><td><p>Hyperlink Target</p></td> <td></td> </tr> <tr class="row-odd" id="internal-target"><td><p>Anonymous Target</p></td> <td></td> </tr> <tr class="row-even"><td><p>Directive ("::")</p></td> <td><img alt="_images/biohazard.png" src="_images/biohazard.png" /> </td> </tr> <tr class="row-odd"><td><p>Substitution Def</p></td> <td></td> </tr> <tr class="row-even"><td><p>Comment</p></td> <td></td> </tr> <tr class="row-odd"><td><p>Empty Comment</p></td> <td><p>(".." on a line by itself, with blank lines before & after, used to separate indentation contexts)</p></td> </tr> </tbody> </table> </div> <div class="section" id="inline-markup"> <h1>Inline Markup<a class="headerlink" href="#inline-markup" title="このヘッドラインへのパーマリンク"></a></h1> <p><em>emphasis</em>; <strong>strong emphasis</strong>; <cite>interpreted text</cite>; <em>interpreted text with role</em>; <code class="docutils literal notranslate"><span class="pre">inline</span> <span class="pre">literal</span> <span class="pre">text</span></code>; standalone hyperlink, <a class="reference external" href="http://docutils.sourceforge.net">http://docutils.sourceforge.net</a>; named reference, <a class="reference external" href="http://docutils.sf.net/rst.html">reStructuredText</a>; <a class="reference external" href="http://docutils.sf.net/docs/ref/rst/restructuredtext.html">anonymous reference</a>; footnote reference, <a class="footnote-reference brackets" href="#id1" id="id3">1</a>; citation reference, <a class="reference internal" href="#cit2002" id="id4"><span>[CIT2002]</span></a>; like an inline directive; <span class="target" id="inline-internal-target">inline internal target</span>.</p> </div> <div class="section" id="directive-quick-reference"> <h1>Directive Quick Reference<a class="headerlink" href="#directive-quick-reference" title="このヘッドラインへのパーマリンク"></a></h1> <p>See <<a class="reference external" href="http://docutils.sf.net/docs/ref/rst/directives.html">http://docutils.sf.net/docs/ref/rst/directives.html</a>> for full info.</p> <table class="docutils align-default"> <colgroup> <col style="width: 21%" /> <col style="width: 79%" /> </colgroup> <thead> <tr class="row-odd"><th class="head"><p>Directive Name</p></th> <th class="head"><p>Description (Docutils version added to, in [brackets])</p></th> </tr> </thead> <tbody> <tr class="row-even"><td><p>attention</p></td> <td><p>Specific admonition; also "caution", "danger", "error", "hint", "important", "note", "tip", "warning"</p></td> </tr> <tr class="row-odd"><td><p>admonition</p></td> <td><p>Generic titled admonition: <code class="docutils literal notranslate"><span class="pre">..</span> <span class="pre">admonition::</span> <span class="pre">By</span> <span class="pre">The</span> <span class="pre">Way</span></code></p></td> </tr> <tr class="row-even"><td><p>image</p></td> <td><p><code class="docutils literal notranslate"><span class="pre">..</span> <span class="pre">image::</span> <span class="pre">picture.png</span></code>; many options possible</p></td> </tr> <tr class="row-odd"><td><p>figure</p></td> <td><p>Like "image", but with optional caption and legend</p></td> </tr> <tr class="row-even"><td><p>topic</p></td> <td><p><code class="docutils literal notranslate"><span class="pre">..</span> <span class="pre">topic::</span> <span class="pre">Title</span></code>; like a mini section</p></td> </tr> <tr class="row-odd"><td><p>sidebar</p></td> <td><p><code class="docutils literal notranslate"><span class="pre">..</span> <span class="pre">sidebar::</span> <span class="pre">Title</span></code>; like a mini parallel document</p></td> </tr> <tr class="row-even"><td><p>parsed-literal</p></td> <td><p>A literal block with parsed inline markup</p></td> </tr> <tr class="row-odd"><td><p>rubric</p></td> <td><p><code class="docutils literal notranslate"><span class="pre">..</span> <span class="pre">rubric::</span> <span class="pre">Informal</span> <span class="pre">Heading</span></code></p></td> </tr> <tr class="row-even"><td><p>epigraph</p></td> <td><p>Block quote with class="epigraph"</p></td> </tr> <tr class="row-odd"><td><p>highlights</p></td> <td><p>Block quote with class="highlights"</p></td> </tr> <tr class="row-even"><td><p>pull-quote</p></td> <td><p>Block quote with class="pull-quote"</p></td> </tr> <tr class="row-odd"><td><p>compound</p></td> <td><p>Compound paragraphs [0.3.6]</p></td> </tr> <tr class="row-even"><td><p>container</p></td> <td><p>Generic block-level container element [0.3.10]</p></td> </tr> <tr class="row-odd"><td><p>table</p></td> <td><p>Create a titled table [0.3.1]</p></td> </tr> <tr class="row-even"><td><p>list-table</p></td> <td><p>Create a table from a uniform two-level bullet list [0.3.8]</p></td> </tr> <tr class="row-odd"><td><p>csv-table</p></td> <td><p>Create a table from CSV data [0.3.4]</p></td> </tr> <tr class="row-even"><td><p>contents</p></td> <td><p>Generate a table of contents</p></td> </tr> <tr class="row-odd"><td><p>sectnum</p></td> <td><p>Automatically number sections, subsections, etc.</p></td> </tr> <tr class="row-even"><td><p>header, footer</p></td> <td><p>Create document decorations [0.3.8]</p></td> </tr> <tr class="row-odd"><td><p>target-notes</p></td> <td><p>Create an explicit footnote for each external target</p></td> </tr> <tr class="row-even"><td><p>math</p></td> <td><p>Mathematical notation (input in LaTeX format)</p></td> </tr> <tr class="row-odd"><td><p>meta</p></td> <td><p>HTML-specific metadata</p></td> </tr> <tr class="row-even"><td><p>include</p></td> <td><p>Read an external reST file as if it were inline</p></td> </tr> <tr class="row-odd"><td><p>raw</p></td> <td><p>Non-reST data passed untouched to the Writer</p></td> </tr> <tr class="row-even"><td><p>replace</p></td> <td><p>Replacement text for substitution definitions</p></td> </tr> <tr class="row-odd"><td><p>unicode</p></td> <td><p>Unicode character code conversion for substitution defs</p></td> </tr> <tr class="row-even"><td><p>date</p></td> <td><p>Generates today's date; for substitution defs</p></td> </tr> <tr class="row-odd"><td><p>class</p></td> <td><p>Set a "class" attribute on the next element</p></td> </tr> <tr class="row-even"><td><p>role</p></td> <td><p>Create a custom interpreted text role [0.3.2]</p></td> </tr> <tr class="row-odd"><td><p>default-role</p></td> <td><p>Set the default interpreted text role [0.3.10]</p></td> </tr> <tr class="row-even"><td><p>title</p></td> <td><p>Set the metadata document title [0.3.10]</p></td> </tr> </tbody> </table> </div> <div class="section" id="interpreted-text-role-quick-reference"> <h1>Interpreted Text Role Quick Reference<a class="headerlink" href="#interpreted-text-role-quick-reference" title="このヘッドラインへのパーマリンク"></a></h1> <p>See <<a class="reference external" href="http://docutils.sf.net/docs/ref/rst/roles.html">http://docutils.sf.net/docs/ref/rst/roles.html</a>> for full info.</p> <table class="docutils align-default"> <colgroup> <col style="width: 21%" /> <col style="width: 79%" /> </colgroup> <thead> <tr class="row-odd"><th class="head"><p>Role Name</p></th> <th class="head"><p>Description</p></th> </tr> </thead> <tbody> <tr class="row-even"><td><p>emphasis</p></td> <td><p>Equivalent to <em>emphasis</em></p></td> </tr> <tr class="row-odd"><td><p>literal</p></td> <td><p>Equivalent to <code class="docutils literal notranslate"><span class="pre">literal</span></code> but processes backslash escapes</p></td> </tr> <tr class="row-even"><td><p>math</p></td> <td><p>Mathematical notation (input in LaTeX format)</p></td> </tr> <tr class="row-odd"><td><p>PEP</p></td> <td><p>Reference to a numbered Python Enhancement Proposal</p></td> </tr> <tr class="row-even"><td><p>RFC</p></td> <td><p>Reference to a numbered Internet Request For Comments</p></td> </tr> <tr class="row-odd"><td><p>raw</p></td> <td><p>For non-reST data; cannot be used directly (see docs) [0.3.6]</p></td> </tr> <tr class="row-even"><td><p>strong</p></td> <td><p>Equivalent to <strong>strong</strong></p></td> </tr> <tr class="row-odd"><td><p>sub</p></td> <td><p>Subscript</p></td> </tr> <tr class="row-even"><td><p>sup</p></td> <td><p>Superscript</p></td> </tr> <tr class="row-odd"><td><p>title</p></td> <td><p>Title reference (book, etc.); standard default role</p></td> </tr> </tbody> </table> </div> </div> </div> <footer> <hr/> <div role="contentinfo"> <p>© Copyright 2021-2022, Motoki Miura.</p> </div> Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. </footer> </div> </div> </section> </div> <script> jQuery(function () { SphinxRtdTheme.Navigation.enable(true); }); </script> </body> </html>