Labs / Bipes + MicroPython

4 Use of Basic Peripherals

Author: Li Zisheng · Source: FreakStudio open documentation · License: CC BY 4.0

Young creators, the programming blocks and interface rules we learned before ultimately serve one core goal — to let the development board "command" various hardware modules to work!

All these hardware that can be controlled by the development board or transmit signals to it are what we call peripherals. They are just like the "eyes", "ears", "mouth", "hands and feet" of the development board: some help the development board "perceive" the world (such as buttons and rheostats), and some help the development board "take actions"(such as LEDs and fans).

This chapter marks a key step for us to move from "pure programming" to the combination of software and hardware, and we will focus on only three core tasks:

  1. Learn the "Time Module": Enable the program to control peripherals in a rhythmic manner without being flustered;
  2. Identify the "core components of the development board": understand how the "brain"(CPU) and "limbs"(pins) of the development board cooperate to control peripheral devices;
  3. Practice the "Basic Input/Output Module": Start with the simplest modules such as LEDs and buttons to get started, master the core logic of peripheral control, and lay a foundation for subsequent learning of sensors and actuators.

📌 Learning Path of This Chapter

First understand the "program rhythm" → then recognize the "capabilities of the development board" → finally get hands-on with the "basic modules". Take it step by step, and you'll find that controlling hardware is actually super easy!(Later, we will explain in detail in separate sections: how to add rhythm to a program, how to use the "brain and limbs" of the development board, and how to connect and control each type of basic module~)