Avoid Pitfalls in RTOS LCD Driver Development! A Hardcore Guide for Beginners

Avoid Pitfalls in RTOS LCD Driver Development! A Hardcore Guide for Beginners

Developing an LCD driver under RTOS, are you often confused by FSMC timing and pin configuration? Today, using the STM32 + ILI9341 example, I will guide you step by step from 0 to 1, helping you avoid 90% of the pitfalls! 1. First, understand FSMC and 8080, the ILI9341 supports 8080 parallel timing, and the … Read more

Disassembly of Xiaomi Air Conditioner Remote Control: How One MCU Handles All Functions?

Disassembly of Xiaomi Air Conditioner Remote Control: How One MCU Handles All Functions?

Recently, I took a look at the Xiaomi air conditioner remote control at home and was curious about how Xiaomi would design the entire solution, so I decided to disassemble it. Upon disassembly, I found that there was no independent LCD segment display driver, no LDO, and no infrared transmission driver circuit. The core chip … Read more

Embedded Programming Model | Simple Factory Pattern

Embedded Programming Model | Simple Factory Pattern

Follow our official account to keep receiving embedded knowledge! 1. Simple Factory Pattern The Simple Factory Pattern, also known as the Static Factory Method Pattern, is a type of creational pattern. It encapsulates the object creation logic through a factory class, dynamically instantiating specific product classes based on input parameters, achieving decoupling of creation and … Read more

Detailed Explanation of LCD Driver in Embedded Linux Kernel

Detailed Explanation of LCD Driver in Embedded Linux Kernel

1 Application Layer Calls to LCD Driver Methods Open the corresponding device node app: open(“/dev/fb0”, …) Major device number: 29, Minor device number: 0 ————————————————————– kernel: fb_open // fbmem.c struct fb_info *info; info = get_fb_info(fbidx); if (info->fbops->fb_open) { res = info->fbops->fb_open(info,1); // Hardware-related driver if (res) module_put(info->fbops->owner); } Obtain variable information (including resolution, etc.) app: … Read more

Design and Implementation of LCD Driver Based on Embedded Linux

Design and Implementation of LCD Driver Based on Embedded Linux

1. Basic Information Project Name: Design and Implementation of LCD Driver Based on Embedded Linux Source: 12th “Challenge Cup” Provincial Competition Entry Subcategory: Information Technology Category: Academic Paper in Natural Sciences 2. Project Overview Introduction: This project provides a detailed introduction to embedded systems, embedded Linux systems, and the working principles of LCD displays. It … Read more

C Language Programming: Ideas for Writing LCD Drivers

C Language Programming: Ideas for Writing LCD Drivers

There are many LCD examples available online for STM32 development boards, mainly for TFT LCD and OLED. From these examples, everyone can learn how to light up an LCD. However, these codes have the following issues: The layering is unclear, which means the modularization is poor. The interfaces are chaotic. If the interfaces are not … Read more