Skip to Main Content
BBC Micro:bit in Practice
book

BBC Micro:bit in Practice

by Ashwin Pajankar, Abhishek Sharma, Sandeep Saini
December 2022
Intermediate to advanced content levelIntermediate to advanced
292 pages
5h 45m
English
Packt Publishing
Content preview from BBC Micro:bit in Practice

12

Producing Music and Speech

In the previous chapter, we learned how to work with NeoPixel rings and strips. We also explored how to program the MAX7219-based 7-segment 8-digit display board. We worked with an external MicroPython library for the MAX7219 project and now we are comfortable working with external libraries. We created interesting projects with these cool external displays.

This chapter will explore a new dimension of the Micro:bit by discussing various methods of generating music and speech using Micro:bit. As discussed in the introductory chapters, the Micro:bit V2 has an inbuilt speaker. The programming module comes with inbuilt functions to generate tones and melodies. These can be easily heard using the inbuilt speakers. If ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The Official BBC Micro:bit User Guide

The Official BBC Micro:bit User Guide

Gareth Halfacree

Publisher Resources

ISBN: 9781804610121Supplemental Content