Pages: [1]   Go Down
Author Topic: ERROR: function used was not declared in scope  (Read 3007 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 24
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8856
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Code:
   
attachInterrupt(0,interrupt1,CHANGE);

void iterrupt1()  // You spelled it wrong
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Forum Moderator
ਪੰਜਾਬ
Offline Offline
Edison Member
*****
Karma: 12
Posts: 1601
Another year! Alone! :(
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Sir john is correct you spelled it wrong!
Logged

"Real Men can Accomplish  Anything"
-  Website  
- skype : nishants5  

ਫ਼ਤੇਹ ਕਰੂਂ !

Offline Offline
Newbie
*
Karma: 0
Posts: 24
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1]   Go Up
Jump to: