STM32 uses a timer channel to control any IO to output the same PWM wave
Abstract: this blog introduces a method that STM32 uses a timer channel to control any IO to output the same PWM wave. The hardware platform used in this paper is STM32F407VET6. The codes of other types of platforms may be different, but the principles are general.
Implementation principle: we all know that STM32 can directly output PWM wa ...
Posted by zuperxtreme on Sat, 20 Nov 2021 18:45:47 -0800
A thinkphp package that can easily generate CSV files from Eloquent models.
composer require whereof/think-csv
$users = User::select(); // All users
$csvExporter = new \whereof\think\csv\Export();
$csvExporter->build($users, ['email', 'name'])->download();
Create CSV
$exporter - > build ($modelcollection, $fields) requires three parameters. The first is the model (a collection of models), the second is t ...
Posted by ckdoublenecks on Sat, 20 Nov 2021 18:43:41 -0800
MyBatis - use of basic annotations
0. Project construction
Still the same, let's build a new project first mybatis-04-annotation , Copy and paste all the files from the previous project and simplify them.
Streamlined code, just streamline it mybatis-config.xml You can:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration
...
Posted by Forever_xxl on Sat, 20 Nov 2021 18:41:11 -0800
[problem solution] lecture 100 on zero basics of algorithms (Lecture 31) multidimensional enumeration - Introduction
1, Recommended column
Lecture 100 on zero basis of algorithms (Lecture 31) multidimensional enumeration (I) - Introduction
2, Multidimensional enumeration
multidimensional enumeration is actually nesting loops, such as two-dimensional enumeration: nesting a for loop in a for loop.
#incldue <stdio.h>
int main(){
i ...
Posted by CerealBH on Sat, 20 Nov 2021 18:29:05 -0800
Complete and detailed Redis learning notes
Learning reference Videos: [crazy God says Java] Redis
Redis
1, Overview of redis
redis is a non relational database.
1. Introduction to non relational database
A non relational database, that is, NoSQL (Not Only SQL).
Relational database: column + row. The data structure under the same table is the same.
Non relational database: data ...
Posted by tofi84 on Sat, 20 Nov 2021 18:29:15 -0800
C language -- first knowledge of pointer
What is the pointer
In computer science, a pointer is an object in a programming language. Using an address (memory number), its value directly points to a value stored in another place in computer memory. Since the required variable unit can be found through the address, it can be understood that the address points to the change unit. The ...
Posted by Mhz2020 on Sat, 20 Nov 2021 18:25:54 -0800
Data structure - sequential stack [c language version]
A stack is a linear table that can only be inserted or deleted at one end. (linear table with limited operation)
The stack can only insert or delete elements at the end of the table. The end of the table is the top of the stack, and the header is the bottom of the stack
Main features of stack: ...
Posted by stephenf33 on Sat, 20 Nov 2021 18:11:39 -0800
VTK notes - use the vtkSplineFilter class to work with 3D space curves
Note before VTK notes - graph correlation - segment smoothing - vtkSplineFilter class I learned that vtkSplineFilter class is used to refine the input data of multiple line segments and output a set of points with more line segments; vtkSplineFilter can be used not only for interpolation, but also for sampling; The interpolation or sampling met ...
Posted by Lagreca on Sat, 20 Nov 2021 18:00:21 -0800
(vscode) C + +, SFML write game applet ----- note1
Call the SFML class and draw several small shapes to the window. (window class, shape class)
#include <SFML/Graphics.hpp>
int main()
{
//create a window
sf::RenderWindow window(sf::VideoMode(640, 480), "SFML Application");
//create a circle shape
sf::CircleShape cShape;
cShape.setRadius(40.f);
cShape.set ...
Posted by randydg on Sat, 20 Nov 2021 17:52:15 -0800
Top 1 scheme of iFLYTEK 2021 advertising click through rate estimation challenge
Hello, as a beginner of machine learning, I participated in 2021 iFLYTEK AI developer competition some time ago. The team name is "write a story" I participated in the big data competition for the first time. I mainly chose the relatively easy structured data competition. Among the five competitions, three entered the top five (advert ...
Posted by RClapham on Sat, 20 Nov 2021 17:44:24 -0800