Menu
The BBC micro:bit, launched in 2016 as part of the UK’s "Make It Digital" initiative, has revolutionized STEM education. With over 30 million devices distributed globally, it has empowered students to explore coding, robotics, and IoT. However, its 5x5 LED grid—while iconic—limited creative expression.
In 2024, the Display Shield emerged as a groundbreaking add-on, transforming the micro:bit into a versatile tool for interactive projects. Designed for educators and makers, it combines simplicity with advanced capabilities.
Why It’s Revolutionary:
Plug-and-Play Design: No soldering or complex wiring.
Educational Focus: Aligns with global STEM curricula.
Creative Freedom: From games to scientific tools, possibilities are endless.
The Display Shield’s hardware is engineered for reliability and performance:
Screen: 1.8-inch TFT LCD (160x120 pixels, 16-bit color).
Buttons: Tactile D-pad and X/Y/Z function keys.
Power Management: Dual power modes (3.3V micro:bit or 3.7V external battery).
Ergonomic Design:
Button Layout: Curved D-pad for comfortable thumb control.
Screen Protection: Scratch-resistant glass with anti-glare coating.
Battery Life: Up to 6 hours with a 1000mAh lithium battery.
Auto-Dimming: Adjusts brightness based on ambient light.
Low-Power Mode: Disables non-essential features (e.g., backlight).
The Display Shield’s MakeCode extension provides powerful APIs for screen manipulation. Below are key features demonstrated through code examples:
Example 1: Button-Triggered Screen Actions
Use Case: Dynamic background switching or a simple drawing app.
Example 2: Pixel & Shape Drawing
Technical Notes:
drawRect(x, y, width, height, color): Draws hollow rectangles.
fillRect(): Renders solid rectangles with higher efficiency.
Example 3: Dynamic Bitmap Creation
Optimized Version Using Line Drawing
Advantage: Reduces loops for better performance.
Features:
Move a cursor with the D-pad.
Change colors with A/B buttons.
Save artwork to micro:bit storage.
Code Implementation:
Strategy: Use off-screen bitmaps to cache complex graphics.
Result: Reduces full-screen redraws, achieving 30+ fps.
Objective: Explore symmetry and patterns through pixel art.
Activity:
1. Students design symmetrical shapes using drawRect and drawLine.
2. Use loops to replicate patterns across the screen.
3. Export artwork as bitmaps and analyze geometric properties.
Sample Code:
• Screen Flickering:
○ Fix: Use an external battery or reduce brightness.
• Slow Rendering:
○ Fix: Avoid large bitmaps (>32x32) in animations.
Tip: Use gc.collect() in Python to free unused memory.
Warning: Each 160x120 bitmap consumes ~38KB of RAM.
The Display Shield transforms the micro:bit into a canvas for innovation. Whether you’re a student sketching pixel art or a developer prototyping IoT solutions, this tool bridges imagination and reality.
Get Started Today:
Explore: Dive into the MakeCode Library.
Share: Post projects with #DisplayShield.
Innovate: Push boundaries and inspire the next generation!