Loading the figure…
Stopped · Your code isn't running yet. Until you press Run, the board runs the program already on it.
Nothing printed yet. Press Run.
Not checked yet
Run your code to check it. The checks replay a fixed script on a virtual clock, so the same code always gets the same result.
Each fault really happens in the simulation. Trigger one, watch the figure, then read why.
Play the world: press, slide and turn the parts while the code runs.
Change a value here or click a chip in the code.
Count presses of A with was_pressed(), and hold B to light the LED on pin 1.
| Pin | Connects to | What it does |
|---|---|---|
P5 | Button A on the board | Reads LOW when pressed |
P11 | Button B on the board | Reads LOW when pressed |
P1 | LED long leg, through 470 Ω | On while B is held |
GND | LED short leg | Ground |
Sensors and actuators this board drives, with the real connections.
Clip ring 1 to the LED's long leg through a 470 Ω resistor and the short leg to GND: about 3 mA.
| Part pin | Board pin |
|---|---|
| A | P1Wire colour yellow |
| K | GNDWire colour black |
A V2 pin gives only 1 to 4 mA. Never connect an LED without a resistor.