// ESP32 with custom flash size
//
// Check out "flashSize" attr in diagram.json
void setup() {
Serial.begin(115200);
printf("Flash size: %d bytes\n", spi_flash_get_chip_size());
printf("Total heap: %u", ESP.getHeapSize());
printf("Free heap: %u", ESP.getFreeHeap());
printf("Total PSRAM: %u", ESP.getPsramSize());
printf("Free PSRAM: %d", ESP.getFreePsram());
}
void loop() {
delay(10);
}