forked from espressif/arduino-esp32
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:
committed by
GitHub
parent
e34e0b45de
commit
7e9d42da68
@ -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);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user