单片机怎么修改蜂鸣器延迟 让它多响会呢 5
voidmain(void){init1();i=0;t=0;SPK=1;while(1){if(flag==1){if(a==0){SPK=0;delay(500000...
void main (void)
{
init1();
i=0;
t=0;
SPK=1;
while(1)
{
if(flag==1)
{
if(a==0)
{
SPK=0;
delay(500000);
delay(500000);
SPK=1;
delay(500000);
delay(500000); 展开
{
init1();
i=0;
t=0;
SPK=1;
while(1)
{
if(flag==1)
{
if(a==0)
{
SPK=0;
delay(500000);
delay(500000);
SPK=1;
delay(500000);
delay(500000); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询