Control LED light equipment
Essence: create corresponding device node files for hardware devices
When creating equipment files, specify the use of equipment files.
Control the hardware according to the device file usage specified by the driver
Control hardware equipment steps
1. Find the device node file corres ...
Added by Grimloch on Sat, 26 Feb 2022 13:11:19 +0200
C language programming (Chapter 8 establishing data types)
1, Defining and using structure variables
1. Create your own structure type
C language allows users to establish a combined data structure composed of different types of data, which is called structure
If you want to use the data s ...
Added by itaym02 on Sat, 26 Feb 2022 09:07:29 +0200
Why do I need arrays?
When we create a small number of variables of the same type, we usually create them one by one, but when we create more and more variables of the same type, it's not practical to create variables one by one. We'd better create many variables at a time. By introducing an array, we can create many variables of the same type ...
Added by Redapple on Fri, 25 Feb 2022 20:45:18 +0200
1. Operator classification
arithmetic operatorShift operators Bitwise operators Assignment operatorunary operator Relational operatorLogical operatorConditional Operator comma expression Subscript references, function calls, and structure members
Here is a supplementary introduction to binary
1 . First of all, it sh ...
Added by atawmic on Thu, 24 Feb 2022 17:53:35 +0200
Basic knowledge of documents
What is a file?
This is very simple. We usually click the right mouse button and create a new folder. This is to create a file. For example, each folder in our disk is a file. We usually give a meaningful file name to prevent it from being found next time.
Why use files?
For example, when we write an address boo ...
Added by Lee-Bartlett on Thu, 24 Feb 2022 13:30:32 +0200
Comprehensive analysis of C array
The value of the array name is a pointer constant, that is, the address of the first element of the array Its type depends on the type of array element
There are only two situations where array names are not represented by pointer constants-------
① sizeof (array name), calculate the size of the ...
Added by Kardall on Thu, 24 Feb 2022 12:48:48 +0200
Adjacency matrix (note the directed adjacency matrix graph implemented here)
The adjacency matrix of a graph is stored in two arrays. A one-dimensional array stores the vertex information in the graph, and a two-dimensional array (adjacency matrix) stores the edge or arc information in the graph. Let graph G have n vertices, then the adjacency ...
Added by smartknightinc on Thu, 24 Feb 2022 12:17:08 +0200
A string representing a numeric value
1, Title Description
Please implement a function to judge whether the string represents a numeric value (including integer and decimal).
The values (in order) can be divided into the following parts:
A decimal or integer
((optional) one 'e' or 'E' ，Followed by an integer
Added by Renlok on Thu, 24 Feb 2022 11:11:30 +0200
DHT11 is a wet temperature integrated digital sensor. The sensor includes a resistive humidity measuring element and an NTC temperature measuring element, and is connected with a high-performance 8-bit single chip microcomputer. Through the simple circuit connection of MCU and other microprocessors, the local humidity and t ...