ds18b20 temperature acquisition

Program design of temperature value display of DS18B20 I Characteristics of DS1820 single line digital thermometer • unique single line interface requires only one port pin for communication • simple multipoint distribution applications • no external components required • power supply via data line • zero standby powe ...

Added by ev5unleash on Fri, 04 Mar 2022 00:47:51 +0200

Deep understanding of Linux signals

Signal generation Concept of signal Signaling is a way of asynchronous notification of events between processes, which belongs to soft interrupt Generation method: Generate a signal to the process through the terminal keyboard. If the process can terminate the program by pressing "ctrl + c" when running, it is actually sending ...

Added by noiseusse on Thu, 03 Mar 2022 16:32:48 +0200

CCF CSP certification 2020-09-2 "risk population screening" problem solving ideas and full score code

Problem description Topic background After the outbreak of an epidemic in a certain place, we want to inform all residents who have recently passed through the high-risk area to participate in nucleic acid testing in accordance with the principle of "testing as much as possible". Problem description In order to find out the re ...

Added by Death_Octimus on Thu, 03 Mar 2022 08:22:13 +0200

Advanced pointer

After we have learned the type of pointer, we think about how to apply it. Let's look at the code last time void menu() { printf("*******1.Add ************\n"); printf("******* 2.Sub ************\n"); printf("*********3.Mul *************\n"); printf("***********4.Div *************\n"); printf("***********0.exit ...

Added by OnePlus on Wed, 02 Mar 2022 12:57:30 +0200

Development Notes for embedded linux Driver

1, The first driver under Linux The drive is divided into four parts: Header file Inlet and outlet of drive module Declaration information Function realization The first step includes the header file 1 #include<linux/init. h> Header file containing macro definition 2 #include<linux/module. h> Header file containing initialization l ...

Added by Craig79 on Wed, 02 Mar 2022 12:25:02 +0200

C language series - Section 8 - Practical debugging skills

1. What is a bug? The moth that was found to cause a computer error for the first time is also the first computer program error. 2. What is debugging? How important is it? Everything that happens must have traces to follow. If there is a clear conscience, there is no need to cover up and there are no signs. If there is a guilty consc ...

Added by vponz on Wed, 02 Mar 2022 12:23:09 +0200

Huffman Coding Huffman tree

1, Experiment Name: Huffman Coding 2, Purpose of the experiment: Master the structure of Huffman tree;It can realize the basic operations of Huffman tree, such as construction, insertion, etcThe minimum heap is used to reduce the time complexity of Huffman tree.Master the data structure of the minimum heap and the characteristics of the struc ...

Added by Operandi on Wed, 02 Mar 2022 08:31:27 +0200

Gobang - C language entry-level games (nanny tutorial)

catalogue Rules of the game Game creation ideas Game design 1. Design of game menu page 2. Chessboard initialization 3. Chessboard printing 4. Players play chess 5. Computer chess  6. Judgment of victory and defeat "Start game" As the "big guys" on the road for the first time, they have learned the element ...

Added by wrathyimp on Wed, 02 Mar 2022 06:22:43 +0200

Operating system experiment (process scheduling)

1, Experimental purpose   1.1 understand the concepts of process control block and process queue.   1.2 master the processing logic of process priority scheduling algorithm and time slice rotation scheduling algorithm. 2, Experimental content    2.1 design the structure of process control block PCB, which is applica ...

Added by graham on Wed, 02 Mar 2022 04:39:17 +0200

Custom type: structure, enumeration, union

catalogue 1, Structure 1.1 declaration of structure 1.2 special declaration: anonymous struct type 1.3 structure self reference 1.4 definition and initialization of structure variables 1.5 structure memory alignment 1.5.1 why is there memory alignment? 1.6 modify the default alignment number  1.7 offsetof: 1.8 structural transmission ...

Added by jikishlove on Tue, 01 Mar 2022 16:20:59 +0200