188610329 发表于 2021-10-24 21:00
unsigned char x; 放到全局变量
stycx 发表于 2021-10-24 22:45
执行case 2: y=8; break;再按下按键却不能执行后面的程序了
是因为 void RGB() 函数里头用了大量的 de ...
npn 发表于 2021-10-24 23:37
看了下你的程序太乱,需要重写一份,其余全部用定时器中断实现,软件延时尽量不要用。
欢迎光临 (http://www.51hei.com/bbs/) | Powered by Discuz! X3.1 |