ESP.getChipModel() and ESP.getChipCores() (#3847)

* ESP.getChipModel() returns model of the chip

* ESP.getChipCores() returns the core count.

* Example gives chip model, revision and core count.

* Read efuse for chipmodel

Co-authored-by: Martijn Scheepers <ms@SDNengineering.nl>
This commit is contained in:
Martijn Scheepers
2020-09-30 13:57:36 +02:00
committed by GitHub
parent e34e0b45de
commit 7e9d42da68
3 changed files with 32 additions and 0 deletions

View File

@ -9,6 +9,9 @@ void loop() {
Serial.printf("ESP32 Chip ID = %04X",(uint16_t)(chipid>>32));//print High 2 bytes
Serial.printf("%08X\n",(uint32_t)chipid);//print Low 4bytes.
Serial.printf("ESP32 Chip model = %s Rev %d\n", ESP.getChipModel(), ESP.getChipRevision());
Serial.printf("This chip has %d cores\n", ESP.getChipCores());
delay(3000);
}