[Introduction to S32K3 GPIO & interrupt use]
Routine introduction
Routine selection:
Selection criteria:
The level of peripherals after Dio opens is shown in the following figure: Siul2 opens the peripheral hierarchy as shown in Fig.
Use of GPIO
General GPIO
Pin level control requires the following modules to be added to the diver: Increase GPIO Clicking on the SIUL2 module ...
Posted by snidog on Sat, 08 Jan 2022 19:23:24 +0100
day09 package / eclipse uses / this / inherit / rewrite / super
catalogue
1, Package
1. Function of package:
2. How to declare a package?
3. How to compile packaged classes
4. How to run a packaged class
5. How to use the class of another package?
2, eclipse overview and basic interface
1. Installation steps
2. New project
3, Using eclipse: colors and fonts
4, Using eclipse: running and charact ...
Posted by jdadwilson on Fri, 07 Jan 2022 17:43:56 +0100
JAVA day05: Code exercise (Methods of classes and objects)
Topic 1: definition and application of method
Training points: Properties of class Class method Requirement description Write telephone cards
Implementation idea: 1. Define mobile card 2. Define its attributes and methods
public class MobileCard {
public String num;//Card number
public String name;//user name
public String password;//pass ...
Posted by roninblade on Tue, 04 Jan 2022 07:06:34 +0100
Collections in Java
Single column collection
ArrayList
Variable array, default capacity 10. Automatically move the following elements after inserting them
Not thread safe
Vector
The main difference from ArrayList is that the thread of Vector is safe, and other usage methods are consistent with ArrayList
LinkedList
The bottom layer is realized by two-way lin ...
Posted by jwilh on Sun, 02 Jan 2022 19:43:36 +0100
Send mail with JavaMail
I Mail protocol:
Sending and receiving mail has the same mail transmission protocol as HTTP protocol
SMTP: (Simple Mail Transfer Protocol) POP3: (Post Office Protocol Version 3) mail receiving protocol IMAP: (Internet Message Access Protocol)
II Mail sending and receiving diagram
1. Send mail to the same mail server (163 mailbox example): ...
Posted by wenquxing on Fri, 31 Dec 2021 06:22:01 +0100
Java day17: multithreading (the last knowledge lesson of Java SE)
1, Program, process and multitasking
A program is a collection of codes that describe and operate data. It is a script executed by an application program.
Process is an execution process of a program and the basic unit for the system to run the program.
The program is static and the process is dynamic. A system running a program is a process ...
Posted by lemonpiesaregood on Sat, 25 Dec 2021 15:18:07 +0100
JAVA day07: Code exercise (inheritance)
Topic 1: application of inheritance
Define Pet, Cat and Dog 1. Pets have attribute name s and ages 2. Pets have ways to eat, drink and shout 3. Cats have a way to climb trees 4. Dogs have police methods
//Pets
public class Pet {
public String name;
public int age;
public void eat(){
System.out.println(name+"Can eat");
}
public void d ...
Posted by bluemonster on Fri, 24 Dec 2021 17:54:36 +0100
Eight common internal sorting algorithms implemented in Java
catalogue
1, Insert class sort
1. Insert sort2. Hill sortComplexity analysis2, Exchange class sorting
3. Bubble sorting4. Quick sortComplexity analysis3, Select sort
5. Simple selection and sorting6. Heap sortingComplexity analysis4, Other internal sorting
7. Merge and sort8. Cardinality sortingComplexity analysisReference article: ...
Posted by elraj on Fri, 24 Dec 2021 16:14:03 +0100
Factory mode of design mode
Factory mode
First, let's look at the traditional design pattern
Now there is a demand: the production of Xiaomi mobile phones
Mobile interface
//Mobile interface
public interface Phone {
void make();
}
Xiaomi mobile phone
//Xiaomi mobile phone
public class MiPhone implements Phone {
public MiPhone() {
this.make();
}
...
Posted by iBuddy Media on Wed, 22 Dec 2021 12:41:37 +0100
Java8 Stream and lambda usage
Stream
It is used to perform various operations and operations on the data in the collection, such as filtering, sorting, mapping... Finally get the result
The collection focuses on the storage of data, and the Stream stream focuses on the operation and operation of the data stored in the collection
Use steps
Gets the object of a Stream s ...
Posted by dpluth on Tue, 21 Dec 2021 07:08:42 +0100