Lesson 42 · A button turns on an LED

Robotics basics · 6 min · See the playlist on YouTube ↗

✓ You already watched this lesson

The two halves of the module come together in a single program: something that asks and something that obeys, a button that turns on an LED.

🎯 The challenge of this lesson

Change the hundred in the multiplication to fifty and notice that the LED lights up at half brightness; then add a potentiometer that decides that number instead of you typing it.

Practise in the app

Read the written page for this lesson →

Stuck on this lesson?

Write your question and another student — or the teacher — will answer. Your email is never published: it is only used to let you know when someone replies.

Before being published, every message goes through an automatic filter that rejects bad language and any attempt to intimidate another person.

  • Loading the questions…