From the zero build omnidirectional chassis 2-Chinese font installation

... 先上段视频. . . . Can't upload video. . . Let me talk about how to install Chinese fonts in the Raspberry Pi. The Raspberry Pi uses English fonts by default, and there is no pre-installed Chinese font in the system, so even if you change to Chinese in locale, it will not display Chinese,...


Mpp's deployment

... mpp is some of the drivers, libraries, etc. that others have written, and we need to deploy them. 一, mpp file structure The following operations require the development board to start the automatic mount host: (1) Add the IP address of the network card in the profile of the onboard...


The condition of pwnable.kr-leg-mistake-shellshock

... leg #include <stdio.h> #include <fcntl.h> int key1(){ asm("mov r3, pc\n"); } int key2(){ asm( "push {r6}\n" "add r6, pc, $1\n" "bx r6\n" ".code 16\n" "mov r3, pc\n" "add r3, $0x4\n" "push {r3}\n" "pop {pc}\n" ".code 32\n" "pop {r6}\n" ); } int key3(){ asm("mov r3, lr\n"); }...


Stm32 button external interrupt, how to debounce

... Discuss how the external interrupt of the button under stm32 can effectively debounce The project code is directly configured using stm32 cubeMX, let's discuss it together. 1. In the interrupt processing service function, comment clear the interrupt flag statement to prevent the button...


AT89C51 through the 74HC595 latch control flow lamp ------- proteus simulation

... 先上图 图, through the microcontroller P2^0, P2^1, P2^3 will pass the control signal through the lock The memory is transferred to the LED to implement a water flow applet. The main program is as follows: #include<reg51.h> #include<intrins.h> #include<74HC595.H> Void Delay...


The keyword volatile

... 1、volatile volatile keyword in C language is used to indicate that the variable is variable in the C language, telling the compiler not to cache the variable, that is, to access the memory access every time the change is accessed, it will not be accessed. The variable is cached in the...


The method of running multiple Python files in Ubuntu/ROS system

... Run multiple Python files can be used to write a launch file. After the launch file is newly created, it needs to be saved in the package corresponding to the multiple Python files. Under the main file of the package file, create a new launch folder and save the newly created launch...


Interesting algorithm (continuous update)

... Returns the number of 1 in the binary size_t countOf1(int num) { size_t count=0; while(num) { num&=num-1; ++count; } return count; } Returns the power series of 2 larger than x: int pow2gt (int x) { --x; x|=x>>1; x|=x>>2; x|=x>>4; x|=x>>8; x|=x>>16;...


At the beginning of the small program, we started

... 0. Introduction With the development of the times, we need to touch an emerging program style, that is, a small program, although now Bat has launched its own small program, WeChat Small programs (Tencent), Alipay applets (Ali) and smart applets (Baidu), but due to limited energy, we...


The display of the digital digital tube of the single-chip microcomputer 1-8

... C51 three methods to solve the dynamic display of the digital tube, so that the digital tube displays 1-8 numbers. The code for the three methods is as follows. At this point, the reader needs to pay great attention to the order of the pins in your code, otherwise the expected effect...