Back
AI
AI
Sensors
Arduino

Micro:bit Smart Home
482 Views34 Likes0 Comments12/29/2025
Build a smart home model controlled by Micro:bit. Control lights, doors, and monitor sensors.
Code Examples
1 exampleDisplay Heart Pattern
Python15 lines
heart.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class="text-gray-class="text-purple-400">500 italic"># micro:bit Heart Display Example
from microbit import *
class="text-gray-class="text-purple-400">500 italic"># Define heart image
heart = Image(class="text-green-class="text-purple-400">400">"class="text-purple-400">09090:"
class="text-green-class="text-purple-400">400">"class="text-purple-400">99999:"
class="text-green-class="text-purple-400">400">"class="text-purple-400">99999:"
class="text-green-class="text-purple-400">400">"class="text-purple-400">09990:"
class="text-green-class="text-purple-400">400">"class="text-purple-400">00900")
while True:
display.show(heart)
sleep(class="text-purple-400">500)
display.clear()
sleep(class="text-purple-400">500)Comments (0)
Please login to leave a comment
No comments yet. Be the first to comment!
K
keyestudio Robot
Creator
More from this author
AIESP32 Chatbot with Display
Build an AI chatbot using ESP32 with OLED display. Connect to cloud AI services for intelligent conv
22150
AIArm Robot with Vision
Add computer vision to your robot arm. Detect and pick up objects based on color or shape recognitio
445420
SensorsPressure Sensor Applications
Use pressure sensors for weight measurement and touch detection. Build scales, pressure mats, or for
375410
ArduinoSerial Communication Tutorial
Master serial communication between Arduino and computer. Send and receive data for monitoring and c
469220