Linux programming to realize DS18B20 to detect the temperature of raspberry pie

Catalog (1) Project introduction (two) code and debugging (3) Summary (1) Project introduction DS18B20 is a commonly used digital temperature sensor. Its output is a digital signal, which has the characteristics of small size, low hardware cost, strong anti-interference ability and high precision. T ...

Posted by ramblix on Tue, 03 Mar 2020 11:04:52 +0100

Run time: message mechanism

Runtime series Run time (1): first stepRun time (2): data structureRun time (3): message mechanismOn the essence of Runtime (4): super Run time (5): specific application Run time (6): related interview questions 1. Call process of objc_msgsend method The method calls in OC are actually all the cal ...

Posted by sh0wtym3 on Tue, 25 Feb 2020 13:28:54 +0100

C language block level variables

Code block is the code surrounded by {}. Code block can be seen everywhere in C language, such as function body, selection structure, loop structure, etc. C language programs that do not contain code blocks cannot run at all. Even the simplest c language programs must contain code blocks. C language all ...

Posted by pneudralics on Mon, 24 Feb 2020 07:37:31 +0100

Using ffmpeg to split the video file into several ppm pictures

Using ffmpeg to split the video file into several ppm pictures thinking Get path - > unpack - > get video stream information - > decode - > YUV420 to RGB - > store in ppm format. Pseudo code step1. Registration Step 2. Open audio and video files Step 3. Get audio and video stream st ...

Posted by iBlizz on Sun, 23 Feb 2020 05:29:45 +0100

Porting FreeModbus based on RT-Thread

Platform: Positive Atom STM32F407 Explorer Development Pad + FreeModbus V1.6 + RT-Thread Source link: https://www.embedded-solutions.at/en/freemodbus-downloads/ The source list is shown in the figure. The files needed include the ports related files in the modbus folder and demo folder. The location of the ports is shown below. Within the BAS ...

Posted by 4evernomad on Fri, 21 Feb 2020 03:42:13 +0100

Chapter 4: data analysis with python

This chapter focuses on the basics of NumPy. Because NumPy provides a very easy-to-use C language API, the data can be passed to the external class library written in the underlying language, and then the external class library will return the calculation results in the way of NumPy array. This feature ...

Posted by sun373 on Mon, 17 Feb 2020 10:52:15 +0100

7-45 find completion (20 points)

The so-called completion is that the number is exactly equal to the sum of the factors except oneself. For example: 6 = 1 + 2 + 3, where 1, 2 and 3 are factors of 6. This problem requires programming to find all the completions between any two positive integers m and n. Input format: Input two positive integers m and n (1 < m ≤ n ≤ 100 ...

Posted by SN1P3R_85 on Thu, 13 Feb 2020 20:17:20 +0100

DataMatrix identification and location project notes -- DataMatrix generator based on QT+libdmtx-0.7.5

The project of generating DataMatrix based on qt and libdmtx, DataMatrix open source coding and identification Library: github of libdmtx: https://github.com/dmtx/libdmtx; The complete project I wrote in qt is: https://github.com/abcvincent/dmtxMaker; GitHub - > doc contains DataMatrix intern ...

Posted by Dan Coates on Sat, 01 Feb 2020 16:06:54 +0100

Using Python to solve two written test questions from Alibaba music system

Catalog Catalog Preface Topic 1 Analysis Realization Topic two Analysis Realization Preface When a friend comes to Ali for an interview and shares two small questions, the blogger will try to solve them in Python when he is free. There must be many ways to realize them, and the advantages and disadvantages wi ...

Posted by SystemOverload on Wed, 29 Jan 2020 17:08:27 +0100

Data structure (C language) - fast multiplication of sparse matrix

Refer to data structure (C Language Edition) - Yan Weimin, WU Weimin, Tsinghua University Press Structure definition of sparse matrix typedef struct { int i, j; //Row and column subscripts of the non-zero element ElemType e; //Value corresponding to non-zero element }Triple; typedef ...

Posted by Allen4172 on Tue, 21 Jan 2020 17:49:48 +0100