SamuKata
Pybricks
Pybricks

patreon


New chapters out now: Flow Control

In practice, robots rarely execute a long, fixed list of actions from start to finish. Robots often need to repeat some actions or decide to skip actions depending on what their sensors see. You control how the code execution flows from top to bottom with Flow blocks.

In addition to using the ready-made blocks, you can make your own blocks. This lets you combine multiple blocks to perform a useful task. You can then use your task multiple times in your program. This technique helps you organize your programs as they get bigger.

Sometimes it is useful to do two or more things at the same time, known as multitasking. For example, a truck plays a warning sound while driving backwards, and a robotic arm moves multiple joints at once for smoother motion.

New chapters out now: Flow Control New chapters out now: Flow Control New chapters out now: Flow Control

More Creators