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. ...

Get BBC Micro:bit in Practice now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.