751193792 发表于 2022-8-31 19:15:19

新人刚学求解惑

大佬们 我问下while不是循环语吗
为啥我用了while只能点亮第一个LED把 while删除了LED都能点亮http://prechin.net/forum.php?mod=image&aid=4483&size=300x300&key=3a55e4b539f35af4&nocache=yes&type=fixnonehttp://prechin.net/forum.php?mod=image&aid=4484&size=300x300&key=cb593bd0cf24506e&nocache=yes&type=fixnone

Kphri 发表于 2022-9-5 15:21:33

本帖最后由 Kphri 于 2022-9-5 15:22 编辑

好像是的while循环格式不对
应该是while(1)
{
P0^1 = 0(或者1);


}

页: [1]
查看完整版本: 新人刚学求解惑