STANNUM
Open the simulator

Tutorials / Getting started

Projects, files and examples

Where your work lives, how Save and Open work, files and folders in a project, the examples gallery and the keyboard shortcuts.

Where your work lives

Your work stays in your browser, not on the server. The lab saves a working copy on every change, so reloading the page, closing and reopening the browser brings back exactly what you had. Nothing about your project is stored on the server beyond what the simulation needs to run.

The cost of that is plain: clearing the browser's data, switching to another machine or using a private window loses what you did not download. Which is why Save does two things.

Save and Open

Project → Save project (Ctrl+S) asks for a name the first time, then:

Save as… keeps a copy under another name. To rename, double-click the name in the top bar.

Open project… lists what is saved in this browser; Open file… loads a .stannum.json from your computer.

Project → Open project… (Ctrl+O) shows the list, most recent first, with the number of parts and files of each; every row can be opened, copied, renamed or deleted. Open file… loads a downloaded .zip (older .stannum.json files still open too). Opening anything while there are unsaved changes asks first.

Files and folders

A project with folders. Each row has its own rename and delete actions.

A project is made of .cpp and .h files — nothing else is compiled. Use the small buttons in the Files panel:

Includes are resolved from the root of the project: from sketch.cpp you write #include "lib/sensors/light.h" with the full path; from a file inside a folder, a neighbor is just #include "light.h". A project can have up to 40 files, 100 KB each and 400 KB in total.

The examples gallery

Project → Open example…: ready-made projects, each with its circuit and its code.

Every example opens complete — parts, wires, code and libraries — and runs with one click. An opened example is a draft: it does not take the name of the project you had open, so the next Save asks for a name instead of overwriting your work. Most guides in this section are built on an example; the guide says which one.

Keyboard shortcuts

Tools → Keyboard shortcuts.

See also