For students·
bench has two doors: Lessons and Studio, side by side in the bar at the top of every page. Both work without signing in.
Lessons·
Open the lessons and pick one. Lessons are grouped by board; the Circuit Playground Express comes first. The board on the right of a lesson is a real one running real CircuitPython in your browser: its lights, buttons, switch, speaker and sensors behave the way the board on your desk does.
A step·
Each step is one job.
- Read what the step asks.
- Build it in the blocks (or in the code, in a code lesson). The code the blocks write sits beside them.
- Say what will happen. Before your change runs, the lesson asks what the board will do. Write it down; this is the part that makes you think.
- Run it. The board runs your change, and the lesson checks what it really did.
- The step is done when the board does the thing. If it did something else, that is the interesting part: compare it with what you said, and go again.
Your real board·
When a lesson works in the browser, open your real board. Check my real board looks at the board you plugged in, and get code.py gives you the program to copy onto its CIRCUITPY drive.
Write your own·
Signed in, write a lesson of your own at the end of the lessons page starts a new lesson on any board. Fork on a lesson gives you your own copy to change. A lesson is a file you can download and share.
Studio·
Open the studio. Across the top are its four stations, in order: Pick, Build, Try and Ship, with Running and the stop button beside them.
Pick·
Pick the device the program is for, at the top of the workbench: one of your own devices, or a kind of device.
Build·
Drag a when block onto the bench (the thing the device watches for), then snap do blocks inside it (what it does). The CircuitPython it becomes is beside the blocks, and it changes as you build. Each block's settings are on the block: which sensor and the line it crosses, how often a schedule runs, the colour, how bright, which melody and how fast. A sensor program acts once each time the reading crosses the line, not on every check while it stays over it, the same way it runs once you ship it.
Try·
Go to Try and press run. Move the sensor slider, hold the button, or tap the screen, and watch what the device would do. Click a line number to stop there. Trying is a practice run; the device is the real test.
Ship·
Ship needs you signed in and a device of your own. Name the program, pick the device it runs on and what it listens to, and press ship it. It runs on bench's engine and keeps running after you close the studio. Save, off keeps it without turning it on. Running lists your programs, on or off, with load, turn off, share and forget. The number beside it is how many are on right now.
The stop button·
The stop button in the studio's bar halts the run. With a device picked under Ship, it also turns off every program of yours on that device and sends the device an emergency stop. On other pages, a Stop in the bar shows when you have a program running, and turns them all off.
Take the code·
When the blocks cannot say what you want, press take the code. The code becomes yours to edit, and your when and do blocks stop writing it. In their place, the left side shows your code as blocks, one block per line. Change a block and the code changes; type in the code and the blocks redraw. A line the blocks cannot draw yet shows as a grey block and stays exactly as you wrote it. Back to blocks returns to your when and do blocks, just as you left them.
Add a device·
Open devices and add a device. Pick what it is and give it a name. bench
shows you the lines the board needs once: they are the whole of settings.toml. Open the board's CIRCUITPY drive,
make settings.toml those lines, type your Wi-Fi name and password between the quotes, and save. The board restarts
and connects to bench. Until then the device shows as never seen. If you lose the lines before you save them, remove
the device and add it again; the name is free again once it is removed.
Sign in·
Press Sign in at the top right of any page and sign in with your student ID and PIN. Signing in lets you keep your work, share it, ship it to your own devices, and ask the partner. Signed in, your name at the top right opens your menu: your sign-in page (to sign out) and the sound your programs can make.
Share·
Share on a program or a piece of code gives you a six-letter code. A classmate types it into got a share code? (in the studio, or on programs) and gets their own copy. Shares close after a week.
Everything you have·
Programs is one place for all of it: every program you shipped, with its runs, and every piece of code you saved, each with open in the studio, share and forget.