1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

(爆速で)Arduino IDE 2.0をそろそろ試してみたい人向け。ESP32環境構築してLチカする

Last updated at Posted at 2022-12-01

IDE2.0が公開されて3カ月経ちますね。今更だけど・普段はVScodeだけど本家IDE2.0が気になる。
そして、ESP32を使っている人は設定が毎度面倒で結局試していない・・・
そんな人向け爆速でESP32をLチカさせましょう。

※普段Arduino/ESP32等のハードを使用している人向けです。詳細な説明は省きます※

早速ダウンロード

win10の人はWin 10 and newer 64 bitsです。

ESP32環境構築①

File→Preferencesにてjsonを貼り付ける

image.png

https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

ESP32環境構築②

ボードマネージャーでESP32を検索してインストール
スクリーンショット 2022-12-01 120847.png

再起動しましょう

ボードの選択

ESP32 Dev Moduleとポートを選択する

Lチカさせる

コードを書いて、書き込み する

int led = 5;

void setup() {
  // put your setup code here, to run once:
  pinMode(led, OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  digitalWrite(led, HIGH);
  delay(500);
  digitalWrite(led, LOW);
  delay(500);
}

アノードカソード

いつも忘れるやつ。引用元
image.png

はい、完成!

(おまけ)ダークモード&入力補完を設定する

ダークモード:File→Preferences→Theme
意外とかっこいい・・・

入力補完:Editor Quick Suggestionsにチェック

1
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?