The second program you have posted is the C source of a Flowcode program.
Upload the FC - (.fcfx) code.
Generally it is pretty easy to combine programs - problems can occur with global variables - but exporting and then importing the macros (it's always worth splitting programs into macros rather than putting too much logic into 'main') of the second program into the first (have two windows open and cut and paste or export / import the macros) should get you most of the way - the code for main is harder - as the logic of the two sub programs will need to be combined - rather than running one then the other.
Martin
assemble 2 programs flowcode V6
Moderator: Benj