What exactly is your doubt? If you could ask that we can try to answer that.
I am not sure i understand your response.
I have a good understanding of physical hardware connections but i have very little experience in the software settings and code to make it do what i wish.
as you can see i believe i have combined both aspects from both projects i do not know how to combine the settings in the software and write the code necessary to complete it however.