0Pricing
Arduino & IoT Academy · レッスン

組み込み Blink サンプルを実行する

最初に動作するスケッチを開き、コンパイルしてアップロードします

「組み込み Blink サンプルを実行する」はCoddyKit上の無料Arduino & IoT Academyレッスンです。 これはレッスン4/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはArduino & IoT Academy学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 Arduino & IoT Academyコースには全4レッスンが含まれています。

このレッスンの一部はまだ翻訳されておらず、英語で表示されています。

The Hello World of Hardware

Every maker starts with Blink, the classic first sketch. It makes the onboard LED flash, proving your whole setup works. 💡

Open the Examples

The IDE ships with ready-made sketches under File then Examples. You do not even have to type anything yet.

Find Blink

Go to Examples, then Basics, then Blink. The IDE opens the complete code in a fresh window for you.

Look at setup

The setup block runs once at startup. Here it tells the built-in LED pin to act as an output.

void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
}

Look at loop

The loop block repeats forever. It turns the LED on, waits, turns it off, waits, then starts over.

void loop() {
  digitalWrite(LED_BUILTIN, HIGH);
  delay(1000);
  digitalWrite(LED_BUILTIN, LOW);
  delay(1000);
}

What HIGH Means

Writing HIGH sends voltage to the pin, lighting the LED. Writing LOW removes it, turning the LED off.

What delay Does

The delay call pauses the program for the given milliseconds. Here 1000 means a full one-second wait.

Compile It

Click Verify to compile Blink. A clean run with no red errors means the code is ready to upload.

Upload It

Press Upload to flash Blink onto the board. Watch the tiny lights flicker as the code transfers over USB.

Watch It Blink

The orange onboard LED now flashes on and off once per second. You just made hardware do your bidding. 🎉

Make It Yours

Change both delay numbers to 200 and upload again. The LED blinks faster, proving the code is truly under your control.

Quick Check

Let's check how to speed the blink up.

Recap

You opened Blink, read setup and loop, uploaded it, and tuned the delay. Your first smart device is alive. 🎉

よくある質問

「組み込み Blink サンプルを実行する」レッスンは無料ですか?

はい。「組み込み Blink サンプルを実行する」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、Arduino & IoT Academyコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 Arduino & IoT Academyコースには全4レッスンが含まれています。

「組み込み Blink サンプルを実行する」で何を学びますか?

最初に動作するスケッチを開き、コンパイルしてアップロードします ブラウザで直接実行するハンズオンコードでArduino & IoT Academyを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。

Arduino & IoT Academyを始めるのに経験は必要ですか?

事前経験は必要ありません。CoddyKitのArduino & IoT Academyは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン4/4です。

「組み込み Blink サンプルを実行する」レッスンにはどのくらい時間がかかりますか?

ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。

このArduino & IoT Academyレッスンでコードを書いて実行できますか?

はい。すべてのArduino & IoT Academyレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。

このコースのすべてのレッスン

  1. Arduino Uno の概要
  2. Arduino IDE のインストール
  3. ボードとポートを選んでアップロードする
  4. 組み込み Blink サンプルを実行する
← Arduino & IoT Academyに戻る