这个中断应该怎么写啊!!求大神指导交流
哪里写错了,中断按键控制led
#include<stdio.h>
#include<wiringPi.h>
int main()
{
void POWERON();
wiringPiSetup();
pinMode (7,OUTPUT);
pinMode (0,INPUT);
wiringPiISR(0,INT_EDGE_RISING,&POWERON);
digitalWrite(7,LOW);
return 0;
}
void POWERON()
{delay(1000);
digitalWrite(7,HIGH);
printf("dengliang\n");
}
页:
[1]