Bluetooth remote control car based on STM32

Tip: after the article is written, the directory can be generated automatically. Please refer to the help document on the right for how to generate it preface This article introduces the Bluetooth remote control car based on STM32C8T6. There may be a lot of contents, but it is not hydrology, and the procedure is also explained in det ...

Posted by izbryte on Sat, 16 Apr 2022 11:16:36 +0300

C language -- file operation

1, Opening and closing of files First, you need to create a file pointer: FILE* pf;// File pointer variable Definition PF is a pointer variable pointing to data of type FILE. You can make pf point to the FILE information area of a FILE (which is a structure variable). The FILE can be accessed through the information in the FILE information ...

Posted by _DarkLink_ on Sat, 16 Apr 2022 10:15:43 +0300

MM32F3277 I2C accesses LPS22HH air pressure sensor

Foreword The wrong sensor was selected this week. The LPS22HB was selected as LPS22HH, and the document was written in vain 😫 Let's have a more CSDN, or we'll lose a lot. Similarities and differences between LPS22HB and LPS22HH Let's talk about their similarities and differences first Same point The address is the same (so I looked at HH' ...

Posted by tysonrileyreznor on Sat, 16 Apr 2022 09:57:36 +0300

Branch and loop statements (C language)

1.if statement Syntax structure: If (expression) Statement; If (expression) Statement 1; else Statement 2; //Multi branch If (expression 1) Statement 1; Else if (expression 2) Statement 2;         else Statement 3; #include <stdio.h> int main() { int a = 0; int b = 2; if(a == 1) { if(b == 2) { ...

Posted by Tryweryn on Sat, 16 Apr 2022 03:19:49 +0300

First understanding of the idea of partition and rule (notes of runners)

Shuwen's future goal: enter the big factory~ 🤪. Let my family relax and try to make life better, okay! Shu Wen's current situation: big dish chicken, from food to code, has made many learning friends (great) 👍) Blog purpose: writing a blog is to record your learning path It's also to brighten the interviewer's eyes, and then pretend to b ...

Posted by califdon on Sat, 16 Apr 2022 01:35:25 +0300

Dynamic memory management ---- malloc, free, calloc, realloc; Common dynamic memory errors

catalogue 1, malloc 2, free 3, calloc 4, realloc Required header file: include < stdlib h> 1, malloc, free Function: void* malloc (size_t size); Introduction: this function applies for a continuously available space from memory and returns a pointer to this space. If the development is successful, it returns a pointer to the deve ...

Posted by gmcalp on Fri, 15 Apr 2022 18:33:28 +0300

C language - array exercises

Topic 1: diagonal elements and Find the sum of diagonal elements of a 3 * 3 integer matrix. Solution: For us, when we don't know what diagonal is, we can't find the sum of diagonal elements. Therefore, to make the computer calculate, you have to tell the computer which elements are diagonal elements. Here we need to give a feature to ...

Posted by Holoverse on Fri, 15 Apr 2022 10:53:41 +0300

[Leetcode] 2 questions: thoroughly understand stacks and queues

preface 🎬 OK, I specifically learned the knowledge of stack and queue. Then the main content of this blog is to do three OJ questions. After learning, we must brush the questions in time to deepen our understanding and consolidation. Otherwise, it is difficult to make progress, which is conducive to our better learning of stack and queue of ...

Posted by PHP_TRY_HARD on Fri, 15 Apr 2022 03:00:49 +0300

Preprocessing and function types

1, Macro definition 1.1 macro definition without parameters #define PI 3.14159 It is generally expressed in uppercase letters to distinguish it from variable names #define SIDE 5 #define PERIMETER 4 * SIDE #define AREA SIDE * SIDE #define STAND "you are girl" printf(STAND); Note: If there is a macro name in the string, it will n ...

Posted by aouriques on Thu, 14 Apr 2022 23:19:09 +0300

Discuss the timeout problem of the contact algorithm on LeetCode

Some students may not have a concept of the speed of the computer, but feel that the computer should run very fast. Then why do they timeout when doing algorithm problems on LeetCode? How many operations can a computer 1s perform? Next, let's explore this problem. 1. Reasons for timeout Everyone should have encountered an error when pra ...

Posted by kol090 on Wed, 13 Apr 2022 08:51:51 +0300