Block6 tutorials

Programming Fundamentals with Blocks

Deepen your block programming skills with loops, conditions, variables, and random numbers.

Storing a Value: Variables

BeginnerBlock

Learn what a variable is and how to store a number in it. Display your variable on the OLED screen and change it with Math blocks.

VariablesOLEDProgrammingBeginner

Making Decisions: If and Else

BeginnerBlock

Teach your board to choose between two actions. Use an if/else block to check whether Switch A is pressed and light a different LED for each answer.

LogicIf/ElseSwitchesLEDProgrammingBeginner

Counting with a Loop

BeginnerBlock

Use a variable as a counter that goes up by one every time you press a button. Watch the count appear live on the OLED screen.

VariablesLoopsCountingOLEDInputProgrammingBeginner

Comparing Values

BeginnerBlock

Read the light sensor and compare its value to a threshold. Change the LED colour depending on whether it is bright or dark in the room.

LogicSensorsComparisonsLEDProgrammingBeginner

Math in Your Programs

BeginnerBlock

Use Math blocks to add, subtract, multiply, and divide. Store the result in a variable and display it on the OLED — all without any pencil and paper.

MathVariablesOLEDProgrammingBeginner

Keep Score

IntermediateBlock

Combine variables, loops, conditions, and input to build a two-player score tracker. Switch A adds a point for Player 1, Switch B adds a point for Player 2. The first to reach 5 wins — and the buzzer celebrates!

VariablesLogicInputBuzzerOLEDProgrammingIntermediate