For students·
Across the top of every page you work on are four steps, in order: Pick, Plan, Build and Ship. Signed in, bench opens on Pick: your boards, the lessons for them, and what is running. Everything works without signing in; signing in keeps your work.
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.
The workbench·
A lesson and a program of your own open in the same workbench: the board's setup on the left, the blocks in the middle, and the board on the right, running the whole time.
Pick·
Open Pick and choose a board: one of your own, or one that runs in your browser. Open takes a Wi-Fi board to the workbench; a board that runs its own code.py carries on with its lesson or opens a free build.
Plan·
Say what the program should do, and what the board will do when it runs. Lock it in and run keeps your call before the board runs. After the run, say whether the board did what you called; if it did not, say what was different.
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.
The board beside the blocks·
The board on the right runs what you build. 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. The board in the browser is practice; 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 workbench. 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 beside Ship it 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 workbench, 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 Build, share and forget.