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
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:
View
Essential Business Proposal
View
Project Roadmap Timeline
View
Step-by-Step Timeline: How to Develop an Idea
View
Artificial Intelligence History Timeline
View
Word Search: Corporate Culture
View
Match the Verbs in Spanish: Present and Past
View
Process Flow: Corporate Recruitment
Explore all templates
Transcript
4.3.B - Press Picture
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!
Back