hello...i'm doing a project of a medical device. My project would be a medicine reminder with a locking system. I already have two different sketches for reminder and for locking system and i want it to merge into one sketch to upload it into my arduino. I have problem in combining these two sketches...how can i combine it and what is the suitable method..tq
You could take the even numbered lines from one file and the odd numbered lines from the other file and create a third file with those lines in reverse order.
Or, you could define the requirements for the resulting program and pick the code from each that implements those requirements. Only you have any idea what the resulting program is supposed to do.
PaulS:
You could take the even numbered lines from one file and the odd numbered lines from the other file and create a third file with those lines in reverse order.
Or, you could define the requirements for the resulting program and pick the code from each that implements those requirements. Only you have any idea what the resulting program is supposed to do.
I have a bit of a problem on understanding your explaination. Which even and odd numbered lines should i take? I want the program to act as a medicine reminder and at the same time as a locking system. The program should be multifunction. The program will display the time and if a fingerprint is detected it will unlock the case.
PaulS:
I was pulling your leg. I'm sorry that it came off. You can have it back.
That explanation is only handwaving. Pretend that neither sketch existed. Describe what the sketch you want should actually do.
I have already done that actually but the display is not like i wanted. I've use if...else and switch...break but it doesnt really work... but thank you for your help though. I will give it another try...
PaulS:
This implies that you have made some attempt to combine the sketches. You haven't shown that attempt.
It does something. You haven't explained what.
You want it to do something. You haven't done a good enough job of explaining that.
If you need help. feel free to address the above issues.
I use if...else method but it only display the void setup part...
I use if...else method but it only display the void setup part...
Oh, well, then the problem, according to my crystal ball, is on line 2385443532. I suspect that my crystal ball just might be off a line or three million.
PaulS:
Oh, well, then the problem, according to my crystal ball, is on line 2385443532. I suspect that my crystal ball just might be off a line or three million.
That you need to post your code. We can't guess what you did. We can't guess what the code actually does. We can't guess what you expected it to do, or how that differs from what it actually does.
PaulS:
Which one do you want to focus on?
What does that one ACTUALLY do?
How does that differ from what you want?
We're trying to help, but you are being awfully terse in your answers.
Sorry about that...as i uploaded several code that i've tested is because i'm not sure which one is the best i should use. These are the results from several references. I think i want to focus on the coding named complete. I uploaded other code so that i can ask about the other code if it is not working.
PaulS:
OK. So, what does it actually do when you upload it to the Arduino? How does that differ from what you want it to do?
It displays only until set medicine reminder time. Which is until line 88. When i try to press the button nothing happen and also when i press my finger at the fingerprint scanner nothing happen too. It doesn't differ from what i want it to do. It just doesn't work either for setting time or the locking system part.