<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cratech</author_name>
  <author_url>https://blog.hatena.ne.jp/cratech/</author_url>
  <blog_title>くらてち日記</blog_title>
  <blog_url>https://cratech.hatenablog.jp/</blog_url>
  <categories>
    <anon>技術</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>前回の「アップロードの仕組み」に続き、今回はプログラムの中身のお話です。 前回はこちら cratech.hatenablog.jp C言語やC++の教科書を読むと、最初の方に必ずこう書いてあります。 「プログラムは main 関数から始まり、main 関数で終わる」 しかし、Arduinoのスケッチ（プログラム）を見てみましょう。あるのは setup() と loop() だけ。 C言語のルールに従えば、これはコンパイルエラーになるはずです。 なぜArduinoはエラーにならずに動くのでしょうか？ 実は、私たちの目に見えない裏側に、本当のmain関数が隠されているからです。 今回は、Ardui…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcratech.hatenablog.jp%2Fentry%2F2025%2F12%2F26%2F233648&quot; title=&quot;【Arduinoの裏側②】void loop() の外側、隠された main 関数 - くらてち日記&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/c/cratech/20251226/20251226233149.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-12-26 23:36:48</published>
  <title>【Arduinoの裏側②】void loop() の外側、隠された main 関数</title>
  <type>rich</type>
  <url>https://cratech.hatenablog.jp/entry/2025/12/26/233648</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
