/* psram not working at the moment.
it's a wokwi problem...
*/
//#include "esp32-hal.h"
void setup() {
delay(500);
psramInit();
// put your setup code here, to run once:
Serial.begin(115200);
//Serial.println("Hello, ESP32!");
//Serial.printf("Total heap: %d \n", ESP.getHeapSize());
//Serial.printf("Free heap: %d \n", ESP.getFreeHeap());
Serial.println(psramFound());
Serial.print("Total PSRAM:");
Serial.println(ESP.getPsramSize());
Serial.print("Free PSRAM: ");
Serial.println(ESP.getFreePsram());
///Serial.println(psramInit());
//Serial.printf("Total PSRAM: %d \n", ESP.getPsramSize());
//Serial.printf("Free PSRAM: %d \n", ESP.getFreePsram());
/*
byte* psdRamBuffer = (byte*)ps_malloc(500000);
Serial.printf("Free PSRAM: %d \n", ESP.getFreePsram());
free(psdRamBuffer);
Serial.printf("Free PSRAM: %d \n", ESP.getFreePsram());
*/
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}