Documentation / Shipping it

Live preview and Finalise

Your board shows the design as you draw it, over the same USB cable you flash with — and when you are happy with it, Finalise builds the real firmware and writes it to the board. No toolchain, nothing installed.

What the two of them do

Live preview puts the design on the glass while you work. Move a slider in the designer and the panel moves. Touch the panel and the design reacts, and what you see is exactly what Preview is doing in the browser — the same values, the same animations — mirrored onto the hardware. Nothing is compiled while you do it, so a change appears in well under a second.

Finalise is the other half. It takes the design you have been looking at, builds the real firmware for your board on our build server, and writes that to the board. What runs afterwards is a normal LCD Wizard export: your firmware, standing on its own, with no live preview and no computer attached.

So live preview is for getting it right, and Finalise is for keeping it.

What you need

Which boards

Live preview needs a small firmware of ours on the board, built for that exact board, and we only publish one once the board has a preset we have checked. Right now that is 87 boards: the Waveshare range and the Guition JC3248W535.

Two things worth saying plainly rather than letting you find out:

If your board is supported, the designer offers live preview on its own. If it is not, it says so rather than failing halfway.

Starting it

One popup does the whole thing, in four steps:

  1. Pick the port. The browser asks which serial port, and you choose your board.
  2. We check the board. If our preview firmware is already on it, it answers with its own board id and version. If nothing answers, we read the chip and flash size directly. If that does not match the board the design is for, you are told which board was found and which the design expects, and nothing is written.
  3. The firmware is written, if it needs to be. Only when it is missing or out of date, with progress in the same popup. A board that already has the current firmware skips this step entirely.
  4. It goes live. The popup shrinks to a small panel showing the board's name, any errors, and buttons for Finalise and Disconnect.

A board with current firmware goes from picking the port to a live panel in a couple of seconds. The first time on a new board takes as long as a flash does.

What it costs

A pass is for one board, not for the feature — a second board needs its own pass, or Pro. If you find yourself buying a second, Pro is cheaper.

Finalise and build credits

Finalise builds on our servers, and a build costs one build credit. Every account gets an allowance each month — Pro accounts more than free ones — and packs of 5 credits for £2.99 are there when the allowance runs out. Credits from a pack never expire.

A failed build is never charged. If the build does not finish you keep the credit, and you get the build log to read.

While it is live

The design is sent to the board as data, not as code, so there is no compiling between an edit and the panel. What the board draws is what Preview draws: values from your data sources, the formulas, the automations, screen changes, animations.

Touch goes the other way. Press a button on the panel and the designer reacts as though you had clicked it, which is the quickest way to find a target that is too small for a fingertip, or a tap area in the wrong place.

Rotation. Some boards turn the picture at run time and change instantly. Others need a different image for each rotation, so changing rotation writes a new one — a few seconds, with progress, and then it carries on.

Finalising

Press Finalise in the live panel and:

  1. the design goes to our build server and is compiled for your board, with the stage shown as it goes — dependencies, compiling, linking, the image;
  2. when it is done, the parts are written to the board over the same cable;
  3. the board restarts into your own firmware.

Saved Wi-Fi credentials and anything else the board has stored are kept. A build normally takes one to three minutes; the very first build for a board family can take longer, because its libraries are compiled once and then cached for everybody after that.

Finalise is also in the export dialog, for a board that live preview does not reach yet. It is the same build and the same flash.

When something goes wrong

Every error in the live panel re-runs the check it failed on when you press Try again, so a retry can never turn a true answer into a misleading one. There is also a "Tell us what broke" link in the panel, which sends us the board, the stage it failed at and the error — please use it. On a feature this new, one report with the board named is worth more than a dozen guesses at our end.

For anything about the first boot of an export rather than live preview, see flashing and configuration and troubleshooting.