Hi , im new using this board called arduino and recently i was programing an elevator , the problem is that i dont know if is possible make a function that still working in all the program , i mean a function that can be able to recive data in any time.... I need this because when I have to call the elevador it can be in any time , so....
I was thinking programing in Java but I don't how to start , what libraries i need to use or what are commands there , i have to use the function digitalwrite/digitalread normally?
Thanks , and sorry if it's a basic question :s ....
Forget Java and use the C/C++ Arduino is designed for.
As for your app, it sounds simple enough but we need more (and precise) information. What are the inputs, what do you expect to happen when these inputs are received etc.
I mean , i want that my program stay in "stand by" in order to recieve a signal (push botton) in any time (this function read my botton and turn on the sensor of the floor) , cuase in a elevator you dont know when a person it's gonna call a floor...
I understand but that function is only a part of my whole code, i know that in C languaje a program is runing line per line , so if i have another instruccions after this... this function still recieving information?? Thanks