Project 1 - Blink an LED

Objectives: To program a single LED to blink.

Before we begin, switch to Live mode

  1. Drag and drop the following blocks into your code area.

  2. Press the green flag to run the code.

    Observe the LED on the microcontroller.

    If it does not light up. Make sure your firmware is updated and Live coding is turned on.

  3. How it works?

    What do you think would happen if you change the value high to low

  4. Now, let's make the LED blink. Modify the previous code to this code.

  5. Press the green flag to run the code.

    Observe the LED on the microcontroller. The LED at pin 9 should blink every 1 seconds.

Challenge

What can you do so that the LED will blink faster?

Once completed, inform your teacher to check your progress.

Reflection

Click the here to reflect on your project.