1. Explore the controls
Change the inputs and observe the model's response.
Predict the cycles per second of a repeated LED on/off program.
Change the inputs and observe the model's response.
digitalWrite(LED, HIGH); delay(on);
digitalWrite(LED, LOW); delay(off);Adjust the controls to obtain the following outputs. Multiple valid solutions may exist.
One cycle includes both delays; duty is ON divided by total.
Simplified educational model. No real hardware is controlled. Code examples are illustrative and not executed as arbitrary programs.