• 2022-06-30
    如果实验板上的LED是MCU输出高电平点亮,按钮(inputpin)按下是低电平,下面哪个指令串可以实现按下按钮,点亮LED,松开按钮,LED熄灭,假定初始化完全正确。
    A: while(1){inputpin = LED;}
    B: while(1){inputpin == LED;}
    C: while(1){inputpin = !LED;}
    D: while(1){LED = !inputpin;}
    E: while(1)(LED = !inputpin;)