The best way to gain friends on the forum is to read and follow the guides.
If you go back and edit your post, then insert CODE TAGS, helpers will be more likely to play with you.
If you have already tried gluing the two programs together, show that, and add comments or error listings of the parts where you’re having trouble
It’s also a good idea to post a detailed block diagram of how you see the hardware being connected, and a schematic with pin names etc - remember to detail your power sources.