hwthinker icon

psram check hardware info esp32

hwthinker | PRO | 11/24/22 09:18:39 AM UTC | 0 ⭐ | 1723 👁️ | Never ⏰ | []
Arduino |

780 B

|

None

|

0 👍

/

0 👎

void print_chip_info(void)
{
    Serial.print("Chip: ");
    Serial.println(ESP.getChipModel());
    Serial.print("ChipRevision: ");
    Serial.println(ESP.getChipRevision());
    Serial.print("Psram size: ");
    Serial.print(ESP.getPsramSize() / 1024);
    Serial.println("KB");
    Serial.print("Flash size: ");
    Serial.print(ESP.getFlashChipSize() / 1024);
    Serial.println("KB");
}
 
// the setup function runs once when you press reset or power the board
void setup() {
  Serial.begin(115200);
  Serial.println("Hello T-QT");
  //print_chip_info();
}
 
// the loop function runs over and over again forever
void loop() {
  Serial.println(" ");
  print_chip_info();
  delay(1500);                       // wait for a second                     // wait for a second
}

Comments