Skip to main content

What happens to my CircuitBlocks program when the device resets?

Your program stays on the device and starts on its own after a reset.

A
Written by Albert Gajsak

When you create a program in CircuitBlocks and click Run, the code is sent via USB, saved to the device and begins executing immediately. If the device is reset by pressing the reset button or by turning it off and on again, your program starts again automatically. You don’t need to press Run in CircuitBlocks again.

Only one program at a time
The device keeps one program: the last one you ran from CircuitBlocks. When you run a new program, it replaces the old one on the device.

So how do I keep my work?
Your sketch is saved in your CircuitBlocks account. The device holds only the last program you ran. To go back to an earlier program, open it in your account and press Run again.

One thing this does change on the device.
To use CircuitBlocks at all, it writes a MicroPython image over the software your device shipped with. Because of that, the device’s own built-in features stay unavailable until you use Restore firmware at code.circuitmess.com to put them back. Until you do, the device runs your last CircuitBlocks program after a power cycle instead of its built-in features. This applies to every device CircuitBlocks supports, not just some of them.

Did this answer your question?