LoginSignup
2
0

More than 5 years have passed since last update.

Adafruit Itsy Bitsy 32u4 - 5V 16MHzでLチカ

Posted at

準備

Adafruit-Itsy-Bitsy-32u4-16MHz
・LED
・抵抗
・マイクロUSBケーブル

届きました。
002.png

Adafruit-Itsy-Bitsy-32u4-16MHz環境設定

公式HPからAdafruit AVR Boardsのボード設定取得を行います。

Step1.環境設定|追加のボードマネージャの URLに下記を追加
   https://adafruit.github.io/arduino-board-index/package_adafruit_index.json
Step2.ボードマネージャから下記をインストール
   Adafruit AVR Boards
Step3.ツール|ボードからAdafruit ItsyBitsy 32u4 5V 16MHzを選択
003.png

回路図

PIN13とLEDを接続します。
001.png

コード

LED点灯させるサンプルコードを使います

void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}

テスト

LEDが点灯すればOK

参考

組み込みエンジニアでなくても週末にArduinoを使って遊ぶ
itsy-bitsy-32u4/arduino-ide-setup

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0