Block sections
There are a total of nine sections in CircuitBlocks. We've organized them so that you'll be able to find everything in maximum two clicks.
Sections themselves are pretty explanatory but we'll go through them all just so you can get a little bit better understanding of the whole concept.
Some of the sections also have additional blocks (in the 'More' menu) where you'll be able to find some of the functions that are not used that often, but can still be useful.
Logic
This is where the base of every code is located.
Every if, if-else, else function, as well as comparisons, and/or, not, true/false and other logical operators.
![random image](https://api.circuitmess.com/1586445966147-Logic.png)
They can either have conditionals, and repeat for as long as that condition is met, or they can have a pre-determined amount of repeats.
![random image](https://api.circuitmess.com/1586446048434-Loops.png)
![random image](https://api.circuitmess.com/1586445966147-Logic.png)
Loops
Loops are functions that repeat everything inside for a specific amount of time.
They can either have conditionals, and repeat for as long as that condition is met, or they can have a pre-determined amount of repeats.
![random image](https://api.circuitmess.com/1586446048434-Loops.png)
Math
Pretty much every math function is located here. From basic operations to rounding numbers and working with angles, you will easily trigger your inner Einstein or Pythagora in a matter of seconds!
![random image](https://api.circuitmess.com/1586446083506-Math.png)
![random image](https://api.circuitmess.com/1586446083506-Math.png)
Text
Strings, characters, and string manipulation. Great place for creating new text and implementing it to your programs.
![random image](https://api.circuitmess.com/1586446121673-Text.png)
![random image](https://api.circuitmess.com/1586446121673-Text.png)
Variables
Create a variable of any type and set its name and desired value. CB will automatically recognize the type of the variable (int, double, string, boolean) so you don’t need to worry about that.
![random image](https://api.circuitmess.com/1586446209211-Var.png)
![random image](https://api.circuitmess.com/1586446249564-Function1.png)
![random image](https://api.circuitmess.com/1586446209211-Var.png)
Functions
The Default Arduino function (which is explained on the previous page) is located here.
You can also create your own functions which can then be inserted as one of the main parts of your program.
![random image](https://api.circuitmess.com/1586446249564-Function1.png)
Input/Output
Everything regarding Ringo’s components is located here.
LEDs, buttons, and joystick are controlled via these blocks.
Display
Well, all these blocks are really not important if you don’t see anything on the screen!
Here is where all the magic translates to those colored pixels. You can create so much through these blocks.
![random image](https://api.circuitmess.com/1586446332088-DisplayBlocks.png)
![random image](https://api.circuitmess.com/1586446332088-DisplayBlocks.png)
Time
Delays, timers, and other time-related stuff, great for creating cool animations and video games.
![random image](https://api.circuitmess.com/1586446358137-TimeBlocks.png)
Just type in whatever comes to your mind and all blocks that have anything to do with the written word will be shown on the right-hand side.
Now, you really can’t say that it’s impossible to find something.
You’ve learned everything about the blocks!
It’s time to move on to the next lesson…
![random image](https://api.circuitmess.com/1586446385117-Search.png)
![random image](https://api.circuitmess.com/1586446358137-TimeBlocks.png)
Search bar
There is also a search bar above all function sections to ease the search for that one specific block you just can’t seem to find (where is that PRINT???).
Just type in whatever comes to your mind and all blocks that have anything to do with the written word will be shown on the right-hand side.
Now, you really can’t say that it’s impossible to find something.
You’ve learned everything about the blocks!
It’s time to move on to the next lesson…
![random image](https://api.circuitmess.com/1586446385117-Search.png)
BackNext