Want to create interactive content? It’s easy in Genially!

Get started free

4.3.B - Press Picture

Teaching and Learning

Created on May 12, 2026

Start designing with a free template

Discover more than 1500 professional designs like these:

Essential Business Proposal

Project Roadmap Timeline

Step-by-Step Timeline: How to Develop an Idea

Artificial Intelligence History Timeline

Word Search: Corporate Culture

Match the Verbs in Spanish: Present and Past

Process Flow: Corporate Recruitment

Transcript

4.3.B - Press Picture

  • We continue our investigation into the buttons on the front of the micro:bit

Next

Step 2 Load the Code

Again, notice this code does not have a forever loop! Instead, it uses event handlers to react to specific input, in this case, pressing a button.

Even though we're just turning on a single pixel at a time we'll still call this a Picture because we are using the show leds function and can draw an image on the entire matrix if we want to.

Back

Next

Step 3 Test it Out!

  • Press the A Button, then press the B Button. You'll get one LED in the matrix to light up with each button press.
  • Try pressing the buttons rapidly, alternating between A and B. What happens?
  • The micro:bit may be slow to switch between the two LEDs since we're using the show leds function, and we've learned that it adds a slight delay when it runs.

Back