I tried to use Yahei font under wince, the code is as follows AddFontResource(_T("\\storage card\\msyh.ttf")); HANDLE hFont, hOldFont; LOGFONT lf; memset(&lf,0,sizeof(LOGFONT)); lf.lfHeight = 24; lf.l...
[i=s]This post was last edited by xinmeng_wit on 2022-4-4 20:19[/i]1. Introduction to temperature sensor DS18B20The DS18B20 single-wire digital temperature sensor, also known as a "one-wire device", h...
Design an electronic reminder that can set more than 5 reminder events. Events can be represented by some codes. The maximum reminder event can be set to 1 year and the minimum is 10 seconds. There sh...
[b][color=black]In recent years, as LED technology matures, LED light sources are increasingly widely used due to their advantages of using low-voltage power supply, low energy consumption, strong app...
When Amazon launched its first
cloud computing
service, the outside world was not optimistic about this direction, as it had high investment, low profits and many uncertainties. Let's follo...[Details]
Chip: STM32F107VCT6 Application Pin: THOUSANDS, RMII STM32CubeMX is very convenient to use ETH. The software comes with LWIP and configuration. This time, STM32F107VCT6+DP83848CVV is used. The MII a...[Details]
This is my first time writing an STM32 program. I have many questions to ask. I want to convert the data of the SO of MAX6675 into the actual temperature and read it out using the serial port tool. I...[Details]
Although it is early summer, the Chinese smartphone market is still in the cold winter, just like Beijing in April with snow. For mobile phone brands caught in the middle, the cold is even more bit...[Details]
Analysts have sorted out some interesting phenomena. Let's follow the embedded editor to learn about the relevant content.
Huawei emerged as a star in the all-
flash
array sales ra...[Details]
This example is mainly to familiarize yourself with the register configuration of Timer A and the configuration method of IAR. /*********************************************** Program function: re...[Details]
sprintf is a function in the C language library that converts data types. There is a situation where In 51 MCU, define unsigned char temp; Then I want to use the serial port to print out temp in deci...[Details]
I have been working on a stm32 project recently and have been struggling with its startup method. I saw a good article and reposted it. The format of the original article is not very good, and there...[Details]
Note: This STM32 microcontroller is the STM32F103 series. The ADC of Stm32 has DMA function. This is beyond doubt and is what we use most! However, if we want to sample a signal (such as a pulse sign...[Details]
How to convert the pin voltage value into V using the built-in ADC of STM32? V(ADC) = Value(ADC) * V(ref)/4096 (The ADC of STM32 is 12 bits, so the maximum value of the AD word is 4096)
Where V(ADC...[Details]
6MHz crystal oscillator, using timer counter 1, using interrupt mode, through P1.0 to make a light emitting diode turn on for 100ms, turn off for 300ms, and repeat. Assembly programming is used to ac...[Details]
MSP430 MCU 1602 LCD 60-second timing program //************************************************************** // P3BIT5 connects to RS)-- (BIT7 connects to NE)-- (BIT6 connects to RW) //P4 port sends...[Details]
HT47 Timer Application include ht47c20.inc data .section 'data' int_count db ? io_count db ? code .section at 0 'code' org 00h jmp start org 04h reti org 08h reti org 0ch reti org 10h jmp...[Details]