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

8

Exploring the Filesystem

In the previous chapter, we worked with push buttons, slide switches, buzzers, and stepper motors. We used them with the Micro:bit and MicroPython. This chapter is a little bit of a detour from the hardware components we have been exploring.

This chapter focuses on the filesystem of Micro:bit. We will fully explore all the functionality and use cases pertaining to the filesystem. Here is a list of the topics we will cover in this chapter:

  • Creating and reading files
  • Appending a file
  • Creating our own library
  • The OS module
  • Working with MicroFS

Let’s explore working with files with MicroPython and Micro:bit.

Technical requirements

We just need the usual setup of a Micro:bit connected to a computer with internet connectivity. ...

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