void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
}
void loop() {
if (malloc(100) == 0) {
Serial.println("Memory allocation failed");
delay(1000);
}
delay(10); // this speeds up the simulation
}