0
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 3 years have passed since last update.

ESP-wroom02備忘録

Last updated at Posted at 2021-06-26

グダグダ説明は無し

Arduino
Board Manager URL

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

選択ボード

Generic ESP8266 Module

配線

3V-----------3V3    GND-------GND
3V-----------EN    IO16
             IO14  TOUT
             IO12   RST -書き込み時GND後open
             IO13   IO5
GND----------IO15   GND
3V-----------IO2    TXD----Serial RXD
書き込み時GND- IO0    RXD----Serial TXD
             GND    IO4--[+ LED -] --GND

LEDチカチカコード

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

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

}

書き込み時、IO0をGNDに接続し、RSTをGNDにちょっと接続すると書き込みモード
=「UART Download Mode(書き込みモード)」

書き込みがおわったら、IO0をGNDから切り離し、RSTGNDにちょっと接続するとリセットがかかりコードが動作する(IO0をGNDから切り離しただけでも動作することあり)
=「Flash Boot Mode(実行モード)」

0
0
1

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