hello! i have these two different programs, remote controlled and temperature controlled and i want to combine these programs and then control it with a remote for their on/off one at time. how could i combine these two programs? thanks!
You haven't provided the codes. What you should do is
- Look for any pins overlap in both sketches. In case, if same pins used in two sketches, change it. so that pin is not using by two different programs for different purposes.
- Copy the includes and global variable from sketch to the merging sketch.
- Copy the lines from setup() of one program to the merging sketch. Do the same for loop().
- Copy any other functions from the sketch to the merging sketch.
- Compile the merged sketch.
- Correct any compile errors.
This Simple Merge Demo may give some ideas.
...R