This document discusses LED display control on the micro:bit board. It covers LED principles and applications, the micro:bit LED matrix, LED display control commands including displaying numbers, text, images and arrows. It provides examples of breathing lights, fireworks, and a dynamic screen using variables, conditional and counting loops.
This document discusses LED display control on the micro:bit board. It covers LED principles and applications, the micro:bit LED matrix, LED display control commands including displaying numbers, text, images and arrows. It provides examples of breathing lights, fireworks, and a dynamic screen using variables, conditional and counting loops.
The document provides instructions and examples for using switches, capacitive touch, and game controls on the micro:bit. It includes tutorials for building guessing games where the micro:bit guesses a number by narrowing the range, adjusting LED brightness with touch pins, and creating a dodgeball game where the player character avoids falling balls. Code snippets and step-by-step explanations are given for each example project.
The document provides instructions and examples for using switches, capacitive touch, and game controls on the micro:bit. It includes tutorials for building guessing games where the micro:bit guesses a number by narrowing the range, adjusting LED brightness with touch pins, and creating a dodgeball game where the player character avoids falling balls. Code snippets and step-by-step explanations are given for each example project.
The document discusses using a micro:bit for light sensing applications. It explains how the micro:bit can sense light levels using its LEDs as photodiodes. When an LED pin is set as an analog input, the voltage measured corresponds to the ambient light level. Two example projects are described - an automatic night light that adjusts its brightness based on light levels, and a magic face panel display that changes expressions when the LED is covered and uncovered.
The document describes how to create a 2D platformer game in Unity, including:
1) Adding background animations and music
2) Creating and controlling the player character
3) Spawning random enemies
4) Implementing a health bar UI to display the player's health
3. 正面
micro:bit規格 2/3
4cm
5cm
3 digital/analog IO rings
(capacitive sensing)
power port ground port
2 programmable buttons
5×5 individually
programmable LEDs
3
4. 背面
micro:bit規格 3/3
16MHz 32-bit ARM Cortex M0 CPU
256KB flash, 16KB Static RAM with Bluetooth Low Energy
Micro-B USB connector
Bluetooth Smart antenna
Battery connector
Compass
(Freescale MAG3110)
Accelerometer
(Freescale MMA8652)
21 pin edge connector
Reset button
USB controller
System LED
4