Go Down

Topic: ERROR: function used was not declared in scope (Read 3691 times) previous topic - next topic

deepakvnit

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!!!!!!!!!!

johnwasser

Code: [Select]
   
attachInterrupt(0,interrupt1,CHANGE);

void iterrupt1()  // You spelled it wrong
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

NI$HANT

Sir john is correct you spelled it wrong!
"Real Men can Accomplish  Anything"

- skype : nishants5  

ਫ਼ਤੇਹ ਕਰੁਂ!

deepakvnit

sorry for giving you pain, guys. it was a seriously dumb mistake i did, which took me hours to correct. sorry once again..... and thanx a lot for helping me.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy