Built-in LED Matrix Display and Push Buttons
In the previous chapter, we got acquainted with advanced concepts in Python programming and syntax. We also wrote and executed a Micro:bit-specific MicroPython program. Going forward, we will use those concepts in all of our demonstrations with Micro:bit.
The previous two chapters mostly served as an introduction to the syntax of Python. We did not use any Micro:bit-specific hardware features and libraries. From this chapter onward, all the programs will be specific to the MicroPython flavor for the Micro:bit as all of them will employ and demonstrate the hardware capabilities of MicroPython on Micro:bit. They will not execute on the other implementations of Python such as Python 3 or any MicroPython implementation for other devices such as Raspberry Pi Pico W and ESP8266 or ESP32.
This chapter explores two very important hardware features of the Micro:bit and demonstrates them with MicroPython. The built-in components include a 5x5...