Skip to main content
  • Book
  • © 2019

BBC micro:bit Recipes

Learn Programming with Microsoft MakeCode Blocks

Apress
  • Learn how to program the BBC micro:bit with MakeCode and easy-to-follow steps
  • Understand exact solutions for common programming problems
  • Use few hardware (and affordable) to build example projects

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (15 chapters)

  1. Front Matter

    Pages i-xxiii
  2. MakeCode Setup Fundamentals

    • Pradeeka Seneviratne
    Pages 1-28
  3. MakeCode Extended Features

    • Pradeeka Seneviratne
    Pages 29-45
  4. MakeCode Programming Basics

    • Pradeeka Seneviratne
    Pages 47-73
  5. Working with Text

    • Pradeeka Seneviratne
    Pages 75-92
  6. Displaying Images

    • Pradeeka Seneviratne
    Pages 93-116
  7. Inputs and Outputs

    • Pradeeka Seneviratne
    Pages 117-141
  8. Loops and Logic

    • Pradeeka Seneviratne
    Pages 143-168
  9. Using Mathematical Functions

    • Pradeeka Seneviratne
    Pages 169-185
  10. Using Variables

    • Pradeeka Seneviratne
    Pages 187-213
  11. Functions and Arrays

    • Pradeeka Seneviratne
    Pages 215-246
  12. Playing Music

    • Pradeeka Seneviratne
    Pages 247-275
  13. Using Sensors

    • Pradeeka Seneviratne
    Pages 277-290
  14. Using Bluetooth Services

    • Pradeeka Seneviratne
    Pages 291-305
  15. Using Radio

    • Pradeeka Seneviratne
    Pages 307-321
  16. Building Simple Games

    • Pradeeka Seneviratne
    Pages 323-340
  17. Back Matter

    Pages 341-352

About this book

Build engaging programs for the BBC micro:bit using Microsoft's MakeCode web editor. Using this open source platform, you'll learn to program in an accessible way that easily translates into real-world programming. 


BBC micro:bit Recipes is a practical guide with a problem-solving approach. It provides exact solutions for common application development problems for the micro:bit using MakeCode. You'll discover and apply techniques that can be used to build simple games with sprites, keep score, and control game play.


The micro:bit is a small programmable device that is a cross between a very small computer and a programmable embedded board. It is easy to program, extremely versatile, and designed with young learners in mind. In particular, it is designed to be easy for people who have never programmed before.



By the end of this book, you'll have the foundation to build programs with the Microsoft MakeCode editor and use and process data with built-in sensors, such as accelerometer, compass, temperature, touch, and light. You'll also see how to work with communication protocols, such as Serial, I2C, and SPI and how to use variables, loops, logic, arrays, math and functions to easily solve problems. 


What You'll Learn
  • Display text, images, and animations on the micro:bit display
  • Connect external sensors and process data
  • Make and play music through speakers and headphones
  • Use Bluetooth service to communicate with Smartphones and tablets




Who This Book Is For


Those who are interested in learning to program the BBC micro:bit with Microsoft MakeCode. The difficulty level falls from beginner to intermediate level.

Authors and Affiliations

  • Udumulla, Mulleriyawa, Sri Lanka

    Pradeeka Seneviratne

About the author

Pradeeka Seneviratne is a software engineer with over 10 years of experience in computer programming and systems design. He is an expert in the development of Arduino and Raspberry Pi-based embedded systems and is currently a full-time embedded software engineer working with embedded systems and highly scalable technologies. Previously, Pradeeka worked as a software engineer for several IT infrastructure and technology servicing companies.


Pradeeka is an author of many books: Building Arduino PLCs [Apress], Internet of Things with Arduino Blueprints [Packt], Raspberry Pi 3 Projects for Java Programmers [Packt], Beginning BBC micro:bit [Apress], and Hands-on Internet of Things with Blynk [Packt].

Bibliographic Information

  • Book Title: BBC micro:bit Recipes

  • Book Subtitle: Learn Programming with Microsoft MakeCode Blocks

  • Authors: Pradeeka Seneviratne

  • DOI: https://doi.org/10.1007/978-1-4842-4913-0

  • Publisher: Apress Berkeley, CA

  • eBook Packages: Professional and Applied Computing, Apress Access Books, Professional and Applied Computing (R0)

  • Copyright Information: Pradeeka Seneviratne 2019

  • Softcover ISBN: 978-1-4842-4912-3Published: 02 July 2019

  • eBook ISBN: 978-1-4842-4913-0Published: 28 June 2019

  • Edition Number: 1

  • Number of Pages: XXIII, 352

  • Number of Illustrations: 7 b/w illustrations, 282 illustrations in colour

  • Topics: Hardware and Maker, Game Development

Buy it now

Buying options

eBook USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access