Run the simulation
tinkercad_simulateRuns a Tinkercad Circuits simulation, applies button presses and serial input, and samples LED brightness, servo angles, and simulator time. Returns the samples and Serial Monitor output.
Instructions
Starts the simulator, optionally presses buttons and types into the Serial Monitor, and samples LED brightness, servo angles and simulator time at the given moments (milliseconds after start). Returns the samples and the end of the Serial Monitor text. The simulator usually runs a bit slower than real time, so leave some margin and check sim_time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| leds | No | refs of LEDs to read | |
| serial | No | return the Serial Monitor text | |
| servos | No | refs of servos to read | |
| presses | No | ||
| samples_ms | Yes | ||
| keep_running | No | ||
| serial_input | No | ||
| wait_for_serial | No | start the timeline only after this text is printed (e.g. READY) |