microbit-makecode
Home
@extends
About
Contact Us
Courses
Device
Documentation
Examples
Foundations of Computing and Programming: exploring the micro:bit
Flashing via HID (CMSIS-DAP)
Lessons
Open Source
@extends
Projects
Reference
@extends
@extends
@extends
Uploader
Blocks
@extends
@extends
Logic
@extends
@extends
Loops
@extends
@extends
Math
random Boolean
Variables
Assignment Operator
@extends
Local Variables
Courses
Intro to CS
Science Experiments
Csintro
[CS Intro](/courses/csintro)
About The Authors
Acknowledgements
Algorithms
Arrays
Binary
Booleans
Conditional statements
Coordinate grid and LEDs
Final project
Introduction
Iteration & Looping
Making with micro:bit
Mini-project
Radio and Communication
References
Variables
Algorithms
Activity: Happy Face, Sad Face
Introduction
Project: Fidget Cube
Standards
Unplugged: What's your function & crazy conditionals
Arrays
Activity
Introduction
Project: Musical instrument
Standards
Unplugged
Binary
Activity: Binary transmogrifier
Introduction
Project: Make a binary cash register
Standards
Unplugged: Binary vending machine
Booleans
Activity: Double coin flipper
Introduction
Project: Boolean
Standards
Unplugged
Conditionals
Activity: Rock, paper, scissors
Introduction
Project: Board Game
Standards
Unplugged: Red light, green light
Coordinates
Activity: Animation and patterns
Introduction
Project: Screensaver or game
Standards
Unplugged: Battleship
Finalproject
Final project examples
Final project
Review
Standards
Iteration
Activity: Loops demos
Introduction
Project: Get loopy!
Standards
Unplugged: Walk a square
Making
Activity: Installing a program
Introduction
Project: micro:pet
Standards
Unplugged: Design Thinking
Miniproject
Activity: Collaboratively independent
Project
Review
Standards
Radio
Activity: Marco Polo and Morse code
Introduction
Project: Radio project
Standards
Unplugged
Variables
Activity: Scorekeeper
Introduction
Project: Everything counts
Standards
Unplugged: Keeping score
Ucp science
[Science Experiments](/courses/ucp-science)
Science Experiments
Data Collection
Population Traits
Temperature
Soil Moisteure Tester
Gravity, Motion and Waves
Body Electrical and Waves
Electicity - Battery tester
Body electrical
Data collection
Electricity
Gravity
Population
Soil moisture
Temperature
Body electrical
Overview
Resources
Setup procedure
Data collection
Overview
Resources
Setup procedure
Electricity
Overview
Resources
Setup procedure
Gravity
Overview
Resources
Setup procedure
Population
Overview
Resources
Setup procedure
Soil moisture
Overview
Resources
Setup procedure
Temperature
Overview
Resources
Setup procedure
Device
Crocodile clips
Data analysis
Error codes
Firmware
Foil circuits
Mes events
Pins
Reactive
Screen
Serial
Servo
Simulator
Usb
Data analysis
Analyze
Generating
Led plotting
Remote
Viewing
Writing
Usb
Mac chrome
Mac firefox
Mac safari
Troubleshoot
Windows chrome
Windows edge
Windows firefox
Windows ie
Windows app
Troubleshoot
Examples
Blinky
Eddystone beacon
Egg and spoon
gameofLife
Name tag
Pi montecarlo
Plot acceleration
Plot analog pin
Plot light level
Radio dashboard
Rando
Servo calibrator
Stop watch
Turtle scanner
Turtle spiral
Turtle square
Fcp
Ch1
Lessons
Answering machine
Beautiful image
Blink
Blocks conditions
Catch the egg game
Charting
Classic beatbox
Compass
Counter
Dice roll
Digi yoyo
Flashing heart
Game counter
Game of chance
Glowing pendulum
Graphics
Guess the number
Happy birthday
Headbands
Hero
Looper
Love meter
Lucky 7
Magic 8
Magic logo
Night light
Pogo
Prank wifi
Rotation animation
Screen wipe
Seismograph
Smiley
Snowflake fall
Speed button
Spinner
Stem
Strobe light
Teach
Temperature
Truth or dare
Variables
Zoomer
Answering machine
Activity
Challenges
Quiz answers
Quiz
Beautiful image
Activity
Challenges
Tutorial
Blink
Activity
Challenges
Quiz answers
Quiz
Bop it
Activity
Quiz answers
Quiz
Catch the egg game
Activity
Quiz answers
Quiz
Tutorial
Charting
Activity
Challenge
Quiz answers
Quiz
Classic beatbox
Activity
Challenges
Compass
Activity
Challenges
Quiz answers
Quiz
Counter
Activity
Challenges
Quiz answers
Quiz
Dice roll
Activity
Challenges
Quiz answers
Quiz
Digi yoyo
Activity
Challenges
Quiz answers
Quiz
Flashing heart
Activity
Challenges
Quiz answers
Quiz
Game counter
Activity
Challenges
Game of chance
Activity
Challenges
Glowing pendulum
Activity
Challenges
Quiz answers
Quiz
Tutorial
Guess the number
Activity
Challenges
Quiz answers
Quiz
Tutorial
Happy birthday
Activity
Challenges
Headbands
Activity
Quiz answers
Quiz
Hero
Activity
Looper
Activity
Challenges
Quiz answers
Quiz
Love meter
Activity
Challenges
Quiz answers
Quiz
Lucky 7
Activity
Challenges
Quiz answers
Quiz
Tutorial
Magic 8
Activity
Challenges
Quiz answers
Quiz
Tutorial
Magic logo
Activity
Challenges
Quiz answers
Quiz
Night light
Activity
Challenges
Quiz answers
Quiz
Pogo
Activity
Prank wifi
Activity
Quiz answers
Quiz
Rotation animation
Activity
Challenges
Quiz answers
Quiz
Screen wipe
Activity
Challenges
Quiz answers
Quiz
Seismograph
Activity
Challenge
Smiley
Activity
Challenges
Quiz answers
Quiz
Snowflake fall
Activity
Challenges
Quiz answers
Quiz
Speed button
Activity
Quiz answers
Quiz
Spinner
Activity
Challenges
Quiz answers
Quiz
Strobe light
Activity
Challenges
Quiz answers
Quiz
Temperature
Activity
Challenges
Truth or dare
Activity
Challenges
Quiz answers
Quiz
Tutorial
Zoomer
Activity
Challenges
Quiz answers
Quiz
Packages
Approval
Build your own
Projects
Atronix jam
Banana keyboard
Coin flipper
Compass
Crashy bird
Fireflies
Flashing heart
Guitar
Hack your headphones
Hot or cold
Inchworm
Infection
Karel
Light monster
Love meter
Magic button trick
Messenger
Micro coin
Milk carton robot
Milk jar robot
Milky monster
Mood radio
Plant watering
Radio challenges
Railway crossing
Rc car
Reaction time
Rock paper scissors
Rps teams
Salute
Smiley buttons
Soil moisture
States of matter
Tele potato
Telegraph
Timing gates
Voting machine
Wallet
Watch
Banana keyboard
Code
Make
Guitar
Accelerometer
Displaybuttons
Lightsensor
Make
Pinpress
Hack your headphones
Code
Make
Inchworm
Code
Connect
Make
Light monster
Code
Connect
Make
Milk carton robot
Code
Connect
Make
Milky monster
Code
Connect
Make
Plant watering
Code
Make
Rc car
Code
Connect
Make
Reaction time
Code
Make
Rock paper scissors
Code
Make
Soil moisture
Code
Connect
Make
States of matter
Code
Make
Telegraph
Code
Make
Wallet
Code
Make
Watch
Code
Digital watch
Make
Timer
Reference
Basic
Bluetooth
Control
Devices
Event handler
Game
Images
Input
Led
Music
Out of bounds
Pins
Radio
Serial
Basic
Clear screen
Forever
Pause
Plot leds
Show animation
Show arrow
Show icon
Show leds
Show number
Show string
Bluetooth
About bluetooth
Advertise uid buffer
Advertise uid
Advertise url
Bluetooth pairing
On bluetooth connected
On bluetooth disconnected
On uart data received
Set transmit power
Start accelerometer service
Start button service
Start io pin service
Start led service
Start magnetometer service
Start temperature service
Start uart service
Stop advertising
Uart read until
Uart write number
Uart write string
Uart write value
Control
Assert
Device name
Device serial number
Event source id
Event timestamp
Event value id
Event value
In background
On event
Panic
Raise event
Reset
Wait micros
Devices
On gamepad button
On notified
On signal strength changed
Raise alert to
Signal strength
Tell camera to
Tell remote control to
Game
Add score
Change score by
Change
Clear
Create sprite
Delete
Game over
Get
If on edge bounce
Is touching edge
Is touching
Move
Pause
Position
Reports
Resume
Score
Set score
Set
Start countdown
Turn
Images
Arrow image
Arrow number
Create big image
Create image
Icon image
Image
Pixel
Plot frame
Plot image
Scroll image
Set pixel
Show frame
Show image
Width
Input
Acceleration
Button is pressed
Calibrate compass
Compass heading
Light level
Magnetic force
On button pressed
On gesture
On pin pressed
On pin released
Pin is pressed
Rotation
Running time micros
Running time
Set accelerometer range
Temperature
Led
Brightness
Enable
Fade in
Fade out
Plot all
Plot bar graph
Plot brightness
Plot
Point
Screenshot
Set brightness
Set display mode
Stop animation
Toggle all
Toggle
Unplot
Music
Beat
Begin melody
Change tempo by
On event
Play tone
Rest
Ring tone
Set play tone
Set tempo
Tempo
Pins
Analog pitch
Analog read pin
Analog set period
Analog set pitch pin
Analog write pin
Digital read pin
Digital write pin
I2c read buffer
I2c read number
I2c write buffer
I2c write number
Map
On pulsed
Pulse duration
Pulse in
Servo set pulse
Servo write pin
Set events
Set pull
Spi format
Spi frequency
Spi pins
Spi write
Radio
On data packet received
On data received
Packet
Receive number
Receive string
Received signal strength
Send buffer
Send number
Send string
Send value
Set group
Set transmit power
Set transmit serial number
Write received packet to serial
Write value to serial
Serial
On data received
Read buffer
Read line
Read string
Read until
Redirect to usb
Redirect
Write buffer
Write line
Write number
Write numbers
Write string
Write value
Tutorials
Getting started
Hour of code
Hey microbit
Rock paper scissors
Types
Buffer
Number
String
Buffer
Number format
Using buffers
microbit-makecode
Docs
»
Courses »
Ucp science »
[Science Experiments](/courses/ucp-science)
Science Experiments
Science Experiments
Data Collection
Data collection
Overview
Setup and procedure
Resources
Population Traits
Population Traits
Overview
Setup and procedure
Resources
Temperature
Temperature
Overview
Setup and procedure
Resources
Soil Moisteure Tester
Soil Moisture
Overview
Setup and procedure
Resources
Gravity, Motion and Waves
Gravity, Motion and Waves
Overview
Setup and procedure
Resources
Body Electrical and Waves
Body Electrical and Waves
Overview
Setup and procedure
Resources
Electicity - Battery tester
Electricity
Overview
Setup and procedure
Resources