[C++ Breaking] Generic Programming | Function Templates | Class Templates

?Author homepage lovewold less r blog homepage Key points of this article: Explanation of basic knowledge points of c + + templates [C-C++ Getting Started Series Column]: Blog article column portal Word of the Day: Flowers bloom again, and people are no longer young Directory Preface Generic programming function template Function template concept Function template […]

Android system properties (SystemProperties)

1. System properties System properties are key-value pairs with special meanings in the system. We sometimes need to use system properties during the development process, such as getting the system software version, getting the device name, etc. Sometimes we also need to set custom properties. System properties are global and easy to access. 2. Get […]

[Proteus simulation] [STM32 microcontroller] Multi-channel temperature control system

Article directory 1. Function introduction 2. Software design 3. Experimental phenomena Contact the author 1. Function introduction This project uses Proteus8 to simulate the STM32 microcontroller controller, using buttons, LEDs, buzzers, LCD1602, DS18B20 temperature sensor, HC05 Bluetooth module, etc. The main function: After the system is running, LCD1602 displays the temperature collected by the first […]

[Proteus Simulation] [51 Microcontroller] Multi-channel temperature control system

Article directory 1. Function introduction 2. Software design 3. Experimental phenomena Contact the author 1. Function introduction This project uses Proteus8 to simulate the 51 microcontroller controller, using buttons, LEDs, buzzers, LCD1602, DS18B20 temperature sensor, HC05 Bluetooth module, etc. The main function: After the system is running, LCD1602 displays the temperature collected by the first […]

IIC protocol reads temperature and humidity data (HAL library)

Directory 1. I2C bus protocol 1.1. Introduction to I2C 1.2. Hardware I2C 1.3. Protocol layer 1.3.1 I2C communication composite format 1.3.2 Start and stop signals of communication 1.3.3 Data validity 1.3.4 Address and data direction 1.3.5 Response 2. IIC protocol reads temperature and humidity data 2.1 Experimental content and AHT20 2.2 CubeMX configuration 2.2.1 System […]

STM32F103 realizes temperature and humidity (AHT20) collection through IIC protocol

STM32F103 realizes temperature and humidity (AHT20) collection through IIC protocol Article directory STM32F103 realizes temperature and humidity (AHT20) collection through IIC protocol 1. IIC Agreement 1. Introduction to IIC protocol 2. Physical layer and protocol layer 3. Software IIC and hardware IIC 2. Temperature and humidity collection 1. IIC protocol 1. Introduction to IIC protocol […]

oracle switches temporary table spaces, creates indexes, creates temporary tables, and creates large and small table spaces

1. The temporary table space of the switched database is temp1/the undo table space of the switched database is undotbs01 1. View the table space of the current database select tablespace_name from dba_tablespaces; It was found that there are no above two table spaces. 2. Create temp1 temporary table space and undotbs01 table space #Create […]

STM32 I2C communication protocol and temperature and humidity sensor module

Learn the I2C bus communication protocol, use STM32F103 to complete the data collection of the AHT20 temperature and humidity sensor based on the I2C protocol, and output the collected temperature-humidity values through the serial port Article directory 1. Preliminary knowledge (1) I2C communication protocol (2) I2C physical layer (3) I2C timing (4) Hardware I2C and […]

408 [Data structure] Single linked list_template class_source code module

Implementation source code Source code module my_check.hpp #ifndef MY_CHECK_HPP #define MY_CHECK_HPP #include<stdexcept> #include<iostream> #include”my_config.h” #if _GLIBCXX_VER #define CHECK(x, y) check_pointer_range::check(x, y) #else #define CHECK(x, y) #endif #if _GLIBCXX_VER #define CHECK_N_PTR(x) check_nullptr::check(x) #else #define CHECK_N_PTR(x) #endif #if _WIN32 #define DEBUG() std::cerr << __LINE__ << “\ ” #else #define DEBUG() #endif // _WIN32 struct check_pointer_range { template<typename […]

RestTemplate configuration and usage

In the project, if you want to call a third-party http service, you need to initiate an http request. Common request methods: The first one is to use java natively to initiate an http request. This method does not require the introduction of a third-party library, but the connection cannot be reused. , if you […]