10, Linux development board controls LED light equipment
Control LED light equipment
Driver
Essence: create corresponding device node files for hardware devices
When creating equipment files, specify the use of equipment files.
application program
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)
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
numbernamesexagescoreaddr10010luxinanM1987.5Beijing
If you want to use the data s ...
Added by itaym02 on Sat, 26 Feb 2022 09:07:29 +0200
C Language Array
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
C language: file operation
catalogue
1, Classification of documents
2, File pointer
3, Open and close files
4, How to read and write files
1. Sequential reading and writing of documents
1. fputs write file
2. fgetc reads files
3. fputs write file
4. fgets reading files
5. fprintf write formatted data
6. fscanf read formatted data
7. fwrite binary write fil ...
Added by plus2net on Fri, 25 Feb 2022 11:33:10 +0200
C language series - Section 5 - detailed explanation of operators
1. Operator classification
arithmetic operatorShift operators Bitwise operators Assignment operatorunary operator Relational operatorLogical operatorConditional Operator comma expression Subscript references, function calls, and structure members
1.1 binary
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
Basis of documents
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
Comprehensive analysis of C array
Array name
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 implementation based on C++
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
C + + algorithm determines whether the string is a numeric value
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:
Several spaces
A decimal or integer
((optional) one 'e' or 'E' ,Followed by an integer
Several ...
Added by Renlok on Thu, 24 Feb 2022 11:11:30 +0200
STM32---DHT11 temperature and humidity module
DHT11 module
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 ...
Added by Addos on Thu, 24 Feb 2022 08:47:47 +0200