Coding Examples

micro:bit Programming - Use the if then else statement in MakeCode

bbc microbit robot if then else if then else microbit robot

micro:bit Programming - Use the if then else statement in MakeCode

In this article we explore the "if then else" block in the MakeCode programming language.  This block is a logic block that extends the "if then" block.  We wrote an introduction to the "if then" block here.  In this example, we will show you how to program and if-then-else block and control a robot, helping the robot to decide if it should move forward or stop.

Read more →


micro:bit Programming - Use buttons to control your micro:bit robot

button gigglebot button programming

micro:bit Programming - Use buttons to control your micro:bit robot

In this tutorial, we'll walk you through how to use Button A and Button B on your micro:bit.  We will use the GiggleBot robot for the micro:bit to show how you can use Buttons to give commands.

Read more →


micro:bit Programming - Use a While Loop with a robot

logic makecode while loop

micro:bit Programming - Use a While Loop with a robot

In this tutorial we'll show how to use a While loop with the BBC micro:bit and demonstrated using the GiggleBot.  

Read more →


micro:bit Programming - Make an if statement with a robot

bbc microbit robot if then gigglebot if then if-then programming in makecode makecode microbit robot programming robot

micro:bit Programming - Make an if statement with a robot

Writing an if statement for the micro:bit is very easy.  Here we will show you how to program an if-statement with the micro:bit robot, using the GiggleBot robot as an example for programming.

Read more →


micro:bit Programming - Make a For Loop

bbc microbit robot for loop for loop gigglebot for loop microbit microbit robot robot

micro:bit Programming - Make a For Loop

In this tutorial we'll go over how to make a "for loop" for our Micro:Bit. We will make the robot the GiggleBot robot move forward and shine some lights.

Read more →