STM32 has rich I / O resources, which makes the system easy to expand sensor devices and communication devicesEach I / O pin is used as the input port of external interrupt source. External interrupt function can also realize wake-up in low power consumption mode. Therefore, the spiritThe application of I / O is the key to realize the powerful function of the system.