STM8-按键切换灯的亮灭 #include "stm8s.h"#define ulong unsigned longvoid delay(ulong i){ while(i--);}//延时函数void main(void)////////////主函数{ unsigned char flag=0; GPIO_DeInit(GPIOD); GPIO_Init(GPIOD, GPIO_PIN_0, GPIO_MODE_OUT... 2023-06-13 STM8按键切换GPIO文章单片机STM32