Labplus Knowledge Base
Product Documentation
mPython Board 3.0 Documentation
1. Hardware
2. Software Programming (MicroPython)
3. Example Tutorials
REPL
Pins
Display
RGB LED
Music
Buttons
Touch Sensor
Microphone
Light Sensor
Accelerometer
Angular Velocity
Network
Serial Port
Wi-Fi
Internet of Things
Random Numbers
Timer
Wireless Broadcast
I2C
Thread
Storage
Audio
Agent
3.2 Advanced Examples
3.1 Basic Examples
3.3 Classic Examples
4. mPython Board 3.0 with Xiaozhi
5. API Documentation
6. mPython Board C/C++ Programming
7. Technical Support
8. Copyright Notice
mPython Core 2.0 Documentation
AI Camera 4.0 Documentation
mPython IoT Documentation
mPython Module Documentation
Knowledge Base
Labplus Knowledge Base
About
Product Selection Guide
Labplus Knowledge Base
mPython Board 3.0 Documentation
3. Example Tutorials
View page source
3. Example Tutorials
REPL
Serial Port Connection
Using the REPL
Line Editing
Input History
Tab Key
Line Continuation and Auto-Indentation
Paste Mode
Other Control Commands
Pins
Digital IO
Digital Input
Digital Output
External Interrupts
Analog IO
Analog Input
Analog Output
Display
Text Display
Screen Coordinates
Setting Colors
Drawing Basic Shapes
Displaying Images
RGB LED
Onboard RGB LED
External LED Strip
Music
Built-in Melodies
Composing Your Own Score
Frequency
Buttons
Get the Button State
Button Interrupts
Touch Sensor
Microphone
Light Sensor
Accelerometer
Level Ball
Calculating the Tilt Angle of the mPython Board
Angular Velocity
Network
Network Basics
STA Mode
AP Mode
Introduction to TCP/IP
Socket - TCP
What is a socket?
Introduction to the TCP Protocol
TCP Programming
Socket - UDP
Introduction to the UDP Protocol
UDP Programming
HTTP
HTTP GET request
HTTP Server
Parsing JSON
Fetching and Parsing JSON over the Network
Serial Port
Serial Port Basics
Serial Port Principle
Baud Rate
Transmitter TX and Receiver RX
Serial Port Operations
Building a UART
Serial Port Transmit
Serial Port Read
Extensions
Wi-Fi
Overview
Wi-Fi Working Modes
Station Mode
SoftAP Hotspot Mode
API Reference
Main Wi-Fi APIs
FAQ
Internet of Things
IoT Basics
The Birth of IoT
What is IoT?
IoT Architecture
IoT Tutorial
MQTT
Yeelight
Bigiot
Random Numbers
Randomly Displaying Numbers
Random Seed
Timer
Wireless Broadcast
radio
MPythonESPNow
MPythonESPNow
MPythonESPNow
MPythonESPNow
MPythonESPNow
I2C
Master
Thread
Creating a Thread
Locking a Thread
Storage
Opening Files
OS
The Main Program main.py
Audio
Agent