Sunday, December 20, 2020

ESP32: Get chip info

ESP_info.ino, to get chip info of ESP32.
#include <Esp.h>

void setup() {
  Serial.begin(115200);
  Serial.printf("\n\n---Start---\n");
  Serial.print("Chip Revision: ");
  Serial.print(ESP.getChipRevision());
  Serial.printf("\nCpuFreqMHz(): %lu", (unsigned long)ESP.getCpuFreqMHz());
  Serial.printf("\nSdkVersion: %s", ESP.getSdkVersion());
  Serial.printf("\nFlashChipSize: %lu", (unsigned long)ESP.getFlashChipSize());
}

void loop() {
  
}

Run on ESP32-DevKitC V4 with ESP32-WROVER-E module:


No comments:

Post a Comment