OpenHarmony HDF key interrupt development based on little bear hm micro

This chapter uses gpio interrupt to realize key driving, and the focus is to understand HDF gpio framework 1, Driver code Refer to the preparation of led driver in the previous chapter to realize the driver in this chapter. You can repeat it according to the writing steps of led driver in the previous chapter. The difference between ...

Posted by ThEMakeR on Wed, 02 Feb 2022 03:13:40 +0100

STM32 vernacular tutorial built-in key module and external key detection let you understand the key module

What input mode is used to detect the input level signal? Simply remember: Detection port input low level 0 requires pull-up GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPU; Detection port input high level 1 needs to use pull-down GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPD; You don't know the schematic diagram of your external key and wha ...

Posted by ifubad on Tue, 28 Dec 2021 00:03:00 +0100

Based on the register mode of STM32F103GPIO pin, the LED water lamp is lit

1, Address and register mapping In STM32F103 chip, the controlled units including peripherals such as FLASH, RAM and other functional components are arranged in a 4GB address space. We can find them through their addresses during programming, and then operate them to read and write data. The memory itself does not have address information. It ...

Posted by miesemer on Fri, 22 Oct 2021 06:37:57 +0200