4
15
1432
金牌会员
so*** 发表于 2024-8-4 21:15 先用位移法看一下能不能正常,P6=~(0x01
使用道具 举报 送花
9
315
1855
52
2499
8822
论坛元老
u8 code ledNum[]={0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80}; while(1) { P6 = ~ledNum[ledIndex]; //输出低驱动 ledIndex++; if(ledIndex > 7) { ledIndex = 0; } delay_ms(250); delay_ms(250); }复制代码
405
2696
23
291
1969
19
36
249
中级会员
乘风飞扬 发表于 2024-8-5 08:59 实验箱例程包里面的跑马灯例子就是用数组,直接用例子试试。测试正常后再进行修改或者移植。 ...
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|深圳国芯人工智能有限公司 ( 粤ICP备2022108929号-2 )
GMT+8, 2026-3-24 20:56 , Processed in 0.113015 second(s), 89 queries .
Powered by Discuz! X3.5
© 2001-2026 Discuz! Team.