// void setup() {
// // put your setup code here, to run once:
// Serial.begin(115200);
// Serial.println("Hello, ESP32!");
// }
// void loop() {
// // put your main code here, to run repeatedly:
// delay(10); // this speeds up the simulation
// }
void setup()
{
// Set the pins as outputs
pinMode(4, OUTPUT);
}
long ms4 = 1000;
long Old_Time = 0;
bool status = false;
long aa=0;
void loop()
{
// status (4)
if (millis() - Old_Time > ms4)
{
digitalWrite(4, status);
status = !status;
Old_Time = millis();
aa++;
}
Serial.print("MAMon"+aa);
}