Offline
Newbie
Karma: 0
Posts: 24
|
 |
« on: May 27, 2012, 06:38:15 am » |
first of all i want to apologize if this is not right place for this thread but i will really appreciate some help on my project ..... i m attaching my setup code below. every time compile it, it gives error" function used was not declared in scope"
void setup() { /* defining input ports*/ pinMode (2,INPUT); pinMode (3,INPUT); pinMode (4,INPUT); pinMode (5,INPUT); pinMode (6,INPUT); /*defining output ports*/ pinMode(7,OUTPUT); pinMode(8,OUTPUT); pinMode(9,OUTPUT); pinMode(10,OUTPUT); pinMode(11,OUTPUT); /*DAC output ports*/ pinMode(A0,OUTPUT); pinMode(A1,OUTPUT); pinMode(A2,OUTPUT); pinMode(A3,OUTPUT); /* serial communication*/ Serial.begin(9600); /* interrupt */ attachInterrupt(0,interrupt1,CHANGE);
} void loop() {} void iterrupt1() { asm volatile (" jmp 0"); } i m looking for any error from past 4 hours.want some help very soon .thanks in advance!!!!!!!!!!
|