Install arduino-esp32 2.0.0:
- In Arduino IDE Menu, click File > Preferences
- Add the link (https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json) to Additional Boards Manager URLs box.
Add ESP32 boards:
- Open Boards Manager
- Search and install esp32 by Espressif system, currently version 2.0.0.
ESP32C3 and ESP32S2 Dev Module are now available in ESP32 Arduino board
list.
#include <Esp.h>
void setup() {
delay(500);
Serial.begin(115200);
delay(500);
Serial.println("\n\n================================");
Serial.printf("Chip Model: %s\n", ESP.getChipModel());
Serial.printf("Chip Revision: %d\n", ESP.getChipRevision());
Serial.printf("with %d core\n", ESP.getChipCores());
Serial.printf("Flash Chip Size : %d \n", ESP.getFlashChipSize());
Serial.printf("Flash Chip Speed : %d \n", ESP.getFlashChipSpeed());
esp_chip_info_t chip_info;
esp_chip_info(&chip_info);
Serial.printf("\nFeatures included:\n %s\n %s\n %s\n %s\n %s\n",
(chip_info.features & CHIP_FEATURE_EMB_FLASH) ? "embedded flash" : "",
(chip_info.features & CHIP_FEATURE_WIFI_BGN) ? "2.4GHz WiFi" : "",
(chip_info.features & CHIP_FEATURE_BLE) ? "Bluetooth LE" : "",
(chip_info.features & CHIP_FEATURE_BT) ? "Bluetooth Classic" : "",
(chip_info.features & CHIP_FEATURE_IEEE802154) ? "IEEE 802.15.4" : "");
Serial.println();
Serial.println();
Serial.println("\n- end of setup() -");
}
void loop() {
// put your main code here, to run repeatedly:
}
Updated@2022-02-19:
Currently, ESP32 Arduino 2.0.2 is stable. So you can enter Stable
release link (https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json) into Additional Board Manager URLs field, instead of Development
release link (https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json).
~ check the official installing guide: https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html
ref:
~ ESP32 Arduino Core’s documentation
more exercise for arduino-esp32:
~ Drive ESP32-C3-DevKitM-1/ESP32-S2-Saola-1 on-board RGB LED (WS2812) in Arduino Framework, with Freenove WS2812 Lib for ESP32.
~ list the pre-defined function pins of ESP32C3/S2 Dev Module, and locate pins_arduino.h where it defined.
~ drive SSD1306 I2C OLED with ESP32/C3/S2 using esp8266-oled-ssd1306 library.
~ CameraWebServer examples, run on ESP32-S2-Saola-1 with ov2640
~ ESP32-C3 to display on ST7735 and ST7789 SPI LCDs
~ get MAC address in String form, tested on ESP32-DevKitC
~ ESP32 + DHT11 temperature & humidity sensor with display on ST7789 and BLE function
~ arduino-esp32 (ESP32-C3) scan i2c device address, using custom SDA and SCL
~ Drive ESP32-C3-DevKitM-1/ESP32-S2-Saola-1 on-board RGB LED (WS2812) in Arduino Framework, with Freenove WS2812 Lib for ESP32.
~ list the pre-defined function pins of ESP32C3/S2 Dev Module, and locate pins_arduino.h where it defined.
~ drive SSD1306 I2C OLED with ESP32/C3/S2 using esp8266-oled-ssd1306 library.
~ CameraWebServer examples, run on ESP32-S2-Saola-1 with ov2640
~ ESP32-C3 to display on ST7735 and ST7789 SPI LCDs
~ get MAC address in String form, tested on ESP32-DevKitC
~ ESP32 + DHT11 temperature & humidity sensor with display on ST7789 and BLE function
~ arduino-esp32 (ESP32-C3) scan i2c device address, using custom SDA and SCL
Updated@2022-05-12
With arduino-esp32 updated 2.0.3, ESP32-S3 support added.
~ ESP32 Arduino 2.0.3 release notice
What are Arduino Tools > Board settings for ESP32-S2-Saola-1M (WROOM)?
ReplyDelete