仅仅是巡线程序,程序简单一看就懂的那种 #include "led.h" #include "delay.h" #include "key.h" #include "sys.h" #include "beep.h" int main(void) { vu8 key=0; delay_init(); LED_Init(); BEEP_Init(); KEY_Init(); while(1) { if(KEY0==1&&KEY1;==1) stright(); if(KEY0==0&&KEY1;==1) left(); if(KEY0==1&&KEY1;==0) right(); } }
2021-06-24 16:27:31 2.74MB “stm32
1