51 Single-chip computer-lcd1602 driver
51 Single-chip computer-lcd1602 driver
This paper describes and summarizes the driver of 51 single-chip computer external lcd1602. The clock circuit of 51 single-chip computer uses 12MHz crystal oscillation, P0 port external pull-up resistance is connected with LCD1602 data port D0-D7, P2.7 and LCD160 ...
Added by phenley on Sat, 22 Feb 2020 04:54:57 +0200
Sorting algorithm -- hill and fast sorting
1. Hill sorting
1.1 problems in simple insertion sorting
Let's look at the possible problems with simple insertion sorting
Array arr = {2,3,4,5,6,1} at this time, the number 1 to be inserted (minimum) is as follows:
{2,3,4,5,6,6}
{2,3,4,5,5,6}
{2,3,4,4,5,6}
{2,3,3,4,5,6}
{2,2,3,4,5,6}
{1,2,3,4,5,6}
...
Added by acirilo on Fri, 21 Feb 2020 08:08:54 +0200
RK3399 - kernel state access to EEPROM
. The linux kernel provides a complete 24 series EEPROM driver, which is located in the "kernel/drivers/misc" directory (at24.c), and can ...
Added by bike5 on Thu, 20 Feb 2020 14:04:51 +0200
Learn java 8 together -- ForkJoin
Let's learn about the use of reduce in Java8 (7) - Stream. The bottom layer of parallel flow is the branch / merge framework.
The core idea of the branch / merge framework is to split a large task into multiple subtasks, and then integrate the execution results of each subtask to return a final result.
ForkJoinPool
The core class of the branch ...
Added by Snorkel on Thu, 20 Feb 2020 09:54:11 +0200
Learning notes of design mode: (11) sharing mode
This note is excerpted from: https://www.cnblogs.com/PatrickLiu/p/7792973.html Record the learning process for future reference.
I. Introduction
Today, we are going to talk about the sixth pattern of structural design pattern - the sharing element pattern. First, from the name, the sharing element can be understood in this way - sharing "u ...
Added by beckjo1 on Wed, 19 Feb 2020 06:44:15 +0200
k-nearest neighbor algorithm
KNN overview
k-nearest neighbor (KNN) algorithm is a basic classification and regression method.
As a supervised classification algorithm, it is one of the simplest machine learning algorithms. As the name implies, the main idea of its algorithm is to determine its own category according to the ne ...
Added by Kinneh on Mon, 17 Feb 2020 08:11:49 +0200
ThreadPoolExecutor Thread Pool Source Analysis
ThreadPoolExecutor Thread Pool Source Analysis
White teeth want to say
I haven't updated it for a long time, not because I didn't learn, but because I didn't know how to write it. At the same time, there was a voice telling me that public numbers are flying all over the world. There are more people writing public numbers than reading public nu ...
Added by itbegary on Fri, 14 Feb 2020 04:55:32 +0200
Zuoshen algorithm 3: stack, queue, linked list, matrix structure and related exercises
1, Stacks and queues
Topic 1: using fixed size array to realize stack and queue
Fixed size array implementation stack
public class StackWithArray {
private int[] array;
private int index; //Point to the location to be placed
public StackWithArray(int initialSize){
if(initialS ...
Added by pjkinann on Wed, 12 Feb 2020 13:09:59 +0200
[intermediate project of niuke.com] lesson 4 registration, login and browsing security
[intermediate project of niuke.com] lesson 4 registration, login and browsing security
Catalog
Article directory
[intermediate project of niuke.com] lesson 4 registration, login and browsing security
1. registration
1.1 registration function:
1. User name validity detection
2. Password length ...
Added by bostonmacosx on Mon, 10 Feb 2020 11:34:05 +0200
Executor thread pool for java Concurrent Programming
Executor thread pool for java Concurrent Programming
1 Thread-Multithread-Process
a. Threads:
Threads are an entity of a process and the basic unit for CPU scheduling and allocation. Threads are smaller than processes and can run independently.Threads themselves have little system resources and only ...
Added by M. Abdel-Ghani on Mon, 10 Feb 2020 04:39:56 +0200