Foreword: The MT6701 magnetic encoder has a variety of reading methods, but the SSI and IIC reading methods are generally used more often. The blogger here uses the IIC driving method. The configuration of software and hardware is as follows, with source code attached, hoping to help more people. This article recommends two blogs: STM32 […]
Tag: simulate
Simulate the string class–[C++]
W…Y’s homepage Code repository sharing Foreword: We have already understood and mastered all the important interfaces of the string class in STL. In order to give us a deeper understanding of string and C++ classes and objects, our blog will simulate and implement the string class. Table of Contents Simulation implementation of string class Constructor […]
Use JMeter to simulate multiple IPs to send requests (IP spoofing)
Preface: If you are proficient in LoadRunner, you can directly use LoadRunner for IP spoofing. Here is an introduction to how to use JMeter for IP spoofing. IP spoofing usage scenarios 01. How to set up IP spoofing in JMeter 1. Obtain available IP Before configuring IP spoofing, you need to obtain unoccupied IP addresses […]
[SpringBoot] Handwriting simulates the core process of SpringBoot
Dependency package Create a new project containing two modules: springboot module, representing springboot source code implementation;The user module represents the business system and uses the springboot module; Dependency packages: Spring, SpringMVC, Tomcat, etc., introduce dependencies as follows: <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>5.3.18</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>5.3.18</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>5.3.18</version> </dependency> <dependency> <groupId>javax.servlet</groupId> […]
C++ uses thread pool to simulate asynchronous event processing mechanism
There are asynchronous event processing mechanisms in many C++ frameworks, which makes us often confused and difficult to understand when looking at the source code. The programming routines contained in it may be some mature technologies that we are not familiar with, such as WebRTC. It is similar to Qt’s signal and slot mechanism, thread […]
[Update] C language simply simulates Gaussian ants: random walk problem (compressed version)
At the request of some people, the number of lines of code has been violently compressed. If it is not easy to read, please see [Update] C language to simply simulate Gaussian ants: random walk problem #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #include <Windows.h> #include <time.h> #include “unistd.h” #define NumberOfAnts 100///Constant […]
Python win32api.keybd_event simulates keyboard input
win32api.keybd_event The function prototype: keybd_event(bVk, bScan, dwFlags, dwExtraInfo) The first parameter: virtual key code (see the appendix for the keyboard key code comparison table); The second parameter: hardware scan code, generally set to 0; The third parameter: a flag bit for function operation. If the value is KEYEVENTF_EXTENDEDKEY, the key is pressed. It can also […]
Use JMeter to simulate multiple IPs to send requests (IP spoofing)
Preface: If you are proficient in LoadRunner, you can directly use LoadRunner for IP spoofing. Here is an introduction to how to use JMeter for IP spoofing. IP spoofing usage scenarios 01. How to set up IP spoofing in JMeter 1. Obtain available IP Before configuring IP spoofing, you need to obtain unoccupied IP addresses […]
[Update] C language simply simulates Gaussian ants: random walk problem
Previous article Portal: C language simply simulates Gaussian ants: random walk problem (graphical) 1. Update content Note: The code shared in the previous article will not be repeated here. 1. Fixed coordinate system In C language, we can use printf to change the position of the cursor, thereby changing the starting position of printing. When […]
Use QEMU to simulate starting uboot
For related knowledge of uboot, you can refer to: Basic concepts of uboot. 1. Environment configuration WSL: ubutu20.04 Analog development board: vexpress-a9 uboot version: u-boot-2023.10 2. Install QEMU 2.1. Install sudo apt install qemu 2.2. Check which development boards are supported qemu-system-arm -M help The results are as follows: Supported machines are: akita Sharp SL-C1000 […]