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)
        • CS Intro
          • About
          • Introduction
          • References
          • Acknowledgements
          • Making
          • Algorithms
          • Variables
          • Conditionals
          • Iteration
          • Mini-project
          • Coordinates
          • Booleans
          • Binary
          • Radio
          • Arrays
          • Final Project
      • About
      • Acknowledgements
      • Algorithms
      • Arrays
      • Binary
      • Booleans
      • Conditionals
      • Coordinates
      • Finalproject
      • Introduction
      • Iteration
      • Making
      • Miniproject
      • Radio
      • References
      • Variables
      • Algorithms
        • Activity
        • Overview
        • Project
        • Standards
        • Unplugged
      • Arrays
        • Activity
        • Overview
        • Project
        • Standards
        • Unplugged
      • Binary
        • Activity
        • Overview
        • Project
        • Standards
        • Unplugged
      • Booleans
        • Activity
        • Overview
        • Project
        • Standards
        • Unplugged
      • Conditionals
        • Activity
        • Overview
        • Project
        • Standards
        • Unplugged
      • Coordinates
        • Activity
        • Overview
        • Project
        • Standards
        • Unplugged
      • Finalproject
        • Examples
        • Project
        • Review
        • Standards
      • Iteration
        • Activity
        • Overview
        • Project
        • Standards
        • Unplugged
      • Making
        • Activity
        • Introduction
        • Project
        • Standards
        • Unplugged
      • Miniproject
        • Activity
        • Project
        • Review
        • Standards
      • Radio
        • Activity
        • Overview
        • Project
        • Standards
        • Unplugged
      • Variables
        • Activity
        • Overview
        • Project
        • Standards
        • Unplugged
    • Ucp science
      • SUMMARY
      • 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 »
  • Csintro »
  • [CS Intro](/courses/csintro)

CS Intro

  • CS Intro

About

  • About

Introduction

  • Introduction

References

  • References

Acknowledgements

  • Acknowledgements

Making

  • Making
    • Introduction
    • Unplugged
    • Walkthrough
    • Project
    • Standards

Algorithms

  • Algorithms
    • Overview
    • Unplugged
    • Activity
    • Project
    • Standards

Variables

  • Variables
    • Overview
    • Unplugged
    • Activity
    • Project
    • Standards

Conditionals

  • Conditionals
    • Overview
    • Unplugged
    • Activity
    • Project
    • Standards

Iteration

  • Iteration
    • Overview
    • Unplugged
    • Activity
    • Project
    • Standards

Mini-project

  • Mini-project
    • Review
    • Activity
    • Project
    • Standards

Coordinates

  • Coordinates
    • Overview
    • Unplugged
    • Activity
    • Project
    • Standards

Booleans

  • Booleans
    • Overview
    • Unplugged
    • Activity
    • Project
    • Standards

Binary

  • Binary
    • Overview
    • Unplugged
    • Activity
    • Project
    • Standards

Radio

  • Radio
    • Overview
    • Unplugged
    • Activity
    • Project
    • Standards

Arrays

  • Arrays
    • Overview
    • Unplugged
    • Activity
    • Project
    • Standards

Final Project

  • Final Project
    • Review
    • Project
    • Examples
    • Standards
Next Previous

Built with MkDocs using a theme provided by Read the Docs.