Practical Python Programming: An Introduction to Django Project Structure

Django is one of the most mature web frameworks in Python, featuring a complete set of functionalities such as built-in ORM, template engine, permission system, and backend management, making it very suitable for building medium to large web applications. One of the most confusing questions for beginners when creating a Django project is: “What are … Read more

CMake User Guide (Part 1): Common Techniques and Compilation Summary

CMake User Guide (Part 1): Common Techniques and Compilation Summary

In C/C++ projects, CMake has become the industry standard for build systems, and cross-compilation is a hurdle that every embedded developer will encounter. Simply put, it involves setting up a code compilation environment for Arm boards to run code on Arm devices. The commonly used compilation tools are Makefile and CMake, and this article records … Read more

C++ Project Build Part Eight: CMake Code Directory

C++ Project Build Part Eight: CMake Code Directory

Last time, in C++ Project Build Part Seven: Creating a Library with CMake, all the source code of the modules (libraries and executables) in the example demo7 was in one directory, which made the structure very unclear (if there are hundreds of source files, it would be a nightmare). Below, we will look at an … Read more

CMake User Guide (Part II): Operations and Basic Usage with Multiple Source Files

CMake User Guide (Part II): Operations and Basic Usage with Multiple Source Files

When managing multiple source files in C/C++ projects, CMake has become the industry standard for build systems. This article will analyze the core methods for handling multiple source file operations and common basic usages of CMake statements, documenting how to eliminate the tedious task of manually maintaining compilation lists. 1. Project Structure When there are … Read more

Comprehensive Guide to Creating and Analyzing ESP32 Project Structures

Comprehensive Guide to Creating and Analyzing ESP32 Project Structures

Comprehensive Guide to Creating and Analyzing ESP32 Project Structures 1. Methods for Creating ESP32 Projects 1. Creating an ESP-IDF Project # Create a new project idf.py create-project my_esp32_project # Project directory structure my_esp32_project/ ├── CMakeLists.txt ├── main/ │ ├── CMakeLists.txt │ └── main.c └── sdkconfig 2. Creating an Arduino IDE Project File > New Save … Read more

Common Module Examples for 51 Microcontrollers (Part 1)

Common Module Examples for 51 Microcontrollers (Part 1)

Since the late 1970s, when microcontrollers were first introduced, there has been a long history of development in microcontroller technology. Microcontrollers are particularly suitable for embedded systems and are subject to strict size management, which is why almost every electronic device you see today integrates a microcontroller. The widespread application means that learners of microcontrollers … Read more

Using CMake: A C++ Project Build Tool

Using CMake: A C++ Project Build Tool

Using CMake: A C++ Project Build Tool CMake is a popular cross-platform build system that generates standardized build files, allowing C++ projects to be easily compiled and managed across different operating systems and development environments. In this article, we will introduce the basic usage of CMake and how to use it to create a simple … Read more

CMake Tutorial

CMake Tutorial

1. Introduction to CMake CMake is a cross-platform build tool, which can generate: Makefile for Linux/Unix Project files for <span>Visual Studio</span> on Windows Project files for <span>Xcode</span> on macOS without manually writing build scripts for different platforms. 2. Installing CMake Windows: Download the installer from cmake.org/download Linux: <span>sudo apt install cmake</span> (Debian/Ubuntu) macOS: <span>brew install … Read more