Skip to main content
Documentation v2.0
Block programming/docs/firmware-studio/blockly

Firmware Studio

Beta

Block programming

Creating source code with Blockly and keeping it in sync with the Arduino code.

On this page4 sections

Workspace

Blockly provides setup, loop, digital/analog I/O, variable, condition, timer, and library blocks.

Syncing blocks and source

  • Block changes generate Arduino source code.
  • Generated source code must be validated before compiling.
  • Manual changes in the generated code area may be overwritten.
  • Save a version before switching modes.

Setup and loop

Initialization blocks go in setup(), while repeating blocks go in loop(). Avoid putting long delays in the loop.

Library blocks

A custom library block must have function mappings, parameters, includes, and a test compile. A passing test status does not guarantee compatibility with every board.

Documentation feedback

Was this article helpful?

Documentation search

What do you want to learn?

Type at least two characters to search the documentation.
Code copied.