mauricio fernandez montoya

May i use the same variable placed in a library and in the main program at the same time???

Discussion created by mauricio fernandez montoya on Aug 13, 2007
Latest reply on Aug 20, 2007 by CrasyCat
Hi.

i want to control two diferent actions with IRQ interrupt, creating a variable (Estado) in two functions placed in a library i made.  when one of them is used in the main program, Estado's values is 1 ( in the library),  with othe function  its value is -1 (estado).  when i try to use Estado in the main program it recognizes the word Estado (changing text's color to bright blue), but when i check the program (F7), it say that Estado is not declared.  How can i do that????  it can be made by another way??? thanks!

Outcomes