combining sketches



  • ok here is the ?

    to combine two or more sketches what are the issues?

    As I see it say combining two sketches would require all the code from both with the duplications removed, inspection that size is less than max allowed (30 kbs? or so) and availability of pins.

    So do I add all of one sketch in define,setup and loop and then add bits needed and libraries required after the first sketch. Then compile and see what I get prior to upload. OR

    Require all of both sketches complete one after the other.

    Does the arduino/gw care if the code is shared or is it only one sensor per mini pro? Just trying to cut back on the number of p/s and boards I have running - it seems to be getting to be too many wires


  • Contest Winner

    @5546dug

    I found this tutorial, but maybe it is easier to ask who may have combined the two you are trying 😉

    lots of folks here creating multi-purpose sketches, so your problem may be solved already!



  • @5546dug
    Is this perhaps a starting point? multiple sensors and code.

    BR

    Boozz


 

Suggested Topics

246
Online

8.8k
Users

9.6k
Topics

100.3k
Posts