LED for driving frame

1, What is a drive frame 1. Who wrote the driver (1) Drive development engineer (2) Kernel maintainer 2. Driver programming collaboration requirements (1) The interface should be standardized. Don't make a mess. There are several sets of interfaces (2) Minimize the difficulty of driving developers 3. What is the driver framework (1) The ...

Added by Spitfire on Wed, 15 Sep 2021 01:29:51 +0300

Many friends can't distinguish between "byte order" and "bit order"~

Reprinted from: Many friends can't distinguish between "byte order" and "bit order"~ Many friends can't distinguish between "byte order" and "bit order"~ yesterday The following article comes from the last bug, the author bug bacteria 1. Parse byte order        1) In fact, man ...

Added by TheAngst on Tue, 14 Sep 2021 01:48:52 +0300

The 15th Chinese Northeast College Programming Contest D. lowbit

D. Lowbit Original question link In this question, we wonder whether it will become a normal interval operation after adding a certain number of times, which is similar to interval root opening. Then we find that it is true that when a number is added to a certain number of times, there is actually only one binary ...

Added by mastercjb on Sun, 12 Sep 2021 03:33:04 +0300

Process communication -- mmap file memory mapping

Process communication - mmap file memory mapping #include <sys/mman.h> void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset); int munmap(void *addr, size_t length); PROT_EXEC //Pages may be executed. PROT_READ // Pages may be read. PROT_WRITE // Pages may be written. PROT_NONE // Pages may n ...

Added by Drace on Wed, 08 Sep 2021 21:08:43 +0300

c language establishes queues (sequential queue, sequential queue and chain queue)

1, Sequential queue Because the implementation of sequential queue is relatively simple, let's talk about the implementation ideas and some precautions. Sequential storage structure of queue The sequential storage structure of queue is called sequential queue. It uses a group of continuous storage units (one-dimensional array) to sto ...

Added by deepson2 on Wed, 08 Sep 2021 01:35:57 +0300

Analysis of Linux file programming

file right ① Readable r ② Writable w ③ Executable x It can also be expressed in numbers: r=4, w=2, x=1. So 7=rwx ls -l //View current directory file properties The operation results are as follows: -rwxrw-r-- 1 xdq book 1 Sep 7 16:41 read.c 10 characters are used to determine different user permissions. It is divided into four parts: ...

Added by bouncer on Tue, 07 Sep 2021 22:58:51 +0300

Week 1 of LeetCode

Sword finger Offer22. The penultimate node in the lin k ed list OJ link: https://leetcode-cn.com/problems/lian-biao-zhong-dao-shu-di-kge-jie-dian-lcof/ Title: enter a linked list and output the penultimate node in the linked list. In order to conform to the habit of most people, this question starts from 1, that is, the tail node of the l ...

Added by Dilbert137 on Tue, 07 Sep 2021 22:47:21 +0300

[2013 Hunan University 829 postgraduate entrance examination questions]

2013 Hunan University postgraduate entrance examination questions 1, Single choice questions (20 * 1 = 20 points) Some data is lost, please forgive me! In the following statement, the definition of p as a pointer array is (A) A,int* p[4] B,int ( * p)[4] C,int*p(4) D,int(*p)(4) 2, Briefly answer the following questions (1 * 20 = 20 poin ...

Added by roustabout on Mon, 06 Sep 2021 06:21:41 +0300

1/0 SDL creation window and color filling

What is SDL? SDL is actually a function library convenient for game development. SDL provides several functions to control image, sound, output and input, so that developers can develop application software across multiple platforms (Linux, Windows, Mac OS X, etc.) with the same or similar code. What's the use of learning SDL? At present, SDL ...

Added by andrew_ww on Sun, 05 Sep 2021 08:15:41 +0300

[advanced C language] address book implemented in C language (simple version)

preface: We need to use C language to simulate an address book, which can be used to store the information of 1000 people Everyone's information includes: Name, telephone number, gender, address and age Functions include: New contactfind contact Delete Contact Modify contactView all contactsSort all contacts by name Note: This vers ...

Added by bh on Sat, 04 Sep 2021 21:38:44 +0300