Table of Contents

Christmas decoration

A simple Christmas decoration that flashes in many colors. For that you will have to use the buttons and the LED of color.

Programming

Here's how to build an angel or a Christmas tree step by step for Christmas. Use the displayed blocks and put them in the correct order and test your code by clicking on .

Step 1: Turn on the LED in green

If I press the button A turns on the LED in green.

Use the following blocks and add them in Kniwwelino My program:

You can test your code.

Step 2: Change the color when you press the B button

If I press the B button then turn on the LED in another color.

Add the following blocks below what you already did in step 1:

Step 3: Turn off the LED

Turn off the LED if buttons A & B are clicked at the same time.

Solution

Crafting

Material

Model

Model

Instructions

  1. Download the template and print it.
  2. Choose the model of your choice: angel, single fir or three-story fir.

Engel

Einzeltanne Dreistöckige Tanne

Your turn!

Solution

Downloadable version in Blockly.