SIMULATE · CODE RUNNER
Write it. Run it. See what burns.
This is a small Arduino-style JavaScript sandbox, not the final C++ compiler. It runs in a Worker with a virtual Nano, ESP32, or Pico, so a loop cannot freeze the page. The API is symbolic: LED, BUTTON, POT, SERVO, MOTOR_PWM, TRIG, ECHO, SDA, SCL, INPUT_ONLY, and FIVE_V_SENSOR.
Supported: pinMode(pin, mode), digitalWrite, analogWrite, analogRead, digitalRead, delay(ms), Serial.println, servoWrite(angle), motor(percent), readDistance(). Constants HIGH, LOW, INPUT, OUTPUT, INPUT_PULLUP are provided. Loops and variables are ordinary JavaScript.
What “DESTROYED” means: the virtual board found a physical fault path. The message names the pin and the likely damage. A real board does not recover from 5 V on a 3.3 V GPIO or a 1.5 A motor on a 20 mA pin.