哪里写错了,中断按键控制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("deng liang\n");
}